The kind of XML node this object represents.
The parent of this object in the XML tree, or null if it is a root.
ReadonlyvalueThe raw (unescaped) string content of this text node.
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 text node to another by value.
The text node to compare against.
true if the values are equal.
Removes annotations from this object.
Returns the XML-escaped text content.
The serialized text with XML entities escaped.
StaticdeepStatic convenience method for deep structural comparison of two nodes.
true if the two nodes are structurally identical.
Represents a text node inside an XML element.
Remarks
Text content is automatically XML-escaped on serialization (
&,<,>become&,<,>).Example