This function creates a new instance of class DOMElement. This node will not show up in the document unless it is inserted with e.g. DOMNode->appendChild().
The tag name of the element.
The value of the element. By default, an empty element will be created. You can also set the value later with DOMElement->nodeValue.
DOMNode->appendChild() |
DOMDocument->createAttribute() |
DOMDocument->createAttributeNS() |
DOMDocument->createCDATASection() |
DOMDocument->createComment() |
DOMDocument->createDocumentFragment() |
DOMDocument->createElementNS() |
DOMDocument->createEntityReference() |
DOMDocument->createProcessingInstruction() |
DOMDocument->createTextNode() |