You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.9.1"/> <title>Xerces-C++: DOMNamedNodeMap Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">Xerces-C++  <span id="projectnumber">3.1.2</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.9.1 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</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><!-- top --> <div class="header"> <div class="summary"> <a href="classDOMNamedNodeMap-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">DOMNamedNodeMap Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div> </div><!--header--> <div class="contents">
<p><code><a class="el" href="classDOMNamedNodeMap.html" title="DOMNamedNodeMaps are used to represent collections of nodes that can be accessed by name...">DOMNamedNodeMap</a></code>s are used to represent collections of nodes that can be accessed by name. <a href="classDOMNamedNodeMap.html#details">More...</a></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td colspan="2"><div class="groupHeader">Destructor</div></td></tr> <tr class="memitem:a29dcdbe269a8628db7a18334fd06b255"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classDOMNamedNodeMap.html#a29dcdbe269a8628db7a18334fd06b255">~DOMNamedNodeMap</a> ()</td></tr> <tr class="memdesc:a29dcdbe269a8628db7a18334fd06b255"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#a29dcdbe269a8628db7a18334fd06b255">More...</a><br /></td></tr> <tr class="separator:a29dcdbe269a8628db7a18334fd06b255"><td class="memSeparator" colspan="2"> </td></tr> <tr><td colspan="2"><div class="groupHeader">Functions introduced in DOM Level 1</div></td></tr> <tr class="memitem:a0d0dd82620905a5ff0bc07cab55b2e6a"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classDOMNode.html">DOMNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDOMNamedNodeMap.html#a0d0dd82620905a5ff0bc07cab55b2e6a">setNamedItem</a> (<a class="el" href="classDOMNode.html">DOMNode</a> *arg)=0</td></tr> <tr class="memdesc:a0d0dd82620905a5ff0bc07cab55b2e6a"><td class="mdescLeft"> </td><td class="mdescRight">Adds a node using its <code>nodeName</code> attribute. <a href="#a0d0dd82620905a5ff0bc07cab55b2e6a">More...</a><br /></td></tr> <tr class="separator:a0d0dd82620905a5ff0bc07cab55b2e6a"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a6b2c2d955e18abe9575ca2ba481ab152"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classDOMNode.html">DOMNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDOMNamedNodeMap.html#a6b2c2d955e18abe9575ca2ba481ab152">item</a> (<a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> index) const =0</td></tr> <tr class="memdesc:a6b2c2d955e18abe9575ca2ba481ab152"><td class="mdescLeft"> </td><td class="mdescRight">Returns the <code>index</code>th item in the map. <a href="#a6b2c2d955e18abe9575ca2ba481ab152">More...</a><br /></td></tr> <tr class="separator:a6b2c2d955e18abe9575ca2ba481ab152"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:abfefdac5bf23757f82bec7d37b57e2f3"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classDOMNode.html">DOMNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDOMNamedNodeMap.html#abfefdac5bf23757f82bec7d37b57e2f3">getNamedItem</a> (const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *name) const =0</td></tr> <tr class="memdesc:abfefdac5bf23757f82bec7d37b57e2f3"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves a node specified by name. <a href="#abfefdac5bf23757f82bec7d37b57e2f3">More...</a><br /></td></tr> <tr class="separator:abfefdac5bf23757f82bec7d37b57e2f3"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1f29385d052b41722d124d32a50fb6e5"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classDOMNamedNodeMap.html#a1f29385d052b41722d124d32a50fb6e5">getLength</a> () const =0</td></tr> <tr class="memdesc:a1f29385d052b41722d124d32a50fb6e5"><td class="mdescLeft"> </td><td class="mdescRight">The number of nodes in the map. <a href="#a1f29385d052b41722d124d32a50fb6e5">More...</a><br /></td></tr> <tr class="separator:a1f29385d052b41722d124d32a50fb6e5"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a80316d955e0cfc39967a7ad46ede09db"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classDOMNode.html">DOMNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDOMNamedNodeMap.html#a80316d955e0cfc39967a7ad46ede09db">removeNamedItem</a> (const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *name)=0</td></tr> <tr class="memdesc:a80316d955e0cfc39967a7ad46ede09db"><td class="mdescLeft"> </td><td class="mdescRight">Removes a node specified by name. <a href="#a80316d955e0cfc39967a7ad46ede09db">More...</a><br /></td></tr> <tr class="separator:a80316d955e0cfc39967a7ad46ede09db"><td class="memSeparator" colspan="2"> </td></tr> <tr><td colspan="2"><div class="groupHeader">Functions introduced in DOM Level 2</div></td></tr> <tr class="memitem:a55c126b6993c455cd31e70712b471ea6"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classDOMNode.html">DOMNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDOMNamedNodeMap.html#a55c126b6993c455cd31e70712b471ea6">getNamedItemNS</a> (const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *namespaceURI, const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *localName) const =0</td></tr> <tr class="memdesc:a55c126b6993c455cd31e70712b471ea6"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves a node specified by local name and namespace URI. <a href="#a55c126b6993c455cd31e70712b471ea6">More...</a><br /></td></tr> <tr class="separator:a55c126b6993c455cd31e70712b471ea6"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a7cab71b9fda7270f3aa6564f52b3f60f"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classDOMNode.html">DOMNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDOMNamedNodeMap.html#a7cab71b9fda7270f3aa6564f52b3f60f">setNamedItemNS</a> (<a class="el" href="classDOMNode.html">DOMNode</a> *arg)=0</td></tr> <tr class="memdesc:a7cab71b9fda7270f3aa6564f52b3f60f"><td class="mdescLeft"> </td><td class="mdescRight">Adds a node using its <code>namespaceURI</code> and <code>localName</code>. <a href="#a7cab71b9fda7270f3aa6564f52b3f60f">More...</a><br /></td></tr> <tr class="separator:a7cab71b9fda7270f3aa6564f52b3f60f"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a36caef66faef78d37941398053add282"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classDOMNode.html">DOMNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classDOMNamedNodeMap.html#a36caef66faef78d37941398053add282">removeNamedItemNS</a> (const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *namespaceURI, const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *localName)=0</td></tr> <tr class="memdesc:a36caef66faef78d37941398053add282"><td class="mdescLeft"> </td><td class="mdescRight">Removes a node specified by local name and namespace URI. <a href="#a36caef66faef78d37941398053add282">More...</a><br /></td></tr> <tr class="separator:a36caef66faef78d37941398053add282"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a> Protected Member Functions</h2></td></tr> <tr><td colspan="2"><div class="groupHeader">Hidden constructors</div></td></tr> <tr class="memitem:aa4c569443d45c371db4cbb83a649d12e"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classDOMNamedNodeMap.html#aa4c569443d45c371db4cbb83a649d12e">DOMNamedNodeMap</a> ()</td></tr> <tr class="separator:aa4c569443d45c371db4cbb83a649d12e"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p><code><a class="el" href="classDOMNamedNodeMap.html" title="DOMNamedNodeMaps are used to represent collections of nodes that can be accessed by name...">DOMNamedNodeMap</a></code>s are used to represent collections of nodes that can be accessed by name. </p> <p>Note that <code><a class="el" href="classDOMNamedNodeMap.html" title="DOMNamedNodeMaps are used to represent collections of nodes that can be accessed by name...">DOMNamedNodeMap</a></code> does not inherit from <code><a class="el" href="classDOMNodeList.html" title="The DOMNodeList interface provides the abstraction of an ordered collection of nodes. ">DOMNodeList</a></code>; <code><a class="el" href="classDOMNamedNodeMap.html" title="DOMNamedNodeMaps are used to represent collections of nodes that can be accessed by name...">DOMNamedNodeMap</a></code>s are not maintained in any particular order. Nodes contained in a <code><a class="el" href="classDOMNamedNodeMap.html" title="DOMNamedNodeMaps are used to represent collections of nodes that can be accessed by name...">DOMNamedNodeMap</a></code> may also be accessed by an ordinal index, but this is simply to allow convenient enumeration of the contents, and does not imply that the DOM specifies an order to these Nodes.</p> <dl class="section since"><dt>Since</dt><dd>DOM Level 1 </dd></dl> </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> <a class="anchor" id="aa4c569443d45c371db4cbb83a649d12e"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">DOMNamedNodeMap::DOMNamedNodeMap </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">protected</span></span> </td> </tr> </table> </div><div class="memdoc">
</div> </div> <a class="anchor" id="a29dcdbe269a8628db7a18334fd06b255"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual DOMNamedNodeMap::~DOMNamedNodeMap </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc">
<p>Destructor. </p>
</div> </div> <h2 class="groupheader">Member Function Documentation</h2> <a class="anchor" id="a1f29385d052b41722d124d32a50fb6e5"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> DOMNamedNodeMap::getLength </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> </tr> </table> </div><div class="memdoc">
<p>The number of nodes in the map. </p> <p>The range of valid child node indices is 0 to <code>length-1</code> inclusive. </p><dl class="section since"><dt>Since</dt><dd>DOM Level 1 </dd></dl>
</div> </div> <a class="anchor" id="abfefdac5bf23757f82bec7d37b57e2f3"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classDOMNode.html">DOMNode</a>* DOMNamedNodeMap::getNamedItem </td> <td>(</td> <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> * </td> <td class="paramname"><em>name</em></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> </tr> </table> </div><div class="memdoc">
<p>Retrieves a node specified by name. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">name</td><td>The <code>nodeName</code> of a node to retrieve. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>A <code><a class="el" href="classDOMNode.html" title="The DOMNode interface is the primary datatype for the entire Document Object Model. ">DOMNode</a></code> (of any type) with the specified <code>nodeName</code>, or <code>null</code> if it does not identify any node in the map. </dd></dl> <dl class="section since"><dt>Since</dt><dd>DOM Level 1 </dd></dl>
</div> </div> <a class="anchor" id="a55c126b6993c455cd31e70712b471ea6"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classDOMNode.html">DOMNode</a>* DOMNamedNodeMap::getNamedItemNS </td> <td>(</td> <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> * </td> <td class="paramname"><em>namespaceURI</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> * </td> <td class="paramname"><em>localName</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> </tr> </table> </div><div class="memdoc">
<p>Retrieves a node specified by local name and namespace URI. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">namespaceURI</td><td>The <em>namespace URI</em> of the node to retrieve. </td></tr> <tr><td class="paramname">localName</td><td>The <em>local name</em> of the node to retrieve. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>A <code><a class="el" href="classDOMNode.html" title="The DOMNode interface is the primary datatype for the entire Document Object Model. ">DOMNode</a></code> (of any type) with the specified local name and namespace URI, or <code>null</code> if they do not identify any node in the map. </dd></dl> <dl class="section since"><dt>Since</dt><dd>DOM Level 2 </dd></dl>
</div> </div> <a class="anchor" id="a6b2c2d955e18abe9575ca2ba481ab152"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classDOMNode.html">DOMNode</a>* DOMNamedNodeMap::item </td> <td>(</td> <td class="paramtype"><a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#ac0f7e36996cd03eb43bcee10321f77cd">XMLSize_t</a> </td> <td class="paramname"><em>index</em></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> </tr> </table> </div><div class="memdoc">
<p>Returns the <code>index</code>th item in the map. </p> <p>If <code>index</code> is greater than or equal to the number of nodes in the map, this returns <code>null</code>. </p><dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">index</td><td>Index into the map. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>The node at the <code>index</code>th position in the <code><a class="el" href="classDOMNamedNodeMap.html" title="DOMNamedNodeMaps are used to represent collections of nodes that can be accessed by name...">DOMNamedNodeMap</a></code>, or <code>null</code> if that is not a valid index. </dd></dl> <dl class="section since"><dt>Since</dt><dd>DOM Level 1 </dd></dl>
</div> </div> <a class="anchor" id="a80316d955e0cfc39967a7ad46ede09db"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classDOMNode.html">DOMNode</a>* DOMNamedNodeMap::removeNamedItem </td> <td>(</td> <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> * </td> <td class="paramname"><em>name</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> </tr> </table> </div><div class="memdoc">
<p>Removes a node specified by name. </p> <p>If the removed node is an <code><a class="el" href="classDOMAttr.html" title="The DOMAttr class refers to an attribute of an XML element. ">DOMAttr</a></code> with a default value it is immediately replaced. </p><dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">name</td><td>The <code>nodeName</code> of a node to remove. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>The node removed from the map if a node with such a name exists. </dd></dl> <dl class="exception"><dt>Exceptions</dt><dd> <table class="exception"> <tr><td class="paramname"><a class="el" href="classDOMException.html">DOMException</a></td><td>NOT_FOUND_ERR: Raised if there is no node named <code>name</code> in the map. <br /> NO_MODIFICATION_ALLOWED_ERR: Raised if this <code><a class="el" href="classDOMNamedNodeMap.html" title="DOMNamedNodeMaps are used to represent collections of nodes that can be accessed by name...">DOMNamedNodeMap</a></code> is readonly. </td></tr> </table> </dd> </dl> <dl class="section since"><dt>Since</dt><dd>DOM Level 1 </dd></dl>
</div> </div> <a class="anchor" id="a36caef66faef78d37941398053add282"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classDOMNode.html">DOMNode</a>* DOMNamedNodeMap::removeNamedItemNS </td> <td>(</td> <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> * </td> <td class="paramname"><em>namespaceURI</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> * </td> <td class="paramname"><em>localName</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> </tr> </table> </div><div class="memdoc">
<p>Removes a node specified by local name and namespace URI. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">namespaceURI</td><td>The <em>namespace URI</em> of the node to remove. </td></tr> <tr><td class="paramname">localName</td><td>The <em>local name</em> of the node to remove. When this <code><a class="el" href="classDOMNamedNodeMap.html" title="DOMNamedNodeMaps are used to represent collections of nodes that can be accessed by name...">DOMNamedNodeMap</a></code> contains the attributes attached to an element, as returned by the attributes attribute of the <code><a class="el" href="classDOMNode.html" title="The DOMNode interface is the primary datatype for the entire Document Object Model. ">DOMNode</a></code> interface, 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. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>The node removed from the map if a node with such a local name and namespace URI exists. </dd></dl> <dl class="exception"><dt>Exceptions</dt><dd> <table class="exception"> <tr><td class="paramname"><a class="el" href="classDOMException.html">DOMException</a></td><td>NOT_FOUND_ERR: Raised if there is no node named <code>name</code> in the map. <br /> NO_MODIFICATION_ALLOWED_ERR: Raised if this <code><a class="el" href="classDOMNamedNodeMap.html" title="DOMNamedNodeMaps are used to represent collections of nodes that can be accessed by name...">DOMNamedNodeMap</a></code> is readonly. </td></tr> </table> </dd> </dl> <dl class="section since"><dt>Since</dt><dd>DOM Level 2 </dd></dl>
</div> </div> <a class="anchor" id="a0d0dd82620905a5ff0bc07cab55b2e6a"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classDOMNode.html">DOMNode</a>* DOMNamedNodeMap::setNamedItem </td> <td>(</td> <td class="paramtype"><a class="el" href="classDOMNode.html">DOMNode</a> * </td> <td class="paramname"><em>arg</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> </tr> </table> </div><div class="memdoc">
<p>Adds a node using its <code>nodeName</code> attribute. </p> <p><br /> As the <code>nodeName</code> attribute is used to derive the name which the node must be stored under, multiple nodes of certain types (those that have a "special" string value) cannot be stored as the names would clash. This is seen as preferable to allowing nodes to be aliased. </p><dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">arg</td><td>A node to store in a named node map. The node will later be accessible using the value of the <code>nodeName</code> attribute of the node. If a node with that name is already present in the map, it is replaced by the new one. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>If the new <code><a class="el" href="classDOMNode.html" title="The DOMNode interface is the primary datatype for the entire Document Object Model. ">DOMNode</a></code> replaces an existing node the replaced <code><a class="el" href="classDOMNode.html" title="The DOMNode interface is the primary datatype for the entire Document Object Model. ">DOMNode</a></code> is returned, otherwise <code>null</code> is returned. </dd></dl> <dl class="exception"><dt>Exceptions</dt><dd> <table class="exception"> <tr><td class="paramname"><a class="el" href="classDOMException.html">DOMException</a></td><td>WRONG_DOCUMENT_ERR: Raised if <code>arg</code> was created from a different document than the one that created the <code><a class="el" href="classDOMNamedNodeMap.html" title="DOMNamedNodeMaps are used to represent collections of nodes that can be accessed by name...">DOMNamedNodeMap</a></code>. <br /> NO_MODIFICATION_ALLOWED_ERR: Raised if this <code><a class="el" href="classDOMNamedNodeMap.html" title="DOMNamedNodeMaps are used to represent collections of nodes that can be accessed by name...">DOMNamedNodeMap</a></code> is readonly. <br /> INUSE_ATTRIBUTE_ERR: Raised if <code>arg</code> is an <code><a class="el" href="classDOMAttr.html" title="The DOMAttr class refers to an attribute of an XML element. ">DOMAttr</a></code> that is already an attribute of another <code><a class="el" href="classDOMElement.html" title="By far the vast majority of objects (apart from text) that authors encounter when traversing a docume...">DOMElement</a></code> object. The DOM user must explicitly clone <code><a class="el" href="classDOMAttr.html" title="The DOMAttr class refers to an attribute of an XML element. ">DOMAttr</a></code> nodes to re-use them in other elements. </td></tr> </table> </dd> </dl> <dl class="section since"><dt>Since</dt><dd>DOM Level 1 </dd></dl>
</div> </div> <a class="anchor" id="a7cab71b9fda7270f3aa6564f52b3f60f"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classDOMNode.html">DOMNode</a>* DOMNamedNodeMap::setNamedItemNS </td> <td>(</td> <td class="paramtype"><a class="el" href="classDOMNode.html">DOMNode</a> * </td> <td class="paramname"><em>arg</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> </tr> </table> </div><div class="memdoc">
<p>Adds a node using its <code>namespaceURI</code> and <code>localName</code>. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">arg</td><td>A node to store in a named node map. The node will later be accessible using the value of the <code>namespaceURI</code> and <code>localName</code> attribute of the node. If a node with those namespace URI and local name is already present in the map, it is replaced by the new one. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>If the new <code><a class="el" href="classDOMNode.html" title="The DOMNode interface is the primary datatype for the entire Document Object Model. ">DOMNode</a></code> replaces an existing node the replaced <code><a class="el" href="classDOMNode.html" title="The DOMNode interface is the primary datatype for the entire Document Object Model. ">DOMNode</a></code> is returned, otherwise <code>null</code> is returned. </dd></dl> <dl class="exception"><dt>Exceptions</dt><dd> <table class="exception"> <tr><td class="paramname"><a class="el" href="classDOMException.html">DOMException</a></td><td>WRONG_DOCUMENT_ERR: Raised if <code>arg</code> was created from a different document than the one that created the <code><a class="el" href="classDOMNamedNodeMap.html" title="DOMNamedNodeMaps are used to represent collections of nodes that can be accessed by name...">DOMNamedNodeMap</a></code>. <br /> NO_MODIFICATION_ALLOWED_ERR: Raised if this <code><a class="el" href="classDOMNamedNodeMap.html" title="DOMNamedNodeMaps are used to represent collections of nodes that can be accessed by name...">DOMNamedNodeMap</a></code> is readonly. <br /> INUSE_ATTRIBUTE_ERR: Raised if <code>arg</code> is an <code><a class="el" href="classDOMAttr.html" title="The DOMAttr class refers to an attribute of an XML element. ">DOMAttr</a></code> that is already an attribute of another <code><a class="el" href="classDOMElement.html" title="By far the vast majority of objects (apart from text) that authors encounter when traversing a docume...">DOMElement</a></code> object. The DOM user must explicitly clone <code><a class="el" href="classDOMAttr.html" title="The DOMAttr class refers to an attribute of an XML element. ">DOMAttr</a></code> nodes to re-use them in other elements. </td></tr> </table> </dd> </dl> <dl class="section since"><dt>Since</dt><dd>DOM Level 2 </dd></dl>
</div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="DOMNamedNodeMap_8hpp_source.html">DOMNamedNodeMap.hpp</a></li> </ul> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Wed Mar 18 2015 10:43:38 for Xerces-C++ by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.9.1 </small></address> </body> </html>
|