Build an xml tree from scratch - pugixml C++

前端 未结 2 1022
星月不相逢
星月不相逢 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 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

提交回复
热议问题