Class ProcessingInstruction

ProcessingInstruction

A representation of an XML ProcessingInstruction node.

Methods

MethodReturn typeBrief description
detach()ContentDetaches the node from its parent Element node.
getData()StringGets the raw data for every instruction in the ProcessingInstruction node.
getParentElement()ElementGets the node's parent Element node.
getTarget()StringGets the target for the ProcessingInstruction node.
getValue()StringGets the text value of all nodes that are direct or indirect children of the node, in the order they appear in the document.

Detailed documentation

detach()

Detaches the node from its parent Element node. If the node does not have a parent, this method has no effect.

Return

Content — the detached node


getData()

Gets the raw data for every instruction in the ProcessingInstruction node.

Return

String — the raw data for every instruction in the ProcessingInstruction node


getParentElement()

Gets the node's parent Element node. If the node does not have a parent, this method returns null.

Return

Element — the parent Element node


getTarget()

Gets the target for the ProcessingInstruction node.

Return

String — the target for the ProcessingInstruction node


getValue()

Gets the text value of all nodes that are direct or indirect children of the node, in the order they appear in the document.

Return

String — the text value of all nodes that are direct or indirect children of the node