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

Started by
8 comments, last by chollida1 18 years, 11 months ago
I'm looking for a free C++ library for parsing XML. Can anybody offer me a recomendation?
Advertisement
Tiny XML ?
http://sourceforge.net/projects/tinyxml/
-www.freewebs.com/tm1rbrt -> check out my gameboy emulator ( worklog updated regularly )
Quote:Original post by ErUs
Tiny XML ?
http://sourceforge.net/projects/tinyxml/


Seconded.
A lot of projects I've seen which use XML use TinyXML as athe parser so it must be pretty good.
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.
Rob Loach [Website] [Projects] [Contact]
I haven't use it much but xerces-c is another library.
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
Thanks for the advice.
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
I'll look at libxml2 as well.
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
CheersChris

This topic is closed to new replies.

Advertisement