PDA

View Full Version : Lightweight C++ XML parsing/reading libraries?


Subtestube
01-27-07, 11:03 PM
To save myself some work on a potentially large-ish scale personal project, I'd like to use XML for most of the data-driven stuff (bar the ini file, which I'll write my own simple parser for). With that in mind, I'm looking for a relatively simple and well documented third party library that can do the brute work of getting XML data out of files, and into properly tagged C++ objects.

I've heard of "TinyXML", and although I've not investigated properly yet, it sounds like it might be enough for me. Before I commit to that though, I was interested in whether anyone here has any good suggestions?

Greg
01-28-07, 07:44 AM
Tiny (as you already mention) is not bad.
http://www.grinninglizard.com/tinyxml/

MicroXML is probably faster and equally featured:
http://www.somedude.net/modules.php?op=modload&name=Downloads&file=index&req=viewsdownload&sid=3

They both provide parsing and some kind of document interface. Neither support full XML spec, but depending on what you use it for, both should be adequate and easy to use.