• Advertisement
Sign in to follow this  

Does anyone know of a good C++ XML lib?

This topic is 4684 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm looking for a free C++ library for parsing XML. Can anybody offer me a recomendation?

Share this post


Link to post
Share on other sites
Advertisement
Tiny XML ?
http://sourceforge.net/projects/tinyxml/

Share this post


Link to post
Share on other sites
A lot of projects I've seen which use XML use TinyXML as athe parser so it must be pretty good.

Share this post


Link to post
Share on other sites
Quote:
Original post by ErUs
Tiny XML ?
http://sourceforge.net/projects/tinyxml/
Yup, TinyXML is a good one. Takes a bit of getting use to, but you'll get it eventually.

Share this post


Link to post
Share on other sites
I would recommend the libxml2 library http://www.xmlsoft.org. TinyXML can only do DOM parsing, which is often slow and memory consuming. libxml2 has a set of API's and I especially recommend you to look at the xmlreader API. It is kind of like the old SAX parsing method, but without callbacks...you can read about it here http://www.xmlsoft.org/xmlreader.html

Share this post


Link to post
Share on other sites
msxml from microsoft is really good too. It does DOM and SAX parsing and it also does validating if you need that to. We were able to build some really useful xml validation unit tests very quickly thanks the msxml's DTD validation.


Cheers
CHris

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement