xml parsing using boost

前端 未结 2 1349
既然无缘
既然无缘 2020-12-21 07:32

I am parsing below xml file using BOOST library-


        15
        8         


        
2条回答
  •  独厮守ぢ
    2020-12-21 08:07

    Boost Serialization does not support writing XML attributes, and apparently doesn't support reading them either, or even ignoring them. One of the authors wrote about this here: http://boost.2283326.n4.nabble.com/serialization-How-to-serialize-as-an-XML-attribute-td2557918.html

    You could pre-process the XML before loading it, using another XML library like Expat or whatever.

提交回复
热议问题