Convert nodes subtree to and from xml strings
xingwozhonghua126 opened this issue · 2 comments
xingwozhonghua126 commented
Get the xml string method of the current node subtree.
Add xml string and convert it into xml root node tree.
xingwozhonghua126 commented
std::stringstream ss;
node.print(ss);
std::string xmlstring = ss.str()
xingwozhonghua126 commented
xml_document xmldoc;
xmldoc.load(xmlstring);
xml_node subnode = xmldoc.first_child();
node.append_copy(subnode);