(PHP 5 >= 5.1.3, PHP 7)
Adds a child element to the XML node
public SimpleXMLElement SimpleXMLElement::addChild ( string $name [, string $value [, string $namespace ]] )
Adds a child element to the node and returns a SimpleXMLElement of the child.
Parameters:
name
The name of the child element to add.
value
If specified, the value