Class ProcessingInstruction

Processing Instruction

A representation of an XML Processing Instruction node.

Methods

Method Return type Brief description
Content Detaches the node from its parent Element node.
String Gets the raw data for every instruction in the Processing Instruction node.
Element Gets the node's parent Element node.
String Gets the target for the Processing Instruction node.
String Gets 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


get Data()

Gets the raw data for every instruction in the Processing Instruction node.

Return

String — the raw data for every instruction in the Processing Instruction node


get Parent Element()

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


get Target()

Gets the target for the Processing Instruction node.

Return

String — the target for the Processing Instruction node


get Value()

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

Create a Mobile Website
View Site in Mobile | Classic
Share by: