开发者

Is there native XmlReader equvalent API in C++ on Windows?

开发者 https://www.devze.com 2023-03-25 05:00 出处:网络
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.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号