Light weight C++ SAX XML parser

Posted by John Bartholomew on Stack Overflow See other posts from Stack Overflow or by John Bartholomew
Published on 2011-01-13T19:39:57Z Indexed on 2011/01/13 19:53 UTC
Read the original article Hit count: 336

Filed under:
|
|

I know of at least three light weight C++ XML parsers: RapidXML, TinyXML and PugiXML. However, all three use a DOM based interface (ie, they build their own in-memory representation of the XML document and then provide an interface to traverse and manipulate it). For most situations that I have to deal with, I much prefer the SAX interface (where the parser just spits out a stream of events like start-of-tag, and the application code is responsible for doing whatever it wants based on those events).

Can anyone recommend a light weight C++ XML library with a SAX interface?

Edit: I should also note the Microsoft XmlLite library, which does use a SAX interface. Unfortunately, it's ruled out for me at the moment since as far as I know it's closed source and Windows only (please correct me if I'm wrong on this).

© Stack Overflow or respective owner

Related posts about c++

Related posts about Xml