private function addNewXmlElement(DOMDocument $dom, DOMElement $node, $name, $value)
    {
        $new = $dom->createElement($name);
        $new->appendChild($dom->createTextNode($value));
        $node->appendChild($new);
    }
private function addNewXmlElement(DOMDocument $dom, DOMElement $node, $name, $value)
    {
        $new = $dom->createElement($name);
        $new->appendChild($dom->createTextNode($value));
        $node->appendChild($new);
    }
private function addNewXmlElement ( DOMDocument $ dom , DOMElement $ node , $ name , $ value ) { $ new = $ dom -> createElement ( $ name ) ; $ new -> appendChild ( $ dom -> createTextNode ( $ value ) ) ; $ node -> appendChild ( $ new ) ; }
Utility method to add new elements to an xml node.

@param \DOMDocument $dom xml document
@param \DOMElement $node where to add the new element
@param string $name of the new element
@param string $value of the new element
Utility method to add new elements to an xml node .