I know at least three C ++ XML parsers: RapidXML , TinyXML, and PugiXML . However, all three use a DOM-based interface (i.e., they create their own representation of the XML document in memory, and then provide an interface for moving and managing it). For most situations that I have to deal with, I prefer the SAX interface (where the parser simply splashes out a stream of events, such as the beginning of the tag, and the application code is responsible for what it wants based on these events).
Can someone recommend a lightweight C ++ XML library with SAX?
Edit: You should also mention the Microsoft XmlLite library, which uses the SAX interface (well, actually, the “pull” interface, which is perhaps even better). Unfortunately, at the moment this excludes me, because I know that this is a closed source and only Windows (please correct me if I am wrong).
John bartholomew
source share