Appends a node to the list
Object
&appendNode
(mixed &$node)
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 number of nodes in the list
int
getLength
()
Return the node at the specified index
Object
&item
(int $index)
-
int
$index: The index of the requested node
Removes the specified node from the list
Object
&removeNode
(Object &$node)
-
Object
&$node: A reference to the node to be removed
Generates an array representation of the node and its children
Array
toArray
()
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