958 lines
59 KiB
HTML
958 lines
59 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
|
<title>XQilla DOM3 API Documentation</title>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
|
<link href="tabs.css" rel="stylesheet" type="text/css">
|
|
</head><body>
|
|
<a style="float:right;" href="http://sourceforge.net/projects/xqilla"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=152021&type=2" border="0" alt="SourceForge.net Logo" /></a>
|
|
<!-- Generated by Doxygen 1.5.1 -->
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
|
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
|
|
<li><a href="files.html"><span>Files</span></a></li>
|
|
</ul></div>
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="classes.html"><span>Alphabetical List</span></a></li>
|
|
<li><a href="annotated.html"><span>Class List</span></a></li>
|
|
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
|
<li><a href="functions.html"><span>Class Members</span></a></li>
|
|
</ul></div>
|
|
<div class="nav">
|
|
<a class="el" href="namespacexercesc.html">xercesc</a>::<a class="el" href="classxercesc_1_1DOMElement.html">DOMElement</a></div>
|
|
<h1>xercesc::DOMElement Class Reference</h1><!-- doxytag: class="xercesc::DOMElement" --><!-- doxytag: inherits="xercesc::DOMNode" -->By far the vast majority of objects (apart from text) that authors encounter when traversing a document are <code><a class="el" href="classxercesc_1_1DOMElement.html">DOMElement</a></code> nodes.
|
|
<a href="#_details">More...</a>
|
|
<p>
|
|
<code>#include <<a class="el" href="DOMElement_8hpp-source.html">DOMElement.hpp</a>></code>
|
|
<p>
|
|
Inheritance diagram for xercesc::DOMElement:<p><center><img src="classxercesc_1_1DOMElement__inherit__graph.png" border="0" usemap="#xercesc_1_1DOMElement__inherit__map" alt="Inheritance graph"></center>
|
|
<map name="xercesc_1_1DOMElement__inherit__map">
|
|
<area href="classxercesc_1_1DOMNode.html" shape="rect" coords="16,7,165,31" alt="">
|
|
</map>
|
|
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classxercesc_1_1DOMElement-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
|
|
<tr><td></td></tr>
|
|
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader">Functions introduced in DOM Level 1</div></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const XMLCh * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMElement.html#df5c7601f6cdafaab1b9df4031e8fa84">getTagName</a> () const=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">The name of the element. <a href="#df5c7601f6cdafaab1b9df4031e8fa84"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const XMLCh * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMElement.html#bbf9718a26c7e97916ccd1027f7b1987">getAttribute</a> (const XMLCh *name) const=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieves an attribute value by name. <a href="#bbf9718a26c7e97916ccd1027f7b1987"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMElement.html#c917d8db889c28f9b3e6055d33b72364">getAttributeNode</a> (const XMLCh *name) const=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieves an <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> node by name. <a href="#c917d8db889c28f9b3e6055d33b72364"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMNodeList.html">DOMNodeList</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMElement.html#6a73e686210855713349e947d97a6c6d">getElementsByTagName</a> (const XMLCh *name) const=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a <code><a class="el" href="classxercesc_1_1DOMNodeList.html">DOMNodeList</a></code> of all descendant elements with a given tag name, in the order in which they would be encountered in a preorder traversal of the <code><a class="el" href="classxercesc_1_1DOMElement.html">DOMElement</a></code> tree. <a href="#6a73e686210855713349e947d97a6c6d"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMElement.html#c95433c546390a1f0911606add25ba96">setAttribute</a> (const XMLCh *name, const XMLCh *value)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a new attribute. <a href="#c95433c546390a1f0911606add25ba96"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMElement.html#16055d7195f08d069ae8c0c132af21c4">setAttributeNode</a> (<a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a> *newAttr)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a new attribute. <a href="#16055d7195f08d069ae8c0c132af21c4"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMElement.html#168c0fe79af8d6c3c66aaf40ee55d5e4">removeAttributeNode</a> (<a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a> *oldAttr)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Removes the specified attribute node. <a href="#168c0fe79af8d6c3c66aaf40ee55d5e4"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMElement.html#230b9d7cb9182e3e3c19566060d965c2">removeAttribute</a> (const XMLCh *name)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Removes an attribute by name. <a href="#230b9d7cb9182e3e3c19566060d965c2"></a><br></td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader">Functions introduced in DOM Level 2.</div></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const XMLCh * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMElement.html#bf209e7d1957d06bdca29a182ab97c50">getAttributeNS</a> (const XMLCh *namespaceURI, const XMLCh *localName) const=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieves an attribute value by local name and namespace URI. <a href="#bf209e7d1957d06bdca29a182ab97c50"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMElement.html#ba6f0d6b079618f67fc3e4739492faa2">setAttributeNS</a> (const XMLCh *namespaceURI, const XMLCh *qualifiedName, const XMLCh *value)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a new attribute. <a href="#ba6f0d6b079618f67fc3e4739492faa2"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMElement.html#605bbd57ad1606ba624bad6c9b1e308a">removeAttributeNS</a> (const XMLCh *namespaceURI, const XMLCh *localName)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Removes an attribute by local name and namespace URI. <a href="#605bbd57ad1606ba624bad6c9b1e308a"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMElement.html#736466756014aaa740ff9e7666d1d2b6">getAttributeNodeNS</a> (const XMLCh *namespaceURI, const XMLCh *localName) const=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieves an <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> node by local name and namespace URI. <a href="#736466756014aaa740ff9e7666d1d2b6"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMElement.html#660de6de750daa3b2e39ae996804409a">setAttributeNodeNS</a> (<a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a> *newAttr)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a new attribute. <a href="#660de6de750daa3b2e39ae996804409a"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMNodeList.html">DOMNodeList</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMElement.html#6cad662791bb4e794c3ff3e81118b9c2">getElementsByTagNameNS</a> (const XMLCh *namespaceURI, const XMLCh *localName) const=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a <code><a class="el" href="classxercesc_1_1DOMNodeList.html">DOMNodeList</a></code> of all the <code><a class="el" href="classxercesc_1_1DOMElement.html">DOMElement</a></code>s with a given local name and namespace URI in the order in which they would be encountered in a preorder traversal of the <code><a class="el" href="classxercesc_1_1DOMDocument.html">DOMDocument</a></code> tree, starting from this node. <a href="#6cad662791bb4e794c3ff3e81118b9c2"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMElement.html#6c8edc1a65e649c29d0d24c4a2f10794">hasAttribute</a> (const XMLCh *name) const=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns <code>true</code> when an attribute with a given name is specified on this element or has a default value, <code>false</code> otherwise. <a href="#6c8edc1a65e649c29d0d24c4a2f10794"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMElement.html#6deba5788a156beaf28e76d9358aa38f">hasAttributeNS</a> (const XMLCh *namespaceURI, const XMLCh *localName) const=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns <code>true</code> when an attribute with a given local name and namespace URI is specified on this element or has a default value, <code>false</code> otherwise. <a href="#6deba5788a156beaf28e76d9358aa38f"></a><br></td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader">Functions introduced in DOM Level 3</div></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMElement.html#d0ef6a0d2d3f612ccdd4e6a62bd66eab">setIdAttribute</a> (const XMLCh *name)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Declares the <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> specified by name to be of type ID. <a href="#d0ef6a0d2d3f612ccdd4e6a62bd66eab"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMElement.html#92f7642742ff10dde42cf3c08f78f59d">setIdAttributeNS</a> (const XMLCh *namespaceURI, const XMLCh *localName)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Declares the <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> specified by local name and namespace URI to be of type ID. <a href="#92f7642742ff10dde42cf3c08f78f59d"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMElement.html#2bc4166e386e8abe950cb2b080988e37">setIdAttributeNode</a> (const <a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a> *idAttr)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Declares the <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> specified by node to be of type ID. <a href="#2bc4166e386e8abe950cb2b080988e37"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const <a class="el" href="classxercesc_1_1DOMTypeInfo.html">DOMTypeInfo</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMElement.html#e919bdf3eab20ed9e18e9a57f8aefdbf">getTypeInfo</a> () const=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the type information associated with this element. <a href="#e919bdf3eab20ed9e18e9a57f8aefdbf"></a><br></td></tr>
|
|
</table>
|
|
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
|
By far the vast majority of objects (apart from text) that authors encounter when traversing a document are <code><a class="el" href="classxercesc_1_1DOMElement.html">DOMElement</a></code> nodes.
|
|
<p>
|
|
Assume the following XML document:<elementExample id="demo"> <subelement1/> <subelement2><subsubelement/></subelement2> </elementExample> <p>
|
|
When represented using DOM, the top node is an <code><a class="el" href="classxercesc_1_1DOMElement.html">DOMElement</a></code> node for "elementExample", which contains two child <code><a class="el" href="classxercesc_1_1DOMElement.html">DOMElement</a></code> nodes, one for "subelement1" and one for "subelement2". "subelement1" contains no child nodes. <p>
|
|
Elements may have attributes associated with them; since the <code><a class="el" href="classxercesc_1_1DOMElement.html">DOMElement</a></code> interface inherits from <code><a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a></code>, the generic <code><a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a></code> interface method <code>getAttributes</code> may be used to retrieve the set of all attributes for an element. There are methods on the <code><a class="el" href="classxercesc_1_1DOMElement.html">DOMElement</a></code> interface to retrieve either an <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> object by name or an attribute value by name. In XML, where an attribute value may contain entity references, an <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> object should be retrieved to examine the possibly fairly complex sub-tree representing the attribute value. On the other hand, in HTML, where all attributes have simple string values, methods to directly access an attribute value can safely be used as a convenience.<p>
|
|
<dl class="since" compact><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
|
|
|
|
<p>
|
|
<hr><h2>Constructor & Destructor Documentation</h2>
|
|
<a class="anchor" name="164ac09569974d71cd8717f8ec3ce859"></a><!-- doxytag: member="xercesc::DOMElement::DOMElement" ref="164ac09569974d71cd8717f8ec3ce859" args="()" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">xercesc::DOMElement::DOMElement </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td width="100%"><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="8d73c64f17c99af7d470b92876bdb4f3"></a><!-- doxytag: member="xercesc::DOMElement::DOMElement" ref="8d73c64f17c99af7d470b92876bdb4f3" args="(const DOMElement &other)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">xercesc::DOMElement::DOMElement </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classxercesc_1_1DOMElement.html">DOMElement</a> & </td>
|
|
<td class="paramname"> <em>other</em> </td>
|
|
<td> ) </td>
|
|
<td width="100%"><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="2032fad44d4a1a5c5a7c1371b1f81ba6"></a><!-- doxytag: member="xercesc::DOMElement::~DOMElement" ref="2032fad44d4a1a5c5a7c1371b1f81ba6" args="()" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual xercesc::DOMElement::~DOMElement </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td width="100%"><code> [inline, virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Destructor.
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="164ac09569974d71cd8717f8ec3ce859"></a><!-- doxytag: member="xercesc::DOMElement::DOMElement" ref="164ac09569974d71cd8717f8ec3ce859" args="()" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">xercesc::DOMElement::DOMElement </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td width="100%"><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="8d73c64f17c99af7d470b92876bdb4f3"></a><!-- doxytag: member="xercesc::DOMElement::DOMElement" ref="8d73c64f17c99af7d470b92876bdb4f3" args="(const DOMElement &other)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">xercesc::DOMElement::DOMElement </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classxercesc_1_1DOMElement.html">DOMElement</a> & </td>
|
|
<td class="paramname"> <em>other</em> </td>
|
|
<td> ) </td>
|
|
<td width="100%"><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="2032fad44d4a1a5c5a7c1371b1f81ba6"></a><!-- doxytag: member="xercesc::DOMElement::~DOMElement" ref="2032fad44d4a1a5c5a7c1371b1f81ba6" args="()" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual xercesc::DOMElement::~DOMElement </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td width="100%"><code> [inline, virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Destructor.
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<hr><h2>Member Function Documentation</h2>
|
|
<a class="anchor" name="df5c7601f6cdafaab1b9df4031e8fa84"></a><!-- doxytag: member="xercesc::DOMElement::getTagName" ref="df5c7601f6cdafaab1b9df4031e8fa84" args="() const=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual const XMLCh* xercesc::DOMElement::getTagName </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td width="100%"> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
The name of the element.
|
|
<p>
|
|
For example, in: <elementExample id="demo"> ... </elementExample> , <code>tagName</code> has the value <code>"elementExample"</code>. Note that this is case-preserving in XML, as are all of the operations of the DOM. <dl class="since" compact><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="bbf9718a26c7e97916ccd1027f7b1987"></a><!-- doxytag: member="xercesc::DOMElement::getAttribute" ref="bbf9718a26c7e97916ccd1027f7b1987" args="(const XMLCh *name) const=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual const XMLCh* xercesc::DOMElement::getAttribute </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>name</em> </td>
|
|
<td> ) </td>
|
|
<td width="100%"> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Retrieves an attribute value by name.
|
|
<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>The name of the attribute to retrieve. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> value as a string, or the empty string if that attribute does not have a specified or default value. </dd></dl>
|
|
<dl class="since" compact><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="c917d8db889c28f9b3e6055d33b72364"></a><!-- doxytag: member="xercesc::DOMElement::getAttributeNode" ref="c917d8db889c28f9b3e6055d33b72364" args="(const XMLCh *name) const=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual <a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a>* xercesc::DOMElement::getAttributeNode </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>name</em> </td>
|
|
<td> ) </td>
|
|
<td width="100%"> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Retrieves an <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> node by name.
|
|
<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>The name (<code>nodeName</code>) of the attribute to retrieve. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> node with the specified name (<code>nodeName</code>) or <code>null</code> if there is no such attribute. </dd></dl>
|
|
<dl class="since" compact><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="6a73e686210855713349e947d97a6c6d"></a><!-- doxytag: member="xercesc::DOMElement::getElementsByTagName" ref="6a73e686210855713349e947d97a6c6d" args="(const XMLCh *name) const=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual <a class="el" href="classxercesc_1_1DOMNodeList.html">DOMNodeList</a>* xercesc::DOMElement::getElementsByTagName </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>name</em> </td>
|
|
<td> ) </td>
|
|
<td width="100%"> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Returns a <code><a class="el" href="classxercesc_1_1DOMNodeList.html">DOMNodeList</a></code> of all descendant elements with a given tag name, in the order in which they would be encountered in a preorder traversal of the <code><a class="el" href="classxercesc_1_1DOMElement.html">DOMElement</a></code> tree.
|
|
<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>The name of the tag to match on. The special value "*" matches all tags. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A list of matching <code><a class="el" href="classxercesc_1_1DOMElement.html">DOMElement</a></code> nodes. </dd></dl>
|
|
<dl class="since" compact><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="c95433c546390a1f0911606add25ba96"></a><!-- doxytag: member="xercesc::DOMElement::setAttribute" ref="c95433c546390a1f0911606add25ba96" args="(const XMLCh *name, const XMLCh *value)=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual void xercesc::DOMElement::setAttribute </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>name</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>value</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td width="100%"><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Adds a new attribute.
|
|
<p>
|
|
If an attribute with that name is already present in the element, its value is changed to be that of the value parameter. This value is a simple string, it is not parsed as it is being set. So any markup (such as syntax to be recognized as an entity reference) is treated as literal text, and needs to be appropriately escaped by the implementation when it is written out. In order to assign an attribute value that contains entity references, the user must create an <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> node plus any <code><a class="el" href="classxercesc_1_1DOMText.html">DOMText</a></code> and <code><a class="el" href="classxercesc_1_1DOMEntityReference.html">DOMEntityReference</a></code> nodes, build the appropriate subtree, and use <code>setAttributeNode</code> to assign it as the value of an attribute. <dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>The name of the attribute to create or alter. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>Value to set in string form. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>INVALID_CHARACTER_ERR: Raised if the specified name contains an illegal character. <br>
|
|
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl class="since" compact><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="16055d7195f08d069ae8c0c132af21c4"></a><!-- doxytag: member="xercesc::DOMElement::setAttributeNode" ref="16055d7195f08d069ae8c0c132af21c4" args="(DOMAttr *newAttr)=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual <a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a>* xercesc::DOMElement::setAttributeNode </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a> * </td>
|
|
<td class="paramname"> <em>newAttr</em> </td>
|
|
<td> ) </td>
|
|
<td width="100%"><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Adds a new attribute.
|
|
<p>
|
|
If an attribute with that name (<code>nodeName</code>) is already present in the element, it is replaced by the new one. <dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>newAttr</em> </td><td>The <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> node to add to the attribute list. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>If the <code>newAttr</code> attribute replaces an existing attribute, the replaced <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> node is returned, otherwise <code>null</code> is returned. </dd></dl>
|
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>WRONG_DOCUMENT_ERR: Raised if <code>newAttr</code> was created from a different document than the one that created the element. <br>
|
|
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. <br>
|
|
INUSE_ATTRIBUTE_ERR: Raised if <code>newAttr</code> is already an attribute of another <code><a class="el" href="classxercesc_1_1DOMElement.html">DOMElement</a></code> object. The DOM user must explicitly clone <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> nodes to re-use them in other elements. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl class="since" compact><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="168c0fe79af8d6c3c66aaf40ee55d5e4"></a><!-- doxytag: member="xercesc::DOMElement::removeAttributeNode" ref="168c0fe79af8d6c3c66aaf40ee55d5e4" args="(DOMAttr *oldAttr)=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual <a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a>* xercesc::DOMElement::removeAttributeNode </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a> * </td>
|
|
<td class="paramname"> <em>oldAttr</em> </td>
|
|
<td> ) </td>
|
|
<td width="100%"><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Removes the specified attribute node.
|
|
<p>
|
|
If the removed <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> has a default value it is immediately replaced. The replacing attribute has the same namespace URI and local name, as well as the original prefix, when applicable.<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>oldAttr</em> </td><td>The <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> node to remove from the attribute list. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> node that was removed. </dd></dl>
|
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. <br>
|
|
NOT_FOUND_ERR: Raised if <code>oldAttr</code> is not an attribute of the element. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl class="since" compact><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="230b9d7cb9182e3e3c19566060d965c2"></a><!-- doxytag: member="xercesc::DOMElement::removeAttribute" ref="230b9d7cb9182e3e3c19566060d965c2" args="(const XMLCh *name)=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual void xercesc::DOMElement::removeAttribute </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>name</em> </td>
|
|
<td> ) </td>
|
|
<td width="100%"><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Removes an attribute by name.
|
|
<p>
|
|
If the removed attribute is known to have a default value, an attribute immediately appears containing the default value as well as the corresponding namespace URI, local name, and prefix when applicable.<br>
|
|
To remove an attribute by local name and namespace URI, use the <code>removeAttributeNS</code> method. <dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>The name of the attribute to remove. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl class="since" compact><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="bf209e7d1957d06bdca29a182ab97c50"></a><!-- doxytag: member="xercesc::DOMElement::getAttributeNS" ref="bf209e7d1957d06bdca29a182ab97c50" args="(const XMLCh *namespaceURI, const XMLCh *localName) const=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual const XMLCh* xercesc::DOMElement::getAttributeNS </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>namespaceURI</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>localName</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td width="100%"> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Retrieves an attribute value by local name and namespace URI.
|
|
<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>namespaceURI</em> </td><td>The <em>namespace URI</em> of the attribute to retrieve. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>localName</em> </td><td>The <em>local name</em> of the attribute to retrieve. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> value as a string, or an <code>null</code> if that attribute does not have a specified or default value. </dd></dl>
|
|
<dl class="since" compact><dt><b>Since:</b></dt><dd>DOM Level 2 </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="ba6f0d6b079618f67fc3e4739492faa2"></a><!-- doxytag: member="xercesc::DOMElement::setAttributeNS" ref="ba6f0d6b079618f67fc3e4739492faa2" args="(const XMLCh *namespaceURI, const XMLCh *qualifiedName, const XMLCh *value)=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual void xercesc::DOMElement::setAttributeNS </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>namespaceURI</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>qualifiedName</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>value</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td width="100%"><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Adds a new attribute.
|
|
<p>
|
|
If an attribute with the same local name and namespace URI is already present on the element, its prefix is changed to be the prefix part of the <code>qualifiedName</code>, and its value is changed to be the <code>value</code> parameter. This value is a simple string, it is not parsed as it is being set. So any markup (such as syntax to be recognized as an entity reference) is treated as literal text, and needs to be appropriately escaped by the implementation when it is written out. In order to assign an attribute value that contains entity references, the user must create an <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> node plus any <code><a class="el" href="classxercesc_1_1DOMText.html">DOMText</a></code> and <code><a class="el" href="classxercesc_1_1DOMEntityReference.html">DOMEntityReference</a></code> nodes, build the appropriate subtree, and use <code>setAttributeNodeNS</code> or <code>setAttributeNode</code> to assign it as the value of an attribute.<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>namespaceURI</em> </td><td>The <em>namespace URI</em> of the attribute to create or alter. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>qualifiedName</em> </td><td>The <em>qualified name</em> of the attribute to create or alter. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>The value to set in string form. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>INVALID_CHARACTER_ERR: Raised if the specified qualified name contains an illegal character. <br>
|
|
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. <br>
|
|
NAMESPACE_ERR: Raised if the <code>qualifiedName</code> is malformed, if the <code>qualifiedName</code> has a prefix and the <code>namespaceURI</code> is <code>null</code> or an empty string, if the <code>qualifiedName</code> has a prefix that is "xml" and the <code>namespaceURI</code> is different from "http://www.w3.org/XML/1998/namespace", if the <code>qualifiedName</code> has a prefix that is "xmlns" and the <code>namespaceURI</code> is different from "http://www.w3.org/2000/xmlns/", or if the <code>qualifiedName</code> is "xmlns" and the <code>namespaceURI</code> is different from "http://www.w3.org/2000/xmlns/". </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl class="since" compact><dt><b>Since:</b></dt><dd>DOM Level 2 </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="605bbd57ad1606ba624bad6c9b1e308a"></a><!-- doxytag: member="xercesc::DOMElement::removeAttributeNS" ref="605bbd57ad1606ba624bad6c9b1e308a" args="(const XMLCh *namespaceURI, const XMLCh *localName)=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual void xercesc::DOMElement::removeAttributeNS </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>namespaceURI</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>localName</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td width="100%"><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Removes an attribute by local name and namespace URI.
|
|
<p>
|
|
If the removed attribute has a default value it is immediately replaced. The replacing attribute has the same namespace URI and local name, as well as the original prefix.<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>namespaceURI</em> </td><td>The <em>namespace URI</em> of the attribute to remove. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>localName</em> </td><td>The <em>local name</em> of the attribute to remove. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl class="since" compact><dt><b>Since:</b></dt><dd>DOM Level 2 </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="736466756014aaa740ff9e7666d1d2b6"></a><!-- doxytag: member="xercesc::DOMElement::getAttributeNodeNS" ref="736466756014aaa740ff9e7666d1d2b6" args="(const XMLCh *namespaceURI, const XMLCh *localName) const=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual <a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a>* xercesc::DOMElement::getAttributeNodeNS </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>namespaceURI</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>localName</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td width="100%"> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Retrieves an <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> node by local name and namespace URI.
|
|
<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>namespaceURI</em> </td><td>The <em>namespace URI</em> of the attribute to retrieve. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>localName</em> </td><td>The <em>local name</em> of the attribute to retrieve. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> node with the specified attribute local name and namespace URI or <code>null</code> if there is no such attribute. </dd></dl>
|
|
<dl class="since" compact><dt><b>Since:</b></dt><dd>DOM Level 2 </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="660de6de750daa3b2e39ae996804409a"></a><!-- doxytag: member="xercesc::DOMElement::setAttributeNodeNS" ref="660de6de750daa3b2e39ae996804409a" args="(DOMAttr *newAttr)=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual <a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a>* xercesc::DOMElement::setAttributeNodeNS </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a> * </td>
|
|
<td class="paramname"> <em>newAttr</em> </td>
|
|
<td> ) </td>
|
|
<td width="100%"><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Adds a new attribute.
|
|
<p>
|
|
If an attribute with that local name and namespace URI is already present in the element, it is replaced by the new one.<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>newAttr</em> </td><td>The <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> node to add to the attribute list. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>If the <code>newAttr</code> attribute replaces an existing attribute with the same <em>local name</em> and <em>namespace URI</em>, the replaced <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> node is returned, otherwise <code>null</code> is returned. </dd></dl>
|
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>WRONG_DOCUMENT_ERR: Raised if <code>newAttr</code> was created from a different document than the one that created the element. <br>
|
|
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. <br>
|
|
INUSE_ATTRIBUTE_ERR: Raised if <code>newAttr</code> is already an attribute of another <code><a class="el" href="classxercesc_1_1DOMElement.html">DOMElement</a></code> object. The DOM user must explicitly clone <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> nodes to re-use them in other elements. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl class="since" compact><dt><b>Since:</b></dt><dd>DOM Level 2 </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="6cad662791bb4e794c3ff3e81118b9c2"></a><!-- doxytag: member="xercesc::DOMElement::getElementsByTagNameNS" ref="6cad662791bb4e794c3ff3e81118b9c2" args="(const XMLCh *namespaceURI, const XMLCh *localName) const=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual <a class="el" href="classxercesc_1_1DOMNodeList.html">DOMNodeList</a>* xercesc::DOMElement::getElementsByTagNameNS </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>namespaceURI</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>localName</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td width="100%"> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Returns a <code><a class="el" href="classxercesc_1_1DOMNodeList.html">DOMNodeList</a></code> of all the <code><a class="el" href="classxercesc_1_1DOMElement.html">DOMElement</a></code>s with a given local name and namespace URI in the order in which they would be encountered in a preorder traversal of the <code><a class="el" href="classxercesc_1_1DOMDocument.html">DOMDocument</a></code> tree, starting from this node.
|
|
<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>namespaceURI</em> </td><td>The <em>namespace URI</em> of the elements to match on. The special value "*" matches all namespaces. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>localName</em> </td><td>The <em>local name</em> of the elements to match on. The special value "*" matches all local names. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A new <code><a class="el" href="classxercesc_1_1DOMNodeList.html">DOMNodeList</a></code> object containing all the matched <code><a class="el" href="classxercesc_1_1DOMElement.html">DOMElement</a></code>s. </dd></dl>
|
|
<dl class="since" compact><dt><b>Since:</b></dt><dd>DOM Level 2 </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="6c8edc1a65e649c29d0d24c4a2f10794"></a><!-- doxytag: member="xercesc::DOMElement::hasAttribute" ref="6c8edc1a65e649c29d0d24c4a2f10794" args="(const XMLCh *name) const=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual bool xercesc::DOMElement::hasAttribute </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>name</em> </td>
|
|
<td> ) </td>
|
|
<td width="100%"> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Returns <code>true</code> when an attribute with a given name is specified on this element or has a default value, <code>false</code> otherwise.
|
|
<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>The name of the attribute to look for. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if an attribute with the given name is specified on this element or has a default value, <code>false</code> otherwise. </dd></dl>
|
|
<dl class="since" compact><dt><b>Since:</b></dt><dd>DOM Level 2 </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="6deba5788a156beaf28e76d9358aa38f"></a><!-- doxytag: member="xercesc::DOMElement::hasAttributeNS" ref="6deba5788a156beaf28e76d9358aa38f" args="(const XMLCh *namespaceURI, const XMLCh *localName) const=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual bool xercesc::DOMElement::hasAttributeNS </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>namespaceURI</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>localName</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td width="100%"> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Returns <code>true</code> when an attribute with a given local name and namespace URI is specified on this element or has a default value, <code>false</code> otherwise.
|
|
<p>
|
|
HTML-only DOM implementations do not need to implement this method. <dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>namespaceURI</em> </td><td>The namespace URI of the attribute to look for. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>localName</em> </td><td>The local name of the attribute to look for. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if an attribute with the given local name and namespace URI is specified or has a default value on this element, <code>false</code> otherwise. </dd></dl>
|
|
<dl class="since" compact><dt><b>Since:</b></dt><dd>DOM Level 2 </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="d0ef6a0d2d3f612ccdd4e6a62bd66eab"></a><!-- doxytag: member="xercesc::DOMElement::setIdAttribute" ref="d0ef6a0d2d3f612ccdd4e6a62bd66eab" args="(const XMLCh *name)=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual void xercesc::DOMElement::setIdAttribute </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>name</em> </td>
|
|
<td> ) </td>
|
|
<td width="100%"><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Declares the <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> specified by name to be of type ID.
|
|
<p>
|
|
If the value of the specified <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> is unique then this element node can later be retrieved using getElementById on Document. Note, however, that this simply affects this node and does not change any grammar that may be in use. To specify an <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> by local name and namespace URI, use the setIdAttributeNS method. <dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>The name of the <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code>. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. <br>
|
|
NOT_FOUND_ERR: Raised if the specified node is not an <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> of this element.</td></tr>
|
|
</table>
|
|
</dl>
|
|
<p>
|
|
<b>"Experimental - subject to change"</b><p>
|
|
<dl class="since" compact><dt><b>Since:</b></dt><dd>DOM Level 3 </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="92f7642742ff10dde42cf3c08f78f59d"></a><!-- doxytag: member="xercesc::DOMElement::setIdAttributeNS" ref="92f7642742ff10dde42cf3c08f78f59d" args="(const XMLCh *namespaceURI, const XMLCh *localName)=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual void xercesc::DOMElement::setIdAttributeNS </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>namespaceURI</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>localName</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td width="100%"><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Declares the <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> specified by local name and namespace URI to be of type ID.
|
|
<p>
|
|
If the value of the specified <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> is unique then this <code><a class="el" href="classxercesc_1_1DOMElement.html">DOMElement</a></code> node can later be retrieved using getElementById on <code><a class="el" href="classxercesc_1_1DOMDocument.html">DOMDocument</a></code>. Note, however, that this simply affects this node and does not change any grammar that may be in use. <dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>namespaceURI</em> </td><td>The namespace URI of the <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code>. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>localName</em> </td><td>The local name of the <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code>. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. <br>
|
|
NOT_FOUND_ERR: Raised if the specified node is not an <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> of this element.</td></tr>
|
|
</table>
|
|
</dl>
|
|
<p>
|
|
<b>"Experimental - subject to change"</b><p>
|
|
<dl class="since" compact><dt><b>Since:</b></dt><dd>DOM Level 3 </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="2bc4166e386e8abe950cb2b080988e37"></a><!-- doxytag: member="xercesc::DOMElement::setIdAttributeNode" ref="2bc4166e386e8abe950cb2b080988e37" args="(const DOMAttr *idAttr)=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual void xercesc::DOMElement::setIdAttributeNode </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a> * </td>
|
|
<td class="paramname"> <em>idAttr</em> </td>
|
|
<td> ) </td>
|
|
<td width="100%"><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Declares the <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> specified by node to be of type ID.
|
|
<p>
|
|
If the value of the specified <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> is unique then this <code><a class="el" href="classxercesc_1_1DOMElement.html">DOMElement</a></code> node can later be retrieved using getElementById on <code><a class="el" href="classxercesc_1_1DOMDocument.html">DOMDocument</a></code>. Note, however, that this simply affects this node and does not change any grammar that may be in use. <dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>idAttr</em> </td><td>The <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> node. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classxercesc_1_1DOMException.html">DOMException</a></em> </td><td>NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly. <br>
|
|
NOT_FOUND_ERR: Raised if the specified node is not an <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> of this element.</td></tr>
|
|
</table>
|
|
</dl>
|
|
<p>
|
|
<b>"Experimental - subject to change"</b><p>
|
|
<dl class="since" compact><dt><b>Since:</b></dt><dd>DOM Level 3 </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="e919bdf3eab20ed9e18e9a57f8aefdbf"></a><!-- doxytag: member="xercesc::DOMElement::getTypeInfo" ref="e919bdf3eab20ed9e18e9a57f8aefdbf" args="() const=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual const <a class="el" href="classxercesc_1_1DOMTypeInfo.html">DOMTypeInfo</a>* xercesc::DOMElement::getTypeInfo </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td width="100%"> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Returns the type information associated with this element.
|
|
<p>
|
|
<b>"Experimental - subject to change"</b><p>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the <code><a class="el" href="classxercesc_1_1DOMTypeInfo.html">DOMTypeInfo</a></code> associated with this element </dd></dl>
|
|
<dl class="since" compact><dt><b>Since:</b></dt><dd>DOM level 3 </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<hr>The documentation for this class was generated from the following file:<ul>
|
|
<li><a class="el" href="DOMElement_8hpp-source.html">DOMElement.hpp</a></ul>
|
|
<hr size="1"><address style="align: right;"><small>Generated on Mon Apr 28 16:41:28 2008 for XQilla DOM Level 3 API by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
|
|
</body>
|
|
</html>
|