A somewhat merged implementation of:
Node Node::adoptNode(in Node source) // DOM Level 3
Node Node::appendChild(in Node newChild)
It adds a new method to the TiXmlNode class:
TiXmlNode* TiXmlNode::AdoptEndChild( TiXmlNode* adoptThis );
This method removes adoptThis from it's original parent and links it at the end of the "this" node.
It might be understood as a modified version of RemoveChild (no delete and corrected parent reference) followed by a LinkEndChild call.
Log in to post a comment.