I spent the last few hours looking for a simple XML parser for C++.  I did find two candidates:  TinyXML and xmlParser.  The latter looks the easiest, but I had to send an e-mail to the developer requesting for the tool.  It’s been a few hours now and I haven’t heard back from him yet, but I did send it quite late on a Friday night.

I know that there are many other XML parsers out there.   Xerces and Expat are quite popular, but they are just too big for what I am trying to do.  If you know your history, Xerces along with his huge Persian army fought against a tiny group of Spartans.  I thought that it would be clever to come up with a tiny XML parser called Sparta.  Well, Eamonn O’Brien-Strain developed an open-source project called Sparta – Lean XML Parser, DOM,, & XPath.  Unfortunately, it’s a Java application–still nice work with the parsing tool and the historical references.  I wish I could have thought of these things first.

Microsoft’s XmlLite showed promise too, but when I looked at the code samples, I quickly realized that I needed to learn some things about C++ COM programming before I could even think about XML.  I then checked out Microsoft’s MSXML.  I found some really great articles, but most them were ten years or older.  It probably works just fine today, but I don’t trust old code on newer Windows operating systems.  I have Win7 64-bit.  This library was written about the same time as Microsoft ME – which, by the way, is still the greatest operating system ever known to mankind.

Once I try TinyXML and xmlParser, I will write something up for you.  Now it’s too late.  Go to hell XML.

References:

http://www.applied-mathematics.net/tools/xmlParser.html

http://sourceforge.net/projects/tinyxml/

http://xerces.apache.org/xerces-c/

http://expat.sourceforge.net/

http://sourceforge.net/projects/sparta-xml/

http://msdn.microsoft.com/en-us/magazine/cc163436.aspx

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)