On Linux platforms I like开发者_如何学Python libxml2 reader API which is based on C#'s XmlReader::Read and reads one node/attribute at a time without actually building DOM tree.
Now, I'm in need of native Windows C++ XML parsing library. MSXML instantly comes to mind. Is there MSXML API allowing to read one node at a time, without building DOM or processing the whole document in SAX style?
Take a look at another Microsoft's XML parser XmlLite:
a non-cached, forward-only parser (that delivers a pull programming model) and a non-cached, forward-only XML generator
I use tinyxml: http://www.grinninglizard.com/tinyxml/
TinyXML is a simple, small, minimal, C++ XML parser that can be easily integrating into other programs. It reads XML and creates C++ objects representing the XML document. The objects can be manipulated, changed, and saved again as XML
/mspoerr
精彩评论