Copies a node and/or its children
Object
&createClone
([boolean $deep = false])
-
boolean
$deep: True if all child nodes are also to be cloned
Formats a string for presentation as HTML
string
forHTML
(string $str, [boolean $doPrint = false])
-
string
$str: The string to be formatted
-
boolean
$doPrint: True if the string is to be sent directly to output
Returns the key of the NamedNodeMap, given the namespaceURI and localName
string
getKeyNS
(string $namespaceURI, string $localName)
-
string
$namespaceURI: The namespaceURI of the node to be removed
-
string
$localName: The localName of the node to be removed
Returns the number of nodes in the map
int
getLength
()
Gets a node with the specifed name
mixed
&getNamedItem
(string $name)
-
string
$name: The name of the node
Gets a node with the specifed name, taking into account namespaces
mixed
&getNamedItemNS
(string $namespaceURI, string $localName)
-
string
$namespaceURI: The namespaceURI of the node
-
string
$localName: The localName of the node
Return the node at the specified index
mixed
&item
(int $index)
-
int
$index: The index of the requested node
Reindexes the numerical index for the named node map
void
reindexNodeMap
()
Removes a node from the list, by name
mixed
&removeNamedItem
(string $name)
-
string
$name: The name of the node to be removed
Removes a node from the list, by name, by local name and namespace URI
mixed
&removeNamedItemNS
(string $namespaceURI, string $localName)
-
string
$namespaceURI: The namespaceURI of the node to be removed
-
string
$localName: The localName of the node to be removed
Assigns a node to the list
Object
&setNamedItem
(Object &$arg)
-
Object
&$arg: A reference to the node to be assigned
Assigns a node to the list, using its namespaceURI and localName
Object
&setNamedItemNS
(Object &$arg)
-
Object
&$arg: A reference to the node to be assigned
Generates an array representation of the node and its children
Array
toArray
()
Redefined in descendants as:
Generates a string representation of the node and its children
string
toString
([boolean $htmlSafe = false], [boolean $subEntities = false])
-
boolean
$htmlSafe: True if HTML readable output is desired
-
boolean
$subEntities: True if illegal xml characters in text nodes and attributes should be converted to entities
Redefined in descendants as: