DOMDocument->createElement()
(no version information, might be only in CVS)
DOMDocument->createElement() -- Create new element nodeOpis
class DOMDocument {DOMElement createElement ( string name [, string value] )
}
This function creates a new instance of class DOMElement. Ten węzeł nie pojawi się w dokumencie dopóki nie zostanie wstawiony, np. metodą DOMNode->appendChild().
Parametry
name
The tag name of the element.
value
The value of the element. By default, an empty element will be created. You can also set the value later with DOMElement->nodeValue.
Przykłady
Patrz także
DOMNode->appendChild() |
DOMDocument->createAttribute() |
DOMDocument->createAttributeNS() |
DOMDocument->createCDATASection() |
DOMDocument->createComment() |
DOMDocument->createDocumentFragment() |
DOMDocument->createElementNS() |
DOMDocument->createEntityReference() |
DOMDocument->createProcessingInstruction() |
DOMDocument->createTextNode() |
Poprzedni | Spis treści | Następny |
DOMDocument->createDocumentFragment() | Początek rozdziału |