<h1>xercesc::DOMNode Class Reference</h1><!-- doxytag: class="xercesc::DOMNode" -->
<p>The <code><aclass="el"href="classxercesc_1_1DOMNode.html"title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a></code> interface is the primary datatype for the entire Document Object Model.
<areashape="rect"href="classxercesc_1_1DOMAttr.html"title="The DOMAttr class refers to an attribute of an XML element."alt=""coords="243,5,368,35"/><areashape="rect"href="classxercesc_1_1DOMCharacterData.html"title="The DOMCharacterData interface extends DOMNode with a set of attributes and methods..."alt=""coords="212,59,399,88"/><areashape="rect"href="classxercesc_1_1DOMDocument.html"title="The DOMDocument interface represents the entire XML document."alt=""coords="224,112,387,141"/><areashape="rect"href="classxercesc_1_1DOMDocumentFragment.html"title="DOMDocumentFragment is a "lightweight" or "minimal" DOMDocument..."alt=""coords="196,165,415,195"/><areashape="rect"href="classxercesc_1_1DOMDocumentType.html"title="Each DOMDocument has a doctype attribute whose value is either null or a DOMDocumentType..."alt=""coords="209,219,401,248"/><areashape="rect"href="classxercesc_1_1DOMElement.html"title="By far the vast majority of objects (apart from text) that authors encounter when..."alt=""coords="229,272,381,301"/><areashape="rect"href="classxercesc_1_1DOMEntity.html"title="This interface represents an entity, either parsed or unparsed, in an XML document..."alt=""coords="236,325,375,355"/><areashape="rect"href="classxercesc_1_1DOMEntityReference.html"title="DOMEntityReference objects may be inserted into the structure model when an entity..."alt=""coords="207,379,404,408"/><areashape="rect"href="classxercesc_1_1DOMNotation.html"title="This interface represents a notation declared in the DTD."alt=""coords="229,432,381,461"/><areashape="rect"href="classxercesc_1_1DOMProcessingInstruction.html"title="The DOMProcessingInstruction interface represents a "processing  instruction"..."alt=""coords="189,485,421,515"/><areashape="rect"href="classxercesc_1_1DOMXPathNamespace.html"title="The DOMXPathNamespace interface is returned by DOMXPathResult interfaces to represent..."alt=""coords="201,539,409,568"/><areashape="rect"href="classxercesc_1_1DOMComment.html"title="This interface inherits from CharacterData and represents the content of a comment..."alt=""coords="471,32,631,61"/><areashape="rect"href="classxercesc_1_1DOMText.html"title="The DOMText interface inherits from DOMCharacterData and represents the textual content..."alt=""coords="485,85,616,115"/><areashape="rect"href="classxercesc_1_1DOMCDATASection.html"title="CDATA sections are used to escape blocks of text containing characters that would..."alt=""coords="681,85,871,115"/></map>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">The name of this node, depending on its type; see the table above. <ahref="#a7b32344fcf1bc6750237d0d136e669c5"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Gets the value of this node, depending on its type. <ahref="#a91c52c0624325ac9c9e176e944c2e179"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">An enum value representing the type of the underlying object. <ahref="#a2efeafaf11c2e91d4e2334f4a5837812"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Gets the parent of this node. <ahref="#a75d88c459e52996255af85d0c2bb6c28"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Gets a <code><aclass="el"href="classxercesc_1_1DOMNodeList.html"title="The DOMNodeList interface provides the abstraction of an ordered collection of nodes...">DOMNodeList</a></code> that contains all children of this node. <ahref="#a5606d1504a6e5e34b8323c9c03bf0871"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Gets the first child of this node. <ahref="#a2332c89f39231890e5124b45b7576fea"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Gets the last child of this node. <ahref="#a5105b148ca44c2e0560559410bde6f28"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Gets the node immediately preceding this node. <ahref="#a9b331b808c3bca80b262a2a4b5ae3039"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Gets the node immediately following this node. <ahref="#a15122c1270fbb4e49e3278600fc3e92f"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Gets a <code><aclass="el"href="classxercesc_1_1DOMNamedNodeMap.html"title="DOMNamedNodeMaps are used to represent collections of nodes that can be accessed...">DOMNamedNodeMap</a></code> containing the attributes of this node (if it is an <code><aclass="el"href="classxercesc_1_1DOMElement.html"title="By far the vast majority of objects (apart from text) that authors encounter when...">DOMElement</a></code>) or <code>null</code> otherwise. <ahref="#a94cba44e801d6ef597d6158d08a8db4b"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Gets the <code><aclass="el"href="classxercesc_1_1DOMDocument.html"title="The DOMDocument interface represents the entire XML document.">DOMDocument</a></code> object associated with this node. <ahref="#a678751c64acb0ba5ffdd80695b1bc357"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a duplicate of this node. <ahref="#acbd55c7876782a2147b092416609055d"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Inserts the node <code>newChild</code> before the existing child node <code>refChild</code>. <ahref="#ab53ebbb7276d3d20d24cb486f948717c"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Replaces the child node <code>oldChild</code> with <code>newChild</code> in the list of children, and returns the <code>oldChild</code> node. <ahref="#a94ce2693cd6634ac744ef6c3ed0609c0"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Removes the child node indicated by <code>oldChild</code> from the list of children, and returns it. <ahref="#a6d55c029576075e0cfd8fc26f48c8b84"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Adds the node <code>newChild</code> to the end of the list of children of this node. <ahref="#ade4f6d57748def70f0444b004df96a94"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">This is a convenience method to allow easy determination of whether a node has any children. <ahref="#a2bc565b40dd4bb5aba845d9dd2c7583a"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Puts all <code><aclass="el"href="classxercesc_1_1DOMText.html"title="The DOMText interface inherits from DOMCharacterData and represents the textual content...">DOMText</a></code> nodes in the full depth of the sub-tree underneath this <code><aclass="el"href="classxercesc_1_1DOMNode.html"title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a></code>, including attribute nodes, into a "normal" form where only markup (e.g., tags, comments, processing instructions, CDATA sections, and entity references) separates <code><aclass="el"href="classxercesc_1_1DOMText.html"title="The DOMText interface inherits from DOMCharacterData and represents the textual content...">DOMText</a></code> nodes, i.e., there are neither adjacent <code><aclass="el"href="classxercesc_1_1DOMText.html"title="The DOMText interface inherits from DOMCharacterData and represents the textual content...">DOMText</a></code> nodes nor empty <code><aclass="el"href="classxercesc_1_1DOMText.html"title="The DOMText interface inherits from DOMCharacterData and represents the textual content...">DOMText</a></code> nodes. <ahref="#a98d4e1ca99342ae7fa64ffcb1731b1e9"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Tests whether the DOM implementation implements a specific feature and that feature is supported by this node. <ahref="#a1c65320f33cec3065797a0e9b3cdcacd"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Get the <em>namespace URI</em> of this node, or <code>null</code> if it is unspecified. <ahref="#af35cfa2da40fa282118ec1aca93fc306"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Get the <em>namespace prefix</em> of this node, or <code>null</code> if it is unspecified. <ahref="#ad1f609ef0a7ebd5d4467e83940f9d085"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the local part of the <em>qualified name</em> of this node. <ahref="#a5d459b8e9f1fe8cc82f3690d71d9d98e"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Set the <em>namespace prefix</em> of this node. <ahref="#aded63bdb02c190b1a6136c8a7deafcd8"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns whether this node (if it is an element) has any attributes. <ahref="#a9857bb0538097f155821e5831fe6326b"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns whether this node is the same node as the given one. <ahref="#a439002778f99343aba9298d7b0f712c4"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Tests whether two nodes are equal. <ahref="#ae7e8ea1540b43fc6f73a2595dc45cfce"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Associate an object to a key on this node. <ahref="#af1b188358a3cbb7b44a24fc71425bf42"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Retrieves the object associated to a key on a this node. <ahref="#af9d881c5e6a25c61732060dc6c6955ea"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">The absolute base URI of this node or <code>null</code> if undefined. <ahref="#af775e8a5faa128e2b7d301b29d285192"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Compares the reference node, i.e. <ahref="#ac905b4d9386c40069c0aae057a514bcc"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">This attribute returns the text content of this node and its descendants. <ahref="#afbc6510ae34920edb171bc1b7499e2fd"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">This attribute removes any possible children this node may have and, if the new string is not empty or null, replaced by a single <code><aclass="el"href="classxercesc_1_1DOMText.html"title="The DOMText interface inherits from DOMCharacterData and represents the textual content...">DOMText</a></code> node containing the string this attribute is set to. <ahref="#a5b9b83d624c3d85e7ad8d4f30e9a8bb4"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Look up the prefix associated to the given namespace URI, starting from this node. <ahref="#a55b9c445bcec20de933bd33fa38ef2a3"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">This method checks if the specified <code>namespaceURI</code> is the default namespace or not. <ahref="#a97bd8a011432b6bb97152cfed2984d9e"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Look up the namespace URI associated to the given prefix, starting from this node. <ahref="#aff70b3729ab0030f559b1c0bf9d5196e"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">This method makes available a <code><aclass="el"href="classxercesc_1_1DOMNode.html"title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a></code>'s specialized interface. <ahref="#ab448bae0f53b1d355cb448186ce5d47e"></a><br/></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Called to indicate that this Node (and its associated children) is no longer in use and that the implementation may relinquish any resources associated with it and its associated children. <ahref="#a0618f7ce0796d8c35ede74882a93dae1"></a><br/></td></tr>
<tr><tdcolspan="2"><h2>Protected Member Functions</h2></td></tr>
<p>The <code><aclass="el"href="classxercesc_1_1DOMNode.html"title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a></code> interface is the primary datatype for the entire Document Object Model. </p>
<p>It represents a single node in the document tree. While all objects implementing the <code><aclass="el"href="classxercesc_1_1DOMNode.html"title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a></code> interface expose methods for dealing with children, not all objects implementing the <code><aclass="el"href="classxercesc_1_1DOMNode.html"title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a></code> interface may have children. For example, <code><aclass="el"href="classxercesc_1_1DOMText.html"title="The DOMText interface inherits from DOMCharacterData and represents the textual content...">DOMText</a></code> nodes may not have children, and adding children to such nodes results in a <code><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></code> being raised. </p>
<p>The attributes <code>nodeName</code>, <code>nodeValue</code> and <code>attributes</code> are included as a mechanism to get at node information without casting down to the specific derived interface. In cases where there is no obvious mapping of these attributes for a specific <code>nodeType</code> (e.g., <code>nodeValue</code> for an <code><aclass="el"href="classxercesc_1_1DOMElement.html"title="By far the vast majority of objects (apart from text) that authors encounter when...">DOMElement</a></code> or <code>attributes</code> for a <code><aclass="el"href="classxercesc_1_1DOMComment.html"title="This interface inherits from CharacterData and represents the content of a comment...">DOMComment</a></code> ), this returns <code>null</code>. Note that the specialized interfaces may contain additional and more convenient mechanisms to get and set the relevant information. </p>
<p>The values of <code>nodeName</code>, <code>nodeValue</code>, and <code>attributes</code> vary according to the node type as follows: </p>
<tdvalign="top"rowspan="1"colspan="1"><p><aclass="el"href="classxercesc_1_1DOMAttr.html"title="The DOMAttr class refers to an attribute of an XML element.">DOMAttr</a></p>
</td><tdvalign="top"rowspan="1"colspan="1"><p>name of attribute </p>
</td><tdvalign="top"rowspan="1"colspan="1"><p>value of attribute </p>
<tdvalign="top"rowspan="1"colspan="1"><p><aclass="el"href="classxercesc_1_1DOMCDATASection.html"title="CDATA sections are used to escape blocks of text containing characters that would...">DOMCDATASection</a></p>
<tdvalign="top"rowspan="1"colspan="1"><p><aclass="el"href="classxercesc_1_1DOMComment.html"title="This interface inherits from CharacterData and represents the content of a comment...">DOMComment</a></p>
<tdvalign="top"rowspan="1"colspan="1"><p><aclass="el"href="classxercesc_1_1DOMDocument.html"title="The DOMDocument interface represents the entire XML document.">DOMDocument</a></p>
<tdvalign="top"rowspan="1"colspan="1"><p><aclass="el"href="classxercesc_1_1DOMDocumentFragment.html"title="DOMDocumentFragment is a "lightweight" or "minimal" DOMDocument...">DOMDocumentFragment</a></p>
<tdvalign="top"rowspan="1"colspan="1"><p><aclass="el"href="classxercesc_1_1DOMDocumentType.html"title="Each DOMDocument has a doctype attribute whose value is either null or a DOMDocumentType...">DOMDocumentType</a></p>
</td><tdvalign="top"rowspan="1"colspan="1"><p>document type name </p>
<tdvalign="top"rowspan="1"colspan="1"><p><aclass="el"href="classxercesc_1_1DOMElement.html"title="By far the vast majority of objects (apart from text) that authors encounter when...">DOMElement</a></p>
</td><tdvalign="top"rowspan="1"colspan="1"><p>tag name </p>
<tdvalign="top"rowspan="1"colspan="1"><p><aclass="el"href="classxercesc_1_1DOMEntity.html"title="This interface represents an entity, either parsed or unparsed, in an XML document...">DOMEntity</a></p>
</td><tdvalign="top"rowspan="1"colspan="1"><p>entity name </p>
<tdvalign="top"rowspan="1"colspan="1"><p><aclass="el"href="classxercesc_1_1DOMEntityReference.html"title="DOMEntityReference objects may be inserted into the structure model when an entity...">DOMEntityReference</a></p>
</td><tdvalign="top"rowspan="1"colspan="1"><p>name of entity referenced </p>
<tdvalign="top"rowspan="1"colspan="1"><p><aclass="el"href="classxercesc_1_1DOMNotation.html"title="This interface represents a notation declared in the DTD.">DOMNotation</a></p>
</td><tdvalign="top"rowspan="1"colspan="1"><p>notation name </p>
<tdvalign="top"rowspan="1"colspan="1"><p><aclass="el"href="classxercesc_1_1DOMText.html"title="The DOMText interface inherits from DOMCharacterData and represents the textual content...">DOMText</a></p>
<p><code>DOCUMENT_POSITION_CONTAINED_BY:</code> The node is contained by the reference node. A node which is contained is always following, too. </p>
<p><code>DOCUMENT_POSITION_CONTAINS:</code> The node contains the reference node. A node which contains is always preceding, too. </p>
<p><code>DOCUMENT_POSITION_DISCONNECTED:</code> The two nodes are disconnected. Order between disconnected nodes is always implementation-specific. </p>
<p><code>DOCUMENT_POSITION_FOLLOWING:</code> The node follows the reference node. </p>
<p><code>DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:</code> The determination of preceding versus following is implementation-specific. </p>
<p><code>DOCUMENT_POSITION_PRECEDING:</code> The second node precedes the reference node.</p>
<tr><tdvalign="top"></td><tdvalign="top"><em>newChild</em> </td><td>The node to add.If it is a <code><aclass="el"href="classxercesc_1_1DOMDocumentFragment.html"title="DOMDocumentFragment is a "lightweight" or "minimal" DOMDocument...">DOMDocumentFragment</a></code> object, the entire contents of the document fragment are moved into the child list of this node </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not allow children of the type of the <code>newChild</code> node, or if the node to append is one of this node's ancestors. <br/>
WRONG_DOCUMENT_ERR: Raised if <code>newChild</code> was created from a different document than the one that created this node. <br/>
<p>This function serves as a generic copy constructor for nodes.</p>
<p>The duplicate node has no parent ( <code>parentNode</code> returns <code>null</code>.). <br/>
Cloning an <code><aclass="el"href="classxercesc_1_1DOMElement.html"title="By far the vast majority of objects (apart from text) that authors encounter when...">DOMElement</a></code> copies all attributes and their values, including those generated by the XML processor to represent defaulted attributes, but this method does not copy any text it contains unless it is a deep clone, since the text is contained in a child <code><aclass="el"href="classxercesc_1_1DOMText.html"title="The DOMText interface inherits from DOMCharacterData and represents the textual content...">DOMText</a></code> node. Cloning any other type of node simply returns a copy of this node. </p>
<tr><tdvalign="top"></td><tdvalign="top"><em>deep</em> </td><td>If <code>true</code>, recursively clone the subtree under the specified node; if <code>false</code>, clone only the node itself (and its attributes, if it is an <code><aclass="el"href="classxercesc_1_1DOMElement.html"title="By far the vast majority of objects (apart from text) that authors encounter when...">DOMElement</a></code>). </td></tr>
<p>the node on which this method is being called, with a node, i.e. the one passed as a parameter, with regard to their position in the document and according to the document order.</p>
<p>Gets a <code><aclass="el"href="classxercesc_1_1DOMNamedNodeMap.html"title="DOMNamedNodeMaps are used to represent collections of nodes that can be accessed...">DOMNamedNodeMap</a></code> containing the attributes of this node (if it is an <code><aclass="el"href="classxercesc_1_1DOMElement.html"title="By far the vast majority of objects (apart from text) that authors encounter when...">DOMElement</a></code>) or <code>null</code> otherwise. </p>
<p>The absolute base URI of this node or <code>null</code> if undefined. </p>
<p>This value is computed according to . However, when the <code><aclass="el"href="classxercesc_1_1DOMDocument.html"title="The DOMDocument interface represents the entire XML document.">DOMDocument</a></code> supports the feature "HTML" , the base URI is computed using first the value of the href attribute of the HTML BASE element if any, and the value of the <code>documentURI</code> attribute from the <code><aclass="el"href="classxercesc_1_1DOMDocument.html"title="The DOMDocument interface represents the entire XML document.">DOMDocument</a></code> interface otherwise.</p>
<p><br/>
When the node is an <code><aclass="el"href="classxercesc_1_1DOMElement.html"title="By far the vast majority of objects (apart from text) that authors encounter when...">DOMElement</a></code>, a <code><aclass="el"href="classxercesc_1_1DOMDocument.html"title="The DOMDocument interface represents the entire XML document.">DOMDocument</a></code> or a a <code><aclass="el"href="classxercesc_1_1DOMProcessingInstruction.html"title="The DOMProcessingInstruction interface represents a "processing instruction"...">DOMProcessingInstruction</a></code>, this attribute represents the properties [base URI] defined in . When the node is a <code><aclass="el"href="classxercesc_1_1DOMNotation.html"title="This interface represents a notation declared in the DTD.">DOMNotation</a></code>, an <code><aclass="el"href="classxercesc_1_1DOMEntity.html"title="This interface represents an entity, either parsed or unparsed, in an XML document...">DOMEntity</a></code>, or an <code><aclass="el"href="classxercesc_1_1DOMEntityReference.html"title="DOMEntityReference objects may be inserted into the structure model when an entity...">DOMEntityReference</a></code>, this attribute represents the properties [declaration base URI]. </p>
<p>Gets a <code><aclass="el"href="classxercesc_1_1DOMNodeList.html"title="The DOMNodeList interface provides the abstraction of an ordered collection of nodes...">DOMNodeList</a></code> that contains all children of this node. </p>
<p>If there are no children, this is a <code><aclass="el"href="classxercesc_1_1DOMNodeList.html"title="The DOMNodeList interface provides the abstraction of an ordered collection of nodes...">DOMNodeList</a></code> containing no nodes. The content of the returned <code><aclass="el"href="classxercesc_1_1DOMNodeList.html"title="The DOMNodeList interface provides the abstraction of an ordered collection of nodes...">DOMNodeList</a></code> is "live" in the sense that, for instance, changes to the children of the node object that it was created from are immediately reflected in the nodes returned by the <code><aclass="el"href="classxercesc_1_1DOMNodeList.html"title="The DOMNodeList interface provides the abstraction of an ordered collection of nodes...">DOMNodeList</a></code> accessors; it is not a static snapshot of the content of the node. This is true for every <code><aclass="el"href="classxercesc_1_1DOMNodeList.html"title="The DOMNodeList interface provides the abstraction of an ordered collection of nodes...">DOMNodeList</a></code>, including the ones returned by the <code>getElementsByTagName</code> method. </p>
<p>This method makes available a <code><aclass="el"href="classxercesc_1_1DOMNode.html"title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a></code>'s specialized interface. </p>
<dlclass="return"><dt><b>Returns:</b></dt><dd>Returns an alternate <code><aclass="el"href="classxercesc_1_1DOMNode.html"title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a></code> which implements the specialized APIs of the specified feature, if any, or <code>null</code> if there is no alternate <code><aclass="el"href="classxercesc_1_1DOMNode.html"title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a></code> which implements interfaces associated with that feature. Any alternate <code><aclass="el"href="classxercesc_1_1DOMNode.html"title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a></code> returned by this method must delegate to the primary core <code><aclass="el"href="classxercesc_1_1DOMNode.html"title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a></code> and not return results inconsistent with the primary core <code><aclass="el"href="classxercesc_1_1DOMNode.html"title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a></code> such as <code>key</code>, <code>attributes</code>, <code>childNodes</code>, etc. </dd></dl>
<p>Returns the local part of the <em>qualified name</em> of this node. </p>
<p>For nodes created with a DOM Level 1 method, such as <code>createElement</code> from the <code><aclass="el"href="classxercesc_1_1DOMDocument.html"title="The DOMDocument interface represents the entire XML document.">DOMDocument</a></code> interface, it is null.</p>
<p>Get the <em>namespace URI</em> of this node, or <code>null</code> if it is unspecified. </p>
<p>This is not a computed value that is the result of a namespace lookup based on an examination of the namespace declarations in scope. It is merely the namespace URI given at creation time. </p>
<p>For nodes of any type other than <code>ELEMENT_NODE</code> and <code>ATTRIBUTE_NODE</code> and nodes created with a DOM Level 1 method, such as <code>createElement</code> from the <code><aclass="el"href="classxercesc_1_1DOMDocument.html"title="The DOMDocument interface represents the entire XML document.">DOMDocument</a></code> interface, this is always <code>null</code>.</p>
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly. </td></tr>
<p>Gets the <code><aclass="el"href="classxercesc_1_1DOMDocument.html"title="The DOMDocument interface represents the entire XML document.">DOMDocument</a></code> object associated with this node. </p>
<p>This is also the <code><aclass="el"href="classxercesc_1_1DOMDocument.html"title="The DOMDocument interface represents the entire XML document.">DOMDocument</a></code> object used to create new nodes. When this node is a <code><aclass="el"href="classxercesc_1_1DOMDocument.html"title="The DOMDocument interface represents the entire XML document.">DOMDocument</a></code> or a <code><aclass="el"href="classxercesc_1_1DOMDocumentType.html"title="Each DOMDocument has a doctype attribute whose value is either null or a DOMDocumentType...">DOMDocumentType</a></code> which is not used with any <code><aclass="el"href="classxercesc_1_1DOMDocument.html"title="The DOMDocument interface represents the entire XML document.">DOMDocument</a></code> yet, this is <code>null</code>.</p>
<p>All nodes, except <code><aclass="el"href="classxercesc_1_1DOMDocument.html"title="The DOMDocument interface represents the entire XML document.">DOMDocument</a></code>, <code><aclass="el"href="classxercesc_1_1DOMDocumentFragment.html"title="DOMDocumentFragment is a "lightweight" or "minimal" DOMDocument...">DOMDocumentFragment</a></code>, and <code><aclass="el"href="classxercesc_1_1DOMAttr.html"title="The DOMAttr class refers to an attribute of an XML element.">DOMAttr</a></code> may have a parent. However, if a node has just been created and not yet added to the tree, or if it has been removed from the tree, a <code>null</code><aclass="el"href="classxercesc_1_1DOMNode.html"title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a> is returned. </p>
<p>This attribute returns the text content of this node and its descendants. </p>
<p>No serialization is performed, the returned string does not contain any markup. No whitespace normalization is performed and the returned string does not contain the white spaces in element content.</p>
<p><br/>
The string returned is made of the text content of this node depending on its type, as defined below: </p>
</td><tdvalign="top"rowspan="1"colspan="1"><p>concatenation of the <code>textContent</code> attribute value of every child node, excluding COMMENT_NODE and PROCESSING_INSTRUCTION_NODE nodes </p>
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>DOMSTRING_SIZE_ERR: Raised when it would return more characters than fit in a <code>DOMString</code> variable on the implementation platform. </td></tr>
<dlclass="see"><dt><b>See also:</b></dt><dd><aclass="el"href="classxercesc_1_1DOMNode.html#a5b9b83d624c3d85e7ad8d4f30e9a8bb4"title="This attribute removes any possible children this node may have and, if the new string...">setTextContent</a></dd></dl>
<dlclass="return"><dt><b>Returns:</b></dt><dd>Returns the <code>void*</code> associated to the given key on this node, or <code>null</code> if there was none. </dd></dl>
<dlclass="see"><dt><b>See also:</b></dt><dd><aclass="el"href="classxercesc_1_1DOMNode.html#af1b188358a3cbb7b44a24fc71425bf42"title="Associate an object to a key on this node.">setUserData</a></dd></dl>
<p>This is a convenience method to allow easy determination of whether a node has any children. </p>
<dlclass="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the node has any children, <code>false</code> if the node has no children. </dd></dl>
<p>Inserts the node <code>newChild</code> before the existing child node <code>refChild</code>. </p>
<p>If <code>refChild</code> is <code>null</code>, insert <code>newChild</code> at the end of the list of children. <br/>
If <code>newChild</code> is a <code><aclass="el"href="classxercesc_1_1DOMDocumentFragment.html"title="DOMDocumentFragment is a "lightweight" or "minimal" DOMDocument...">DOMDocumentFragment</a></code> object, all of its children are inserted, in the same order, before <code>refChild</code>. If the <code>newChild</code> is already in the tree, it is first removed. Note that a <code><aclass="el"href="classxercesc_1_1DOMNode.html"title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a></code> that has never been assigned to refer to an actual node is == null. </p>
<tr><tdvalign="top"></td><tdvalign="top"><em>newChild</em> </td><td>The node to insert. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>refChild</em> </td><td>The reference node, i.e., the node before which the new node must be inserted. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not allow children of the type of the <code>newChild</code> node, or if the node to insert is one of this node's ancestors. <br/>
WRONG_DOCUMENT_ERR: Raised if <code>newChild</code> was created from a different document than the one that created this node. <br/>
NO_MODIFICATION_ALLOWED_ERR: Raised if this node or the node being inserted is readonly. <br/>
<dlclass="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the specified <code>namespaceURI</code> is the default namespace, <code>false</code> otherwise. </dd></dl>
This method tests for equality of nodes, not sameness (i.e., whether the two nodes are pointers to the same object) which can be tested with <code><aclass="el"href="classxercesc_1_1DOMNode.html#a439002778f99343aba9298d7b0f712c4"title="Returns whether this node is the same node as the given one.">DOMNode::isSameNode</a></code>. All nodes that are the same will also be equal, though the reverse may not be true. <br/>
Two nodes are equal if and only if the following conditions are satisfied: The two nodes are of the same type.The following string attributes are equal: <code>nodeName</code>, <code>localName</code>, <code>namespaceURI</code>, <code>prefix</code>, <code>nodeValue</code> , <code>baseURI</code>. This is: they are both <code>null</code>, or they have the same length and are character for character identical. The <code>attributes</code><code>DOMNamedNodeMaps</code> are equal. This is: they are both <code>null</code>, or they have the same length and for each node that exists in one map there is a node that exists in the other map and is equal, although not necessarily at the same index.The <code>childNodes</code><code>DOMNodeLists</code> are equal. This is: they are both <code>null</code>, or they have the same length and contain equal nodes at the same index. This is true for <code><aclass="el"href="classxercesc_1_1DOMAttr.html"title="The DOMAttr class refers to an attribute of an XML element.">DOMAttr</a></code> nodes as for any other type of node. Note that normalization can affect equality; to avoid this, nodes should be normalized before being compared. <br/>
For two <code><aclass="el"href="classxercesc_1_1DOMDocumentType.html"title="Each DOMDocument has a doctype attribute whose value is either null or a DOMDocumentType...">DOMDocumentType</a></code> nodes to be equal, the following conditions must also be satisfied: The following string attributes are equal: <code>publicId</code>, <code>systemId</code>, <code>internalSubset</code>.The <code>entities</code><code>DOMNamedNodeMaps</code> are equal.The <code>notations</code><code>DOMNamedNodeMaps</code> are equal. <br/>
On the other hand, the following do not affect equality: the <code>ownerDocument</code> attribute, the <code>specified</code> attribute for <code><aclass="el"href="classxercesc_1_1DOMAttr.html"title="The DOMAttr class refers to an attribute of an XML element.">DOMAttr</a></code> nodes, the <code>isWhitespaceInElementContent</code> attribute for <code><aclass="el"href="classxercesc_1_1DOMText.html"title="The DOMText interface inherits from DOMCharacterData and represents the textual content...">DOMText</a></code> nodes, as well as any user data or event listeners registered on the nodes.</p>
<dlclass="return"><dt><b>Returns:</b></dt><dd>If the nodes, and possibly subtrees are equal, <code>true</code> otherwise <code>false</code>. </dd></dl>
<p>Returns whether this node is the same node as the given one. </p>
<p><br/>
This method provides a way to determine whether two <code><aclass="el"href="classxercesc_1_1DOMNode.html"title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a></code> references returned by the implementation reference the same object. When two <code><aclass="el"href="classxercesc_1_1DOMNode.html"title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a></code> references are references to the same object, even if through a proxy, the references may be used completely interchangeably, such that all attributes have the same values and calling the same DOM method on either reference always has exactly the same effect.</p>
<tr><tdvalign="top"></td><tdvalign="top"><em>feature</em> </td><td>The string of the feature to test. This is the same name as what can be passed to the method <code>hasFeature</code> on <code><aclass="el"href="classxercesc_1_1DOMImplementation.html"title="The DOMImplementation interface provides a number of methods for performing operations...">DOMImplementation</a></code>. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>version</em> </td><td>This is the version number of the feature to test. In Level 2, version 1, this is the string "2.0". If the version is not specified, supporting any version of the feature will cause the method to return <code>true</code>. </td></tr>
<dlclass="return"><dt><b>Returns:</b></dt><dd>Returns <code>true</code> if the specified feature is supported on this node, <code>false</code> otherwise. </dd></dl>
<tr><tdvalign="top"></td><tdvalign="top"><em>prefix</em> </td><td>The prefix to look for. If this parameter is <code>null</code>, the method will return the default namespace URI if any. </td></tr>
<dlclass="return"><dt><b>Returns:</b></dt><dd>Returns an associated namespace prefix if found, <code>null</code> if none is found. If more than one prefix are associated to the namespace prefix, the returned namespace prefix is implementation dependent. </dd></dl>
<p>Puts all <code><aclass="el"href="classxercesc_1_1DOMText.html"title="The DOMText interface inherits from DOMCharacterData and represents the textual content...">DOMText</a></code> nodes in the full depth of the sub-tree underneath this <code><aclass="el"href="classxercesc_1_1DOMNode.html"title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a></code>, including attribute nodes, into a "normal" form where only markup (e.g., tags, comments, processing instructions, CDATA sections, and entity references) separates <code><aclass="el"href="classxercesc_1_1DOMText.html"title="The DOMText interface inherits from DOMCharacterData and represents the textual content...">DOMText</a></code> nodes, i.e., there are neither adjacent <code><aclass="el"href="classxercesc_1_1DOMText.html"title="The DOMText interface inherits from DOMCharacterData and represents the textual content...">DOMText</a></code> nodes nor empty <code><aclass="el"href="classxercesc_1_1DOMText.html"title="The DOMText interface inherits from DOMCharacterData and represents the textual content...">DOMText</a></code> nodes. </p>
<p>This can be used to ensure that the DOM view of a document is the same as if it were saved and re-loaded, and is useful when operations (such as XPointer lookups) that depend on a particular document tree structure are to be used. </p>
<p><b>Note:</b> In cases where the document contains <code>DOMCDATASections</code>, the normalize operation alone may not be sufficient, since XPointers do not differentiate between <code><aclass="el"href="classxercesc_1_1DOMText.html"title="The DOMText interface inherits from DOMCharacterData and represents the textual content...">DOMText</a></code> nodes and <code><aclass="el"href="classxercesc_1_1DOMCDATASection.html"title="CDATA sections are used to escape blocks of text containing characters that would...">DOMCDATASection</a></code> nodes.</p>
<p>Called to indicate that this Node (and its associated children) is no longer in use and that the implementation may relinquish any resources associated with it and its associated children. </p>
<p>If this is a document, any nodes it owns (created by DOMDocument::createXXXX()) are also released.</p>
<p>Access to a released object will lead to unexpected result.</p>
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>INVALID_ACCESS_ERR: Raised if this Node has a parent and thus should not be released yet. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. <br/>
<p>Replaces the child node <code>oldChild</code> with <code>newChild</code> in the list of children, and returns the <code>oldChild</code> node. </p>
<p>If <code>newChild</code> is a <code><aclass="el"href="classxercesc_1_1DOMDocumentFragment.html"title="DOMDocumentFragment is a "lightweight" or "minimal" DOMDocument...">DOMDocumentFragment</a></code> object, <code>oldChild</code> is replaced by all of the <code><aclass="el"href="classxercesc_1_1DOMDocumentFragment.html"title="DOMDocumentFragment is a "lightweight" or "minimal" DOMDocument...">DOMDocumentFragment</a></code> children, which are inserted in the same order.</p>
<p>If the <code>newChild</code> is already in the tree, it is first removed. </p>
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not allow children of the type of the <code>newChild</code> node, or it the node to put in is one of this node's ancestors. <br/>
WRONG_DOCUMENT_ERR: Raised if <code>newChild</code> was created from a different document than the one that created this node. <br/>
NO_MODIFICATION_ALLOWED_ERR: Raised if this node or the new node is readonly. <br/>
<p>Any node which can have a nodeValue will also accept requests to set it to a string. The exact response to this varies from node to node -- Attribute, for example, stores its values in its children and has to replace them with a new Text holding the replacement value.</p>
<p>For most types of Node, value is null and attempting to set it will throw DOMException(NO_MODIFICATION_ALLOWED_ERR). This will also be thrown if the node is read-only. </p>
<dlclass="see"><dt><b>See also:</b></dt><dd><aclass="el"href="classxercesc_1_1DOMNode.html#a91c52c0624325ac9c9e176e944c2e179"title="Gets the value of this node, depending on its type.">getNodeValue</a></dd></dl>
<p>Set the <em>namespace prefix</em> of this node. </p>
<p>Note that setting this attribute, when permitted, changes the <code>nodeName</code> attribute, which holds the <em>qualified name</em>, as well as the <code>tagName</code> and <code>name</code> attributes of the <code><aclass="el"href="classxercesc_1_1DOMElement.html"title="By far the vast majority of objects (apart from text) that authors encounter when...">DOMElement</a></code> and <code><aclass="el"href="classxercesc_1_1DOMAttr.html"title="The DOMAttr class refers to an attribute of an XML element.">DOMAttr</a></code> interfaces, when applicable. </p>
<p>Note also that changing the prefix of an attribute, that is known to have a default value, does not make a new attribute with the default value and the original prefix appear, since the <code>namespaceURI</code> and <code>localName</code> do not change.</p>
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>INVALID_CHARACTER_ERR: Raised if the specified prefix contains an illegal character. <br/>
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. <br/>
NAMESPACE_ERR: Raised if the specified <code>prefix</code> is malformed, if the <code>namespaceURI</code> of this node is <code>null</code>, if the specified prefix is "xml" and the <code>namespaceURI</code> of this node is different from "http://www.w3.org/XML/1998/namespace", if this node is an attribute and the specified prefix is "xmlns" and the <code>namespaceURI</code> of this node is different from "http://www.w3.org/2000/xmlns/", or if this node is an attribute and the <code>qualifiedName</code> of this node is "xmlns". </td></tr>
<p>This attribute removes any possible children this node may have and, if the new string is not empty or null, replaced by a single <code><aclass="el"href="classxercesc_1_1DOMText.html"title="The DOMText interface inherits from DOMCharacterData and represents the textual content...">DOMText</a></code> node containing the string this attribute is set to. </p>
<p>No parsing is performed, the input string is taken as pure textual content.</p>
<tr><tdvalign="top"></td><tdvalign="top"><em><aclass="el"href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly. </td></tr>
<dlclass="see"><dt><b>See also:</b></dt><dd><aclass="el"href="classxercesc_1_1DOMNode.html#afbc6510ae34920edb171bc1b7499e2fd"title="This attribute returns the text content of this node and its descendants.">getTextContent</a></dd></dl>
<p>Associate an object to a key on this node. </p>
<p>The object can later be retrieved from this node by calling <code>getUserData</code> with the same key.</p>
<p>Deletion of the user data remains the responsibility of the application program; it will not be automatically deleted when the nodes themselves are reclaimed.</p>
<p>Both the parameter <code>data</code> and the returned object are void pointer, it is applications' responsibility to keep track of their original type. Casting them to the wrong type may result unexpected behavior.</p>
<tr><tdvalign="top"></td><tdvalign="top"><em>key</em> </td><td>The key to associate the object to. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>data</em> </td><td>The object to associate to the given key, or <code>null</code> to remove any existing association to that key. </td></tr>
<tr><tdvalign="top"></td><tdvalign="top"><em>handler</em> </td><td>The handler to associate to that key, or <code>null</code>. </td></tr>
<dlclass="return"><dt><b>Returns:</b></dt><dd>Returns the void* object previously associated to the given key on this node, or <code>null</code> if there was none. </dd></dl>
<dlclass="see"><dt><b>See also:</b></dt><dd><aclass="el"href="classxercesc_1_1DOMNode.html#af9d881c5e6a25c61732060dc6c6955ea"title="Retrieves the object associated to a key on a this node.">getUserData</a></dd></dl>