Adds the specified node as a child of the current DOMIT_Element. |
Signature: appendChild(&$child) |
Parameters:
DOMIT_Element child - The node that is to be appended.
|
Returns:
DOMIT_Element - The appended DOMIT_Elementnode.
|
Example:
A child node is appended to the $myElement node: $myElement->appendChild($elementNode); |
Generates an unformatted (single line, no whitespace) string representation of the element and all children. |
Signature: toString() |
Returns:
String - An unformatted (single line, no whitespace) string representation of the element and all children.
|
Example:
An unformatted string representation of the element will be printed here: echo (htmlentities($myElement->toString()); |