Build an xml tree from scratch - pugixml C++

前端 未结 2 1023
星月不相逢
星月不相逢 2021-02-14 16:43

Firstly I would like to say that I have been using an XML parser written by Frank Vanden Berghen and recently trying to migrate to Pugixml. I am finding the transition bit diffi

相关标签:
2条回答
  • 2021-02-14 16:48

    Please refer to the following section of the manual https://github.com/zeux/pugixml/blob/master/docs/manual.html#manual.modify.add and to the following sample code https://github.com/zeux/pugixml/blob/master/docs/samples/modify_add.cpp

    0 讨论(0)
  • 2021-02-14 17:04

    Home page of pugixml gives sample code for building XML tree from scratch.

    Summary: Use default constructor for pugi::xml_document doc, then append_child for the root node. Generally, a node is first inserted. The insertion call's return value then serves as a handle for filling the XML node.

    Constructing xml tree

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