src/SimpleXMLElement.php
public function appendChildNode(\SimpleXMLElement $element)
    {
        $target  = dom_import_simplexml($this);
        $insert = $target->ownerDocument->importNode(dom_import_simplexml($element), true);
        $target->appendChild($insert);
    }
public function appendChildNode(\SimpleXMLElement $element)
    {
        $target  = dom_import_simplexml($this);
        $insert = $target->ownerDocument->importNode(dom_import_simplexml($element), true);
        $target->appendChild($insert);
    }
public function appendChildNode ( \ SimpleXMLElement $ element ) { $ target = dom_import_simplexml ( $ this ) ; $ insert = $ target -> ownerDocument -> importNode ( dom_import_simplexml ( $ element ) , true ) ; $ target -> appendChild ( $ insert ) ; }
Append a SimpleXMLElement to the current SimpleXMLElement.

@param \SimpleXMLElement $element the element to be appended.

@access public
@return void
Append a SimpleXMLElement to the current SimpleXMLElement .