Parsing XML Attributes with Boost

后端 未结 3 2019
北恋
北恋 2020-12-08 15:56

I would like to share with you an issue I\'m having while trying to process some attributes from XML elements in C++ with Boost libraries (version 1.52.0). Given the followi

3条回答
  •  伪装坚强ぢ
    2020-12-08 16:46

    Without ever using this feature so far, I would suspect that boost::property_tree XML parser isn't a common XML parser, but expects a certain schema, where you have exactly one specific tag for one specific property.

    You might prefer to use other XML parsers that provides parsing any XML schema, if you want to work with XML beyond the boost::property_tree capabilities. Have a look at e.g. Xerces C++ or Poco XML.

提交回复
热议问题