PHP Manual
DOMDocument->createElement()
(no version information, might be only in CVS)
DOMDocument->createElement() -- Create new element nodeDescription
class DOMDocument {DOMElement createElement ( string name [, string value] )
}
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().
Parameters
nameThe tag name of the element.
valueThe value of the element. By default, an empty element will be created. You can also set the value later with DOMElement->nodeValue.
Examples
See Also
| DOMNode->appendChild() |
| DOMDocument->createAttribute() |
| DOMDocument->createAttributeNS() |
| DOMDocument->createCDATASection() |
| DOMDocument->createComment() |
| DOMDocument->createDocumentFragment() |
| DOMDocument->createElementNS() |
| DOMDocument->createEntityReference() |
| DOMDocument->createProcessingInstruction() |
| DOMDocument->createTextNode() |
Support PHPRO.ORG
Search
PHPRO.ORG Poll
Warning: Participation in PHPRO.ORG polls may incorrectly lead you to believe your opinions matter.

RSS Feed




