| 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); |
| Gets the text of the processing instruction target. |
Signature: getTarget() |
Returns:
String - A string containing the text of the processing instruction target.
|
Example:
Gets the target of the processing instruction: $myTarget = $pi->getTarget(); |
| Gets the text of the processing instruction data. |
Signature: getData() |
Returns:
String - A string containing the text of the processing instruction data.
|
Example:
Gets the data of the processing instruction: $myData = $pi->getData(); |
| Generates an unformatted (single line, no whitespace) string representation of the Processing Instruction. |
Signature: toString($htmlSafe = false) |
Parameters:
boolean htmlSafe - If true, returns an html formatted representation of the string.
|
Returns:
String - A string representation of the Processing Instruction.
|