AdoptEndChild
Brought to you by:
leethomason
A somewhat merged implementation of:
Node Node::adoptNode(in Node source) // DOM Level 3
and
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.
Resources:
http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#Document3-adoptNode
http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#ID-184E7107
Add the AdoptEndChild method to TiXmlNode