Creates a new XProcessingInstruction from target/data strings or by copying another.
The PI target. Must not contain whitespace or "?>".
The PI data. Must not contain "?>".
ReadonlydataThe data (body) of the processing instruction.
The kind of XML node this object represents.
The parent of this object in the XML tree, or null if it is a root.
ReadonlytargetThe target name of the processing instruction.
Gets the next sibling node, or null if this is the last node.
Gets the previous sibling node, or null if this is the first node.
Inserts the specified content immediately after this node in its parent.
One or more nodes or strings to insert.
Performs a deep structural comparison of this node with another.
The node to compare against.
true if the two nodes are structurally identical.
Compares this processing instruction to another by target and data.
The processing instruction to compare against.
true if both target and data are equal.
Removes annotations from this object.
Returns the XML serialization of this processing instruction.
The serialized PI string, e.g. <?target data?>.
StaticdeepStatic convenience method for deep structural comparison of two nodes.
true if the two nodes are structurally identical.
Represents an XML processing instruction (
<?target data?>).Remarks
Throws if the target contains whitespace or if the target or data contains
"?>".Example