<h1>xercesc::DOMAttr Class Reference</h1><!-- doxytag: class="xercesc::DOMAttr" --><!-- doxytag: inherits="xercesc::DOMNode" -->The <code><aclass="el"href="classxercesc_1_1DOMAttr.html"title="The DOMAttr class refers to an attribute of an XML element.">DOMAttr</a></code> class refers to an attribute of an XML element.
<areashape="rect"href="classxercesc_1_1DOMNode.html"title="The DOMNode interface is the primary datatype for the entire Document Object Model..."alt=""coords="5,7,141,31"></map>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the name of this attribute. <ahref="#4176522d28aa3fcc694b403214b96772"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns true if the attribute received its value explicitly in the XML document, or if a value was assigned programatically with the setValue function. <ahref="#c2c2e4b40e9d9d94f5264794aa140490"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the value of the attribute. <ahref="#edb4e2afe89d0a3ca46694db975e4401"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the value of the attribute. <ahref="#38304e6e8a0d93ac3ff32b9f059ea2d8"></a><br></td></tr>
<tr><tdcolspan="2"><divclass="groupHeader">Functions introduced in DOM Level 2.</div></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">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> node this attribute is attached to or <code>null</code> if this attribute is not in use. <ahref="#fdc1f3638b7b004741f7e799abeeb521"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns whether this attribute is known to be of type ID or not. <ahref="#095ce594c3bd546e705b5621994fd2d8"></a><br></td></tr>
<tr><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the type information associated with this attribute. <ahref="#672c2b70df5d9dd55f022d50fd246d4c"></a><br></td></tr>
<tr><tdcolspan="2"><br><h2>Protected Member Functions</h2></td></tr>
The <code><aclass="el"href="classxercesc_1_1DOMAttr.html"title="The DOMAttr class refers to an attribute of an XML element.">DOMAttr</a></code> class refers to an attribute of an XML element.
<code><aclass="el"href="classxercesc_1_1DOMAttr.html"title="The DOMAttr class refers to an attribute of an XML element.">DOMAttr</a></code> objects inherit 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, but since attributes are not actually child nodes of the elements they are associated with, the DOM does not consider them part of the document tree. Thus, 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> attributes <code>parentNode</code>, <code>previousSibling</code>, and <code>nextSibling</code> have a null value for <code><aclass="el"href="classxercesc_1_1DOMAttr.html"title="The DOMAttr class refers to an attribute of an XML element.">DOMAttr</a></code> objects. The DOM takes the view that attributes are properties of elements rather than having a separate identity from the elements they are associated with; this should make it more efficient to implement such features as default attributes associated with all elements of a given type. Furthermore, attribute nodes may not be immediate children of a <code><aclass="el"href="classxercesc_1_1DOMDocumentFragment.html"title="DOMDocumentFragment is a "lightweight" or "minimal" DOMDocument...">DOMDocumentFragment</a></code>. However, they can be associated with <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> nodes contained within a <code><aclass="el"href="classxercesc_1_1DOMDocumentFragment.html"title="DOMDocumentFragment is a "lightweight" or "minimal" DOMDocument...">DOMDocumentFragment</a></code>. In short, users of the DOM need to be aware that <code><aclass="el"href="classxercesc_1_1DOMAttr.html"title="The DOMAttr class refers to an attribute of an XML element.">DOMAttr</a></code> nodes have some things in common with other objects inheriting 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, but they also are quite distinct.<p>
Returns true if the attribute received its value explicitly in the XML document, or if a value was assigned programatically with the setValue function.
Returns false if the attribute value came from the default value declared in the document's DTD. <dlclass="since"compact><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
The value of the attribute is returned as a string. Character and general entity references are replaced with their values. <dlclass="since"compact><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
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> node this attribute is attached to or <code>null</code> if this attribute is not in use.
When it is and its value is unique, the ownerElement of this attribute can be retrieved using getElementById on <aclass="el"href="classxercesc_1_1DOMDocument.html"title="The DOMDocument interface represents the entire XML document.">DOMDocument</a>.<p>
<dlclass="return"compact><dt><b>Returns:</b></dt><dd><code>bool</code> stating if this <code><aclass="el"href="classxercesc_1_1DOMAttr.html"title="The DOMAttr class refers to an attribute of an XML element.">DOMAttr</a></code> is an ID </dd></dl>
<dlclass="return"compact><dt><b>Returns:</b></dt><dd>the <code><aclass="el"href="classxercesc_1_1DOMTypeInfo.html"title="The DOMTypeInfo interface represent a type used by DOMElement or DOMAttr nodes, specified...">DOMTypeInfo</a></code> associated with this attribute </dd></dl>