460 lines
26 KiB
HTML
460 lines
26 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.3.9.1 -->
|
|
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="examples.html">Examples</a></div>
|
|
<h1>xercesc::DOMNamedNodeMap Class Reference</h1><code><a class="el" href="classxercesc_1_1DOMNamedNodeMap.html">DOMNamedNodeMap</a></code>s are used to represent collections of nodes that can be accessed by name.
|
|
<a href="#_details">More...</a>
|
|
<p>
|
|
<code>#include <<a class="el" href="DOMNamedNodeMap_8hpp-source.html">DOMNamedNodeMap.hpp</a>></code>
|
|
<p>
|
|
<a href="classxercesc_1_1DOMNamedNodeMap-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">Destructor</div></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMNamedNodeMap.html#z326_0">~DOMNamedNodeMap</a> ()</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#z326_0"></a><br></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 <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMNamedNodeMap.html#z328_0">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="#z328_0"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap 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#z328_1">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="#z328_1"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap 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#z328_2">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="#z328_2"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual XMLSize_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMNamedNodeMap.html#z328_3">getLength</a> () const =0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">The number of nodes in the map. <a href="#z328_3"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap 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#z328_4">removeNamedItem</a> (const XMLCh *name)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Removes a node specified by name. <a href="#z328_4"></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 <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMNamedNodeMap.html#z330_0">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="#z330_0"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap 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#z330_1">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="#z330_1"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap 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#z330_2">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="#z330_2"></a><br></td></tr>
|
|
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader">Hidden constructors</div></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxercesc_1_1DOMNamedNodeMap.html#z322_0">DOMNamedNodeMap</a> ()</td></tr>
|
|
|
|
</table>
|
|
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
|
<code><a class="el" href="classxercesc_1_1DOMNamedNodeMap.html">DOMNamedNodeMap</a></code>s are used to represent collections of nodes that can be accessed by name.
|
|
<p>
|
|
Note that <code><a class="el" href="classxercesc_1_1DOMNamedNodeMap.html">DOMNamedNodeMap</a></code> does not inherit from <code><a class="el" href="classxercesc_1_1DOMNodeList.html">DOMNodeList</a></code>; <code><a class="el" href="classxercesc_1_1DOMNamedNodeMap.html">DOMNamedNodeMap</a></code>s are not maintained in any particular order. Nodes contained in a <code><a class="el" href="classxercesc_1_1DOMNamedNodeMap.html">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 compact><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
|
|
|
|
<p>
|
|
<hr><h2>Constructor & Destructor Documentation</h2>
|
|
<a class="anchor" name="z322_0" doxytag="xercesc::DOMNamedNodeMap::DOMNamedNodeMap"></a><p>
|
|
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">xercesc::DOMNamedNodeMap::DOMNamedNodeMap </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="z326_0" doxytag="xercesc::DOMNamedNodeMap::~DOMNamedNodeMap"></a><p>
|
|
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual xercesc::DOMNamedNodeMap::~<a class="el" href="classxercesc_1_1DOMNamedNodeMap.html">DOMNamedNodeMap</a> </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [inline, virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Destructor.
|
|
<p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<hr><h2>Member Function Documentation</h2>
|
|
<a class="anchor" name="z328_3" doxytag="xercesc::DOMNamedNodeMap::getLength"></a><p>
|
|
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual XMLSize_t xercesc::DOMNamedNodeMap::getLength </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="mdname1" valign="top" nowrap> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
The number of nodes in the map.
|
|
<p>
|
|
The range of valid child node indices is 0 to <code>length-1</code> inclusive. <dl compact><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="z328_2" doxytag="xercesc::DOMNamedNodeMap::getNamedItem"></a><p>
|
|
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a>* xercesc::DOMNamedNodeMap::getNamedItem </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">const XMLCh * </td>
|
|
<td class="mdname1" valign="top" nowrap> <em>name</em> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Retrieves a node specified 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 <code>nodeName</code> of a node to retrieve. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>A <code><a class="el" href="classxercesc_1_1DOMNode.html">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 compact><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="z330_0" doxytag="xercesc::DOMNamedNodeMap::getNamedItemNS"></a><p>
|
|
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a>* xercesc::DOMNamedNodeMap::getNamedItemNS </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">const XMLCh * </td>
|
|
<td class="mdname" nowrap> <em>namespaceURI</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md" nowrap align="right"></td>
|
|
<td class="md"></td>
|
|
<td class="md" nowrap>const XMLCh * </td>
|
|
<td class="mdname" nowrap> <em>localName</em></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md"></td>
|
|
<td class="md">) </td>
|
|
<td class="md" colspan="2"> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Retrieves a node specified 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 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>
|
|
</dl>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>A <code><a class="el" href="classxercesc_1_1DOMNode.html">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 compact><dt><b>Since:</b></dt><dd>DOM Level 2 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="z328_1" doxytag="xercesc::DOMNamedNodeMap::item"></a><p>
|
|
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a>* xercesc::DOMNamedNodeMap::item </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">XMLSize_t </td>
|
|
<td class="mdname1" valign="top" nowrap> <em>index</em> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap> const<code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Returns the <code>index</code>th item in the map.
|
|
<p>
|
|
If <code>index</code> is greater than or equal to the number of nodes in the map, this returns <code>null</code>. <dl compact><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>
|
|
</dl>
|
|
<dl compact><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">DOMNamedNodeMap</a></code>, or <code>null</code> if that is not a valid index. </dd></dl>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="z328_4" doxytag="xercesc::DOMNamedNodeMap::removeNamedItem"></a><p>
|
|
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a>* xercesc::DOMNamedNodeMap::removeNamedItem </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">const XMLCh * </td>
|
|
<td class="mdname1" valign="top" nowrap> <em>name</em> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Removes a node specified by name.
|
|
<p>
|
|
If the removed node is an <code><a class="el" href="classxercesc_1_1DOMAttr.html">DOMAttr</a></code> with a default value it is immediately replaced. <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 <code>nodeName</code> of a node to remove. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>The node removed from the map if a node with such a name exists. </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>DOMException</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">DOMNamedNodeMap</a></code> is readonly. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="z330_2" doxytag="xercesc::DOMNamedNodeMap::removeNamedItemNS"></a><p>
|
|
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a>* xercesc::DOMNamedNodeMap::removeNamedItemNS </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top">const XMLCh * </td>
|
|
<td class="mdname" nowrap> <em>namespaceURI</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md" nowrap align="right"></td>
|
|
<td class="md"></td>
|
|
<td class="md" nowrap>const XMLCh * </td>
|
|
<td class="mdname" nowrap> <em>localName</em></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="md"></td>
|
|
<td class="md">) </td>
|
|
<td class="md" colspan="2"><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Removes a node specified 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 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">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">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>
|
|
</dl>
|
|
<dl compact><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 compact><dt><b>Exceptions:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>DOMException</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">DOMNamedNodeMap</a></code> is readonly. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Since:</b></dt><dd>DOM Level 2 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="z328_0" doxytag="xercesc::DOMNamedNodeMap::setNamedItem"></a><p>
|
|
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a>* xercesc::DOMNamedNodeMap::setNamedItem </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top"><a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> * </td>
|
|
<td class="mdname1" valign="top" nowrap> <em>arg</em> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Adds a node using its <code>nodeName</code> attribute.
|
|
<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. <dl compact><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>
|
|
</dl>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>If the new <code><a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a></code> replaces an existing node the replaced <code><a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a></code> 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>DOMException</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">DOMNamedNodeMap</a></code>. <br>
|
|
NO_MODIFICATION_ALLOWED_ERR: Raised if this <code><a class="el" href="classxercesc_1_1DOMNamedNodeMap.html">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">DOMAttr</a></code> that 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 compact><dt><b>Since:</b></dt><dd>DOM Level 1 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<a class="anchor" name="z330_1" doxytag="xercesc::DOMNamedNodeMap::setNamedItemNS"></a><p>
|
|
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td class="mdRow">
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td class="md" nowrap valign="top">virtual <a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a>* xercesc::DOMNamedNodeMap::setNamedItemNS </td>
|
|
<td class="md" valign="top">( </td>
|
|
<td class="md" nowrap valign="top"><a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a> * </td>
|
|
<td class="mdname1" valign="top" nowrap> <em>arg</em> </td>
|
|
<td class="md" valign="top"> ) </td>
|
|
<td class="md" nowrap><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing="5" cellpadding="0" border="0">
|
|
<tr>
|
|
<td>
|
|
|
|
</td>
|
|
<td>
|
|
|
|
<p>
|
|
Adds a node using its <code>namespaceURI</code> and <code>localName</code>.
|
|
<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>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>
|
|
</dl>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>If the new <code><a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a></code> replaces an existing node the replaced <code><a class="el" href="classxercesc_1_1DOMNode.html">DOMNode</a></code> 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>DOMException</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">DOMNamedNodeMap</a></code>. <br>
|
|
NO_MODIFICATION_ALLOWED_ERR: Raised if this <code><a class="el" href="classxercesc_1_1DOMNamedNodeMap.html">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">DOMAttr</a></code> that 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 compact><dt><b>Since:</b></dt><dd>DOM Level 2 </dd></dl>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<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></ul>
|
|
<hr size="1"><address style="align: right;"><small>Generated on Fri Sep 25 06:55:55 2009 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.3.9.1 </small></address>
|
|
</body>
|
|
</html>
|