Returns a readable representation of the current xml document or node. Called by the DOMIT! method by the same name. |
Signature: toNormalizedString() |
Returns:
String - A readable representation of the current xml document or node.
|
Example:
A normalized representation of the xml document is returned: echo (htmlentities("<pre>" . $myDoc->toNormalizedString(). "</pre>")); |
Prints out the id, nodeName, nodeType, and nodeValue of the specified node. |
Signature: printNode(&$node) |
Parameters:
DOMIT_Node node - The node whose properties are to be printed.
|
Returns:
String - A formatted string displaying the id, nodeName, nodeType, and nodeValue of the specified node.
|
Example:
A formatted string displaying the properties of $someNode is displayed: echo (htmlentities("<pre>" . $DOMIT_Utilities::printNode($someNode) . "</pre>")); |
Prints out the id, nodeName, nodeType, and nodeValue of the specified node and all of its siblings. |
Signature: printNodeAndSiblings(&$node) |
Parameters:
DOMIT_Node node - The node whose properties, and those of its children, are to be printed.
|
Returns:
String - A formatted string displaying the id, nodeName, nodeType, and nodeValue of the specified node and its siblings.
|
Example:
A formatted string displaying the properties of $someNode and its siblings is displayed: echo (htmlentities("<pre>" . $DOMIT_Utilities::printNode($someNode) . "</pre>")); |