src/SimpleXMLElement.php
public function appendChildFromXmlString($xml)
    {
        $dom = new \DOMDocument;
        $dom->loadXML($xml);

        $element = simplexml_import_dom($dom);

        $this->appendChildNode($element);
    }
public function appendChildFromXmlString($xml)
    {
        $dom = new \DOMDocument;
        $dom->loadXML($xml);

        $element = simplexml_import_dom($dom);

        $this->appendChildNode($element);
    }
public function appendChildFromXmlString ( $ xml ) { $ dom = new \ DOMDocument ; $ dom -> loadXML ( $ xml ) ; $ element = simplexml_import_dom ( $ dom ) ; $ this -> appendChildNode ( $ element ) ; }
Append a childelement from a well formed xml string.

@param string $xml a well formed xml string
@access public
@return void
Append a childelement from a well formed xml string .