What is the best open XML parser for C++? [duplica

2018-12-31 15:21发布

This question already has an answer here:

I am looking for a simple, clean, correct XML parser to use in my C++ project. Should I write my own?

12条回答
旧人旧事旧时光
2楼-- · 2018-12-31 15:56

TinyXML, and also Boost.PropertyTree. The latter does not fulfill all official requirements, but is very simple.

查看更多
余生无你
4楼-- · 2018-12-31 15:58

try this one: http://www.applied-mathematics.net/tools/xmlParser.html
it's easier and faster than RapidXML or PUGXML.
TinyXML is the worst of the "simple parser".

查看更多
深知你不懂我心
5楼-- · 2018-12-31 16:01

I like the Gnome xml parser. It's open source (MIT License, so you can use it in commercial products), fast and has DOM and SAX based interfaces.

http://xmlsoft.org/

查看更多
余生无你
6楼-- · 2018-12-31 16:08

TiCPP is a "more c++" version of TinyXML.

'TiCPP' is short for the official name TinyXML++. It is a completely new interface to TinyXML (http://www.grinninglizard.com/tinyxml/) that uses MANY of the C++ strengths. Templates, exceptions, and much better error handling. It is also fully documented in doxygen. It is really cool because this version let's you interface tiny the exact same way as before or you can choose to use the new 'ticpp' classes. All you need to do is define TIXML_USE_TICPP. It has been tested in VC 6.0, VC 7.0, VC 7.1, VC 8.0, MinGW gcc 3.4.5, and in Linux GNU gcc 3+

查看更多
永恒的永恒
7楼-- · 2018-12-31 16:08

I am a C++ newbie and after trying a couple different suggestions on this page I must say I like pugixml the most. It has easy to understand documentation and a high level API which was all I was looking for.

查看更多
登录 后发表回答