DOMDocument->createElementCreate new element nodeDescriptionobjectDOMDocument->createElementstringnamestringvalue
This function returns a new instance of class
DOMElement. The tag name of the element is the
value of the name parameter. Optionally, a value for the new element may
also be passed in. &dom.node.inserted;
The return value is &false; if an error occurred.
See also DOMDocument->createElementNS(),
DOMNode->appendChild(),
DOMDocument->createTextNode(),
DOMDocument->createComment(),
DOMDocument->createAttribute(),
DOMDocument->createProcessingInstruction().