What do you guys use to parse XML?
-
I am using Visual C++ 6.0 and my applications are targeted for all Windows platforms (well maybe not 95). What do you advise? One of the MS COM object or one of the classes available here on CP? Thanks to whoever takes the time to reply.
I only use very simple XML files, so I rolled my own parser. It's only a simple read text file into memory and split out the tokens but it does the job. The MSXML com object (if that is the one you mean), is okay but a little overkill for the simple files I use. Michael 'Logic, my dear Zoe, merely enables one to be wrong with authority.' - The Doctor: The Wheel in Space
-
I am using Visual C++ 6.0 and my applications are targeted for all Windows platforms (well maybe not 95). What do you advise? One of the MS COM object or one of the classes available here on CP? Thanks to whoever takes the time to reply.
I deal with "simple" XML files, ie, no specific schemas etc.. so I also rolled my own parser and it saving and loading up of any XML file... The MSXML object is awesome, but on startup requires like 16 Mb of member immediately... so its resource heavy...
www.kinkycode.com [Glossary Manager] [AfterThought Backup Lite] 99 little bugs in the code, 99 little bugs, Fix 1 bug, recompile.... 101 little bugs in the code...
-
I am using Visual C++ 6.0 and my applications are targeted for all Windows platforms (well maybe not 95). What do you advise? One of the MS COM object or one of the classes available here on CP? Thanks to whoever takes the time to reply.
I also thought I could write my own parser, but then decided to use the CMarkup/CMarkupSTL[^] class. Its cheap, it works and I got enough to do anyway.
Who is 'General Failure'? And why is he reading my harddisk?!?
-
I am using Visual C++ 6.0 and my applications are targeted for all Windows platforms (well maybe not 95). What do you advise? One of the MS COM object or one of the classes available here on CP? Thanks to whoever takes the time to reply.
I make pretty heavy use of XML, including schema's and suchlike. The library I use is Arabica (http://sourceforge.net/projects/arabica/[^]). Its a thin wrapper for MSXML,libxml and expat, the interface is pleasant to work with, unlike the underlying libraries. Portable too. Ryan.
-
I am using Visual C++ 6.0 and my applications are targeted for all Windows platforms (well maybe not 95). What do you advise? One of the MS COM object or one of the classes available here on CP? Thanks to whoever takes the time to reply.
Like someone posted earlier, try using CMarkup. I have a pretty simple XML settings file, which I read, and CMarkup works perfectly for my needs. The kindest thing you can do for a stupid person, and for the gene pool, is to let him expire of his own dumb choices. [Roger Wright on stupid people] We're like private member functions [John Theal on R&D] We're figuring out the parent thing as we go though. Kinda like setting up Linux for the first time ya' know... [Nitron]
-
I am using Visual C++ 6.0 and my applications are targeted for all Windows platforms (well maybe not 95). What do you advise? One of the MS COM object or one of the classes available here on CP? Thanks to whoever takes the time to reply.
-
Hiya, It is free, try http://xml.apache.org/xerces-c/download.cgi Have fun Cheers Loz