Using Boost to read and write XML files

前端 未结 15 2036
眼角桃花
眼角桃花 2020-11-28 02:37

Is there any good way (and a simple way too) using Boost to read and write XML files?

I can\'t seem to find any simple sample to read XML files using Boost. Can you

相关标签:
15条回答
  • 2020-11-28 03:08

    There's also TinyXML, which is a nice and small C++ library. If you are looking for a lower-level library, RapidXML is a great starting point.

    0 讨论(0)
  • 2020-11-28 03:16

    If you are looking for DOM functionality only, there are some suggestions already in this thread. I personally would probably not bother with a library lacking XPath support, and in C++, would use Qt. There's also TinyXPath, and Arabica claims to have XPath support, but I cannot say anything at all about those.

    0 讨论(0)
  • 2020-11-28 03:18

    A warning. I love RapidXML, but it has a very nasty bug when parsing UTF16. Some valid values cause it to crash.

    I would love to recommend pugixml - but it lacks namespace support, which I know is going to cause me problems.

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