Minimal XML library for C++?

后端 未结 5 1499
Happy的楠姐
Happy的楠姐 2021-02-09 05:27

What XML libraries are out there, which are minimal, easy to use, come with little dependencies (ideally none), can be linked statically and come with a liberal license? So far,

相关标签:
5条回答
  • 2021-02-09 05:31

    I recommend rapidxml. It's an order of magnitude smaller than tinyxml, and doesn't choke on doctypes like tinyxml does.

    If you need entity support or anything advanced, forget about static linking and use expat or libxml2.

    0 讨论(0)
  • 2021-02-09 05:41

    FWIW there is also a version of TinyXML with a more C++-like interface, called ticpp.

    0 讨论(0)
  • 2021-02-09 05:41

    In "what’s the easiest way to generate xml in c++?" I wrote a comment that lists a few C++ XML libraries

    TinyXML++ (ticpp) was, IMHO, the most appropriate for a small, easy to use XML library in C++.

    0 讨论(0)
  • 2021-02-09 05:53

    expat is a very fast C XML parser (although a C++ wrapper exists) that's widely used in many open-source projects. If I remember correctly, it has very few dependencies, and it's licensed under the very liberal MIT License.

    0 讨论(0)
  • 2021-02-09 05:55

    There's one called libxml2.

    There's also a Windows-only solution, a COM library that's part of the O/S, called msxml.

    0 讨论(0)
提交回复
热议问题