| Gets the text of the doctype node (not part of DOM spec). |
Signature: getText() |
Returns:
String - A string containing the text of the doctype node.
|
Example:
Gets the text of the doctype node: $doctypeText = $xmldoc->doctype->getText(); |
| Gets the name of the doctype node. |
Signature: getNamea() |
Returns:
String - A string containing the name of the doctype node.
|
Example:
Gets the name of the doctype node: $doctypeName = $xmldoc->doctype->getName(); |
| Returns a copy of the specified node, and if $deep is set to true, all nodes below it in the hierarchy. |
Signature: &cloneNode($deep) |
Parameters:
boolean deep - True if the children below the cloned node are also to be cloned.
|
Returns:
DOMIT_Node - The cloned node, with a clone of all subnodes if $deep is set to true.
|
Example:
In the following example, a node named $styleTemplate is cloned, presumably so the user can create a new style based on the characteristics of the original node. $newStyle =& styleTemplate->cloneNode(false); |
| Generates an unformatted (single line, no whitespace) string representation of the Document Type. |
Signature: toString($htmlSafe = false) |
Parameters:
boolean htmlSafe - If true, returns an html formatted representation of the string.
|
Returns:
String - A string representation of the Document Type.
|