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 "?>".
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.
ReadonlydataThe data (body) of the processing instruction.
Gets the previous sibling node, or null if this is the first node.
Gets the next sibling node, or null if this is the last node.
Inserts the specified content immediately after this node in its parent.
One or more nodes or strings to insert.
Returns all sibling nodes that precede this node.
An array of XNode instances before this node.
Returns all sibling nodes that follow this node.
An array of XNode instances after this node.
Performs a deep structural comparison of this node with another.
The node to compare against.
true if the two nodes are structurally identical.
StaticdeepStatic convenience method for deep structural comparison of two nodes.
First node.
Second node.
true if the two nodes are structurally identical.
Removes annotations from this object.
Compares this processing instruction to another by target and data.
The processing instruction to compare against.
true if both target and data are equal.
Returns the XML serialization of this processing instruction.
The serialized PI string, e.g. <?target data?>.
Represents an XML processing instruction (
<?target data?>).Remarks
Throws if the target contains whitespace or if the target or data contains
"?>".Example