<p> <code>getName</code> returns the name of this node. This is the XML local name of the element, attribute, entity or processing instruction. For CDATA and Text nodes this method will return null. </p>
<p> <code>getParent</code> returns the parent <code>Element</code> if this node supports the parent relationship or null if it is the root element or does not support the parent relationship. </p>
Returns the code according to the type of node. This makes processing nodes polymorphically much easier as the switch statement can be used instead of multiple if (instanceof) statements.
<p> Sets the text data of this node or this method will throw an <code>UnsupportedOperationException</code> if it is read-only. </p>
<p> <code>setParent</code> sets the parent relationship of this node if the parent relationship is supported or does nothing if the parent relationship is not supported. </p>
<code>Node</code> defines the polymorphic behavior for all XML nodes in a dom tree.
A node can be output as its XML format, can be detached from its position in a document and can have XPath expressions evaluated on itself.
A node may optionally support the parent relationship and may be read only.