private addNewXmlElement ( DOMDocument $dom, DOMElement $node, string $name, string $value ) | ||
$dom | DOMDocument | xml document |
$node | DOMElement | where to add the new element |
$name | string | of the new element |
$value | string | of the new element |
private function addNewXmlElement(DOMDocument $dom, DOMElement $node, $name, $value)
{
$new = $dom->createElement($name);
$new->appendChild($dom->createTextNode($value));
$node->appendChild($new);
}