concrete/src/Utility/Service/Text.php
public function appendXML(\SimpleXMLElement $root, \SimpleXMLElement $new)
    {
        $node = $root->addChild($new->getName(), (string) $new);
        foreach ($new->attributes() as $attr => $value) {
            $node->addAttribute($attr, $value);
        }
        foreach ($new->children() as $ch) {
            $this->appendXML($node, $ch);
        }
    }
public function appendXML(\SimpleXMLElement $root, \SimpleXMLElement $new)
    {
        $node = $root->addChild($new->getName(), (string) $new);
        foreach ($new->attributes() as $attr => $value) {
            $node->addAttribute($attr, $value);
        }
        foreach ($new->children() as $ch) {
            $this->appendXML($node, $ch);
        }
    }
public function appendXML ( \ SimpleXMLElement $ root , \ SimpleXMLElement $ new ) { $ node = $ root -> addChild ( $ new -> getName ( ) , ( string ) $ new ) ; foreach ( $ new -> attributes ( ) as $ attr => $ value ) { $ node -> addAttribute ( $ attr , $ value ) ; } foreach ( $ new -> children ( ) as $ ch ) { $ this -> appendXML ( $ node , $ ch ) ; } }
Appends a SimpleXMLElement to a SimpleXMLElement.

@param \SimpleXMLElement $root
@param \SimpleXMLElement $new
Appends a SimpleXMLElement to a SimpleXMLElement .