394 lines
28 KiB
HTML
394 lines
28 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.6.1 -->
|
|
<div class="navigation" id="top">
|
|
<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 class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
|
<li><a href="files.html"><span>Files</span></a></li>
|
|
<li><a href="examples.html"><span>Examples</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="tabs">
|
|
<ul>
|
|
<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 class="navpath"><a class="el" href="namespacexercesc.html">xercesc</a>::<a class="el" href="classxercesc_1_1DOMNamedNodeMap.html">DOMNamedNodeMap</a>
|
|
</div>
|
|
</div>
|
|
<div class="contents">
|
|
<h1>xercesc::DOMNamedNodeMap Class Reference</h1><!-- doxytag: class="xercesc::DOMNamedNodeMap" -->
|
|
<p><code><a class="el" href="classxercesc_1_1DOMNamedNodeMap.html" title="DOMNamedNodeMaps are used to represent collections of nodes that can be accessed...">DOMNamedNodeMap</a></code>s are used to represent collections of nodes that can be accessed by name.
|
|
<a href="#_details">More...</a></p>
|
|
|
|
<p><code>#include <<a class="el" href="DOMNamedNodeMap_8hpp_source.html">DOMNamedNodeMap.hpp</a>></code></p>
|
|
|
|
<p><a href="classxercesc_1_1DOMNamedNodeMap-members.html">List of all members.</a></p>
|
|
<table border="0" cellpadding="0" cellspacing="0">
|
|
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader">Destructor</div></td></tr>
|
|
<tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp22a8ec108d963f279c6a6a95aa960a57"></a> </p>
|
|
<br/><br/></div></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMNamedNodeMap.html#a043e35b25faf3e084f53bcb7af03e995">~DOMNamedNodeMap</a> ()</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#a043e35b25faf3e084f53bcb7af03e995"></a><br/></td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader">Functions introduced in DOM Level 1</div></td></tr>
|
|
<tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp24249042249e54f2e7b060cef8bc9ec0"></a> </p>
|
|
<br/><br/></div></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMNamedNodeMap.html#ab0460a9ab57ae2a669d18a720f18c40d">setNamedItem</a> (<a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> *arg)=0</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a node using its <code>nodeName</code> attribute. <a href="#ab0460a9ab57ae2a669d18a720f18c40d"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMNamedNodeMap.html#a4ef53e72c2fa91366ac2db178d9cb8fb">item</a> (XMLSize_t index) const =0</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the <code>index</code>th item in the map. <a href="#a4ef53e72c2fa91366ac2db178d9cb8fb"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMNamedNodeMap.html#a4943e18403b1c7f45747a83ef9616f6c">getNamedItem</a> (const XMLCh *name) const =0</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieves a node specified by name. <a href="#a4943e18403b1c7f45747a83ef9616f6c"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual XMLSize_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMNamedNodeMap.html#a64f903a4a63b0fb840e8ec5307ed427d">getLength</a> () const =0</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">The number of nodes in the map. <a href="#a64f903a4a63b0fb840e8ec5307ed427d"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMNamedNodeMap.html#a61daea55f82f379af62c90abd973bf1b">removeNamedItem</a> (const XMLCh *name)=0</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Removes a node specified by name. <a href="#a61daea55f82f379af62c90abd973bf1b"></a><br/></td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader">Functions introduced in DOM Level 2</div></td></tr>
|
|
<tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp8cb9d2ae562d364104f70ddb7c8dc904"></a> </p>
|
|
<br/><br/></div></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMNamedNodeMap.html#a1c5b2c32234daa32c7bc2049b80d567a">getNamedItemNS</a> (const XMLCh *namespaceURI, const XMLCh *localName) const =0</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieves a node specified by local name and namespace URI. <a href="#a1c5b2c32234daa32c7bc2049b80d567a"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMNamedNodeMap.html#a659e7833aba836cc3f24c6b93e653b0c">setNamedItemNS</a> (<a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> *arg)=0</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a node using its <code>namespaceURI</code> and <code>localName</code>. <a href="#a659e7833aba836cc3f24c6b93e653b0c"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMNamedNodeMap.html#a908b939cd8cf54d649c478ed6720db73">removeNamedItemNS</a> (const XMLCh *namespaceURI, const XMLCh *localName)=0</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Removes a node specified by local name and namespace URI. <a href="#a908b939cd8cf54d649c478ed6720db73"></a><br/></td></tr>
|
|
<tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader">Hidden constructors</div></td></tr>
|
|
<tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp7d629e77fff660516f7d86e8f54695d0"></a> </p>
|
|
<br/><br/></div></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMNamedNodeMap.html#ac9e59ff107fdb47edc1be61e7c864a27">DOMNamedNodeMap</a> ()</td></tr>
|
|
</table>
|
|
<hr/><a name="_details"></a><h2>Detailed Description</h2>
|
|
<p><code><a class="el" href="classxercesc_1_1DOMNamedNodeMap.html" title="DOMNamedNodeMaps are used to represent collections of nodes that can be accessed...">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="classxercesc_1_1DOMNamedNodeMap.html" title="DOMNamedNodeMaps are used to represent collections of nodes that can be accessed...">DOMNamedNodeMap</a></code> does not inherit from <code><a class="el" href="classxercesc_1_1DOMNodeList.html" title="The DOMNodeList interface provides the abstraction of an ordered collection of nodes...">DOMNodeList</a></code>; <code><a class="el" href="classxercesc_1_1DOMNamedNodeMap.html" title="DOMNamedNodeMaps are used to represent collections of nodes that can be accessed...">DOMNamedNodeMap</a></code>s are not maintained in any particular order. Nodes contained in a <code><a class="el" href="classxercesc_1_1DOMNamedNodeMap.html" title="DOMNamedNodeMaps are used to represent collections of nodes that can be accessed...">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="since"><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
|
|
<hr/><h2>Constructor & Destructor Documentation</h2>
|
|
<a class="anchor" id="ac9e59ff107fdb47edc1be61e7c864a27"></a><!-- doxytag: member="xercesc::DOMNamedNodeMap::DOMNamedNodeMap" ref="ac9e59ff107fdb47edc1be61e7c864a27" args="()" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">xercesc::DOMNamedNodeMap::DOMNamedNodeMap </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td>
|
|
<td> ) </td>
|
|
<td><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a043e35b25faf3e084f53bcb7af03e995"></a><!-- doxytag: member="xercesc::DOMNamedNodeMap::~DOMNamedNodeMap" ref="a043e35b25faf3e084f53bcb7af03e995" args="()" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual xercesc::DOMNamedNodeMap::~DOMNamedNodeMap </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td>
|
|
<td> ) </td>
|
|
<td><code> [inline, virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Destructor. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/><h2>Member Function Documentation</h2>
|
|
<a class="anchor" id="a64f903a4a63b0fb840e8ec5307ed427d"></a><!-- doxytag: member="xercesc::DOMNamedNodeMap::getLength" ref="a64f903a4a63b0fb840e8ec5307ed427d" args="() const =0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual XMLSize_t xercesc::DOMNamedNodeMap::getLength </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td>
|
|
<td> ) </td>
|
|
<td> const<code> [pure virtual]</code></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="since"><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a4943e18403b1c7f45747a83ef9616f6c"></a><!-- doxytag: member="xercesc::DOMNamedNodeMap::getNamedItem" ref="a4943e18403b1c7f45747a83ef9616f6c" 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_1DOMNode.html">DOMNode</a>* xercesc::DOMNamedNodeMap::getNamedItem </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>name</em></td>
|
|
<td> ) </td>
|
|
<td> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Retrieves a node specified by name. </p>
|
|
<dl><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 <code>nodeName</code> of a node to retrieve. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>A <code><a class="el" href="classxercesc_1_1DOMNode.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="since"><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a1c5b2c32234daa32c7bc2049b80d567a"></a><!-- doxytag: member="xercesc::DOMNamedNodeMap::getNamedItemNS" ref="a1c5b2c32234daa32c7bc2049b80d567a" 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_1DOMNode.html">DOMNode</a>* xercesc::DOMNamedNodeMap::getNamedItemNS </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> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Retrieves a node specified by local name and namespace URI. </p>
|
|
<dl><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 node to retrieve. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>localName</em> </td><td>The <em>local name</em> of the node to retrieve. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>A <code><a class="el" href="classxercesc_1_1DOMNode.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="since"><dt><b>Since:</b></dt><dd>DOM Level 2 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a4ef53e72c2fa91366ac2db178d9cb8fb"></a><!-- doxytag: member="xercesc::DOMNamedNodeMap::item" ref="a4ef53e72c2fa91366ac2db178d9cb8fb" args="(XMLSize_t index) const =0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a>* xercesc::DOMNamedNodeMap::item </td>
|
|
<td>(</td>
|
|
<td class="paramtype">XMLSize_t </td>
|
|
<td class="paramname"> <em>index</em></td>
|
|
<td> ) </td>
|
|
<td> const<code> [pure virtual]</code></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><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>index</em> </td><td>Index into the map. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>The node at the <code>index</code>th position in the <code><a class="el" href="classxercesc_1_1DOMNamedNodeMap.html" title="DOMNamedNodeMaps are used to represent collections of nodes that can be accessed...">DOMNamedNodeMap</a></code>, or <code>null</code> if that is not a valid index. </dd></dl>
|
|
<dl class="since"><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a61daea55f82f379af62c90abd973bf1b"></a><!-- doxytag: member="xercesc::DOMNamedNodeMap::removeNamedItem" ref="a61daea55f82f379af62c90abd973bf1b" args="(const XMLCh *name)=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a>* xercesc::DOMNamedNodeMap::removeNamedItem </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const XMLCh * </td>
|
|
<td class="paramname"> <em>name</em></td>
|
|
<td> ) </td>
|
|
<td><code> [pure virtual]</code></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="classxercesc_1_1DOMAttr.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><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 <code>nodeName</code> of a node to remove. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>The node removed from the map if a node with such a name exists. </dd></dl>
|
|
<dl><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>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="classxercesc_1_1DOMNamedNodeMap.html" title="DOMNamedNodeMaps are used to represent collections of nodes that can be accessed...">DOMNamedNodeMap</a></code> is readonly. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="since"><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a908b939cd8cf54d649c478ed6720db73"></a><!-- doxytag: member="xercesc::DOMNamedNodeMap::removeNamedItemNS" ref="a908b939cd8cf54d649c478ed6720db73" args="(const XMLCh *namespaceURI, const XMLCh *localName)=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a>* xercesc::DOMNamedNodeMap::removeNamedItemNS </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><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Removes a node specified by local name and namespace URI. </p>
|
|
<dl><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 node to remove. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>localName</em> </td><td>The <em>local name</em> of the node to remove. When this <code><a class="el" href="classxercesc_1_1DOMNamedNodeMap.html" title="DOMNamedNodeMaps are used to represent collections of nodes that can be accessed...">DOMNamedNodeMap</a></code> contains the attributes attached to an element, as returned by the attributes attribute of the <code><a class="el" href="classxercesc_1_1DOMNode.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="return"><dt><b>Returns:</b></dt><dd>The node removed from the map if a node with such a local name and namespace URI exists. </dd></dl>
|
|
<dl><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>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="classxercesc_1_1DOMNamedNodeMap.html" title="DOMNamedNodeMaps are used to represent collections of nodes that can be accessed...">DOMNamedNodeMap</a></code> is readonly. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="since"><dt><b>Since:</b></dt><dd>DOM Level 2 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ab0460a9ab57ae2a669d18a720f18c40d"></a><!-- doxytag: member="xercesc::DOMNamedNodeMap::setNamedItem" ref="ab0460a9ab57ae2a669d18a720f18c40d" args="(DOMNode *arg)=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a>* xercesc::DOMNamedNodeMap::setNamedItem </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> * </td>
|
|
<td class="paramname"> <em>arg</em></td>
|
|
<td> ) </td>
|
|
<td><code> [pure virtual]</code></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><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>arg</em> </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="return"><dt><b>Returns:</b></dt><dd>If the new <code><a class="el" href="classxercesc_1_1DOMNode.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="classxercesc_1_1DOMNode.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><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>arg</code> was created from a different document than the one that created the <code><a class="el" href="classxercesc_1_1DOMNamedNodeMap.html" title="DOMNamedNodeMaps are used to represent collections of nodes that can be accessed...">DOMNamedNodeMap</a></code>. <br/>
|
|
NO_MODIFICATION_ALLOWED_ERR: Raised if this <code><a class="el" href="classxercesc_1_1DOMNamedNodeMap.html" title="DOMNamedNodeMaps are used to represent collections of nodes that can be accessed...">DOMNamedNodeMap</a></code> is readonly. <br/>
|
|
INUSE_ATTRIBUTE_ERR: Raised if <code>arg</code> is an <code><a class="el" href="classxercesc_1_1DOMAttr.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="classxercesc_1_1DOMElement.html" title="By far the vast majority of objects (apart from text) that authors encounter when...">DOMElement</a></code> object. The DOM user must explicitly clone <code><a class="el" href="classxercesc_1_1DOMAttr.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="since"><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a659e7833aba836cc3f24c6b93e653b0c"></a><!-- doxytag: member="xercesc::DOMNamedNodeMap::setNamedItemNS" ref="a659e7833aba836cc3f24c6b93e653b0c" args="(DOMNode *arg)=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a>* xercesc::DOMNamedNodeMap::setNamedItemNS </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> * </td>
|
|
<td class="paramname"> <em>arg</em></td>
|
|
<td> ) </td>
|
|
<td><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Adds a node using its <code>namespaceURI</code> and <code>localName</code>. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>arg</em> </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="return"><dt><b>Returns:</b></dt><dd>If the new <code><a class="el" href="classxercesc_1_1DOMNode.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="classxercesc_1_1DOMNode.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><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>arg</code> was created from a different document than the one that created the <code><a class="el" href="classxercesc_1_1DOMNamedNodeMap.html" title="DOMNamedNodeMaps are used to represent collections of nodes that can be accessed...">DOMNamedNodeMap</a></code>. <br/>
|
|
NO_MODIFICATION_ALLOWED_ERR: Raised if this <code><a class="el" href="classxercesc_1_1DOMNamedNodeMap.html" title="DOMNamedNodeMaps are used to represent collections of nodes that can be accessed...">DOMNamedNodeMap</a></code> is readonly. <br/>
|
|
INUSE_ATTRIBUTE_ERR: Raised if <code>arg</code> is an <code><a class="el" href="classxercesc_1_1DOMAttr.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="classxercesc_1_1DOMElement.html" title="By far the vast majority of objects (apart from text) that authors encounter when...">DOMElement</a></code> object. The DOM user must explicitly clone <code><a class="el" href="classxercesc_1_1DOMAttr.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="since"><dt><b>Since:</b></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>
|
|
<hr size="1"/><address style="text-align: right;"><small>Generated on Fri Nov 13 15:00:21 2009 for XQilla DOM Level 3 API by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
|
|
</body>
|
|
</html>
|