src/SimpleDOM.php
public function moveTo(SimpleXMLElement $dst)
    {
        return simplexml_import_dom(dom_import_simplexml($dst), get_class($this))->appendChild($this->removeSelf());
    }
public function moveTo(SimpleXMLElement $dst)
    {
        return simplexml_import_dom(dom_import_simplexml($dst), get_class($this))->appendChild($this->removeSelf());
    }
Move current node to a new parent

ATTENTION! using references to the old node will screw up the original document

@param    SimpleXMLElement $dst Target parent
@return    SimpleDOM                    Current node