blob: adce7c5cea07ab64bfb0f10cdb54acde459c06d5 [file] [log] [blame]
<HTML><HEAD><TITLE>Xalan-C++ API Documentation</TITLE></HEAD>
<BODY>
<h2 align="center">Xalan-C++ API Documentation</h2>
<h3 align="center">The Xalan C++ XSLT Processor Version 1.10</h3>
</BODY>
<!-- Generated by Doxygen 1.2.8.1 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
<hr><h1>XalanNamedNodeMap Class Reference</h1><code>#include &lt;<a class="el" href="XalanNamedNodeMap_8hpp-source.html">XalanNamedNodeMap.hpp</a>&gt;</code>
<p>
Inheritance diagram for XalanNamedNodeMap:<p><center><img src="classXalanNamedNodeMap__inherit__graph.gif" border="0" usemap="#XalanNamedNodeMap_inherit_map" alt="Inheritance graph"></center>
<map name="XalanNamedNodeMap_inherit_map">
<area href="classXalanEmptyNamedNodeMap.html" shape="rect" coords="6,117,190,93">
<area href="classXalanSourceTreeElementA.html" shape="rect" coords="214,117,390,93">
<area href="classXercesNamedNodeMapBridge.html" shape="rect" coords="414,117,609,93">
<area href="classXercesNamedNodeMapWrapper.html" shape="rect" coords="633,117,841,93">
<area href="classXalanSourceTreeElementANS.html" shape="rect" coords="205,192,400,168">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classXalanNamedNodeMap-members.html">List of all members.</a><h2>Public Methods</h2>
<ul>
<li><a class="el" href="classXalanNamedNodeMap.html#a0">XalanNamedNodeMap</a> ()
<li>virtual <a class="el" href="classXalanNamedNodeMap.html#a1">~XalanNamedNodeMap</a> ()
</ul>
<tr><td colspan="2"><div class="groupHeader">Set functions.</div></td></tr>
<ul>
<li>virtual <a class="el" href="classXalanNode.html">XalanNode</a>* <a class="el" href="classXalanNamedNodeMap.html#a2">setNamedItem</a> (<a class="el" href="classXalanNode.html">XalanNode</a> *arg)=0
<dl class="el"><dd><font size=-1><em>Adds a node using its <code>nodeName</code> attribute.</em> <a href="#a2">More...</a><em><br><br></em></font></dl><li>virtual <a class="el" href="classXalanNode.html">XalanNode</a>* <a class="el" href="classXalanNamedNodeMap.html#a3">item</a> (unsigned int index) const=0
<dl class="el"><dd><font size=-1><em>Returns the <code>index</code>th item in the map.</em> <a href="#a3">More...</a><em><br><br></em></font></dl></ul>
<tr><td colspan="2"><div class="groupHeader">Get functions.</div></td></tr>
<ul>
<li>virtual <a class="el" href="classXalanNode.html">XalanNode</a>* <a class="el" href="classXalanNamedNodeMap.html#a4">getNamedItem</a> (const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> &amp;name) const=0
<dl class="el"><dd><font size=-1><em>Retrieves a node specified by name.</em> <a href="#a4">More...</a><em><br><br></em></font></dl><li>virtual unsigned int <a class="el" href="classXalanNamedNodeMap.html#a5">getLength</a> () const=0
<dl class="el"><dd><font size=-1><em>The number of nodes in the map.</em> <a href="#a5">More...</a><em><br><br></em></font></dl></ul>
<tr><td colspan="2"><div class="groupHeader">Functions to change the node collection.</div></td></tr>
<ul>
<li>virtual <a class="el" href="classXalanNode.html">XalanNode</a>* <a class="el" href="classXalanNamedNodeMap.html#a6">removeNamedItem</a> (const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> &amp;name)=0
<dl class="el"><dd><font size=-1><em>Removes a node specified by name.</em> <a href="#a6">More...</a><em><br><br></em></font></dl></ul>
<tr><td colspan="2"><div class="groupHeader">Functions introduced in DOM Level 2.</div></td></tr>
<ul>
<li>virtual <a class="el" href="classXalanNode.html">XalanNode</a>* <a class="el" href="classXalanNamedNodeMap.html#a7">getNamedItemNS</a> (const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> &amp;namespaceURI, const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> &amp;localName) const=0
<dl class="el"><dd><font size=-1><em>Retrieves a node specified by local name and namespace URI.</em> <a href="#a7">More...</a><em><br><br></em></font></dl><li>virtual <a class="el" href="classXalanNode.html">XalanNode</a>* <a class="el" href="classXalanNamedNodeMap.html#a8">setNamedItemNS</a> (<a class="el" href="classXalanNode.html">XalanNode</a> *arg)=0
<dl class="el"><dd><font size=-1><em>Adds a node using its <code>namespaceURI</code> and <code>localName</code>.</em> <a href="#a8">More...</a><em><br><br></em></font></dl><li>virtual <a class="el" href="classXalanNode.html">XalanNode</a>* <a class="el" href="classXalanNamedNodeMap.html#a9">removeNamedItemNS</a> (const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> &amp;namespaceURI, const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> &amp;localName)=0
<dl class="el"><dd><font size=-1><em>Removes a node specified by local name and namespace URI.</em> <a href="#a9">More...</a><em><br><br></em></font></dl></ul>
<h2>Protected Methods</h2>
<ul>
<li><a class="el" href="classXalanNamedNodeMap.html#b0">XalanNamedNodeMap</a> (const XalanNamedNodeMap &amp;theSource)
<li>XalanNamedNodeMap&amp; <a class="el" href="classXalanNamedNodeMap.html#b1">operator=</a> (const XalanNamedNodeMap &amp;theSource)
<li>bool <a class="el" href="classXalanNamedNodeMap.html#b2">operator==</a> (const XalanNamedNodeMap &amp;theRHS) const
</ul>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a name="a0" doxytag="XalanNamedNodeMap::XalanNamedNodeMap"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
XalanNamedNodeMap::XalanNamedNodeMap (
</b></td>
<td valign="bottom"><b>
)
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
</td>
</tr>
</table>
<a name="a1" doxytag="XalanNamedNodeMap::~XalanNamedNodeMap"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
XalanNamedNodeMap::~XalanNamedNodeMap (
</b></td>
<td valign="bottom"><b>
)<code> [virtual]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
</td>
</tr>
</table>
<a name="b0" doxytag="XalanNamedNodeMap::XalanNamedNodeMap"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
XalanNamedNodeMap::XalanNamedNodeMap (
</b></td>
<td valign="bottom"><b>
const XalanNamedNodeMap &amp; <em>theSource</em>&nbsp;)<code> [protected]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
</td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="a5" doxytag="XalanNamedNodeMap::getLength"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
unsigned int XalanNamedNodeMap::getLength (
</b></td>
<td valign="bottom"><b>
) const<code> [pure virtual]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</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.
<p>
Reimplemented in <a class="el" href="classXalanEmptyNamedNodeMap.html#a8">XalanEmptyNamedNodeMap</a>, <a class="el" href="classXercesNamedNodeMapWrapper.html#a5">XercesNamedNodeMapWrapper</a>, and <a class="el" href="classXercesNamedNodeMapBridge.html#a5">XercesNamedNodeMapBridge</a>. </td>
</tr>
</table>
<a name="a4" doxytag="XalanNamedNodeMap::getNamedItem"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
<a class="el" href="classXalanNode.html">XalanNode</a> * XalanNamedNodeMap::getNamedItem (
</b></td>
<td valign="bottom"><b>
const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> &amp; <em>name</em>&nbsp;) const<code> [pure virtual]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Retrieves a node specified by name.
<p>
<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>name</em>
&nbsp;</td><td>
The <code>nodeName</code> of a node to retrieve. </td></tr>
</table>
</dl><dl compact><dt>
<b>Returns: </b><dd>
A <code>Node</code> (of any type) with the specified <code>nodeName</code>, or <code>null</code> if it does not identify any node in the map. </dl>
<p>
Reimplemented in <a class="el" href="classXalanEmptyNamedNodeMap.html#a7">XalanEmptyNamedNodeMap</a>, <a class="el" href="classXercesNamedNodeMapWrapper.html#a4">XercesNamedNodeMapWrapper</a>, and <a class="el" href="classXercesNamedNodeMapBridge.html#a4">XercesNamedNodeMapBridge</a>. </td>
</tr>
</table>
<a name="a7" doxytag="XalanNamedNodeMap::getNamedItemNS"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
<a class="el" href="classXalanNode.html">XalanNode</a> * XalanNamedNodeMap::getNamedItemNS (
</b></td>
<td valign="bottom"><b>
const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> &amp; <em>namespaceURI</em>,
</b></td>
</tr>
<tr>
<td></td>
<td><b>
const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> &amp; <em>localName</em>&nbsp;) const<code> [pure virtual]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Retrieves a node specified by local name and namespace URI.
<p>
<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>namespaceURI</em>
&nbsp;</td><td>
The <em>namespace URI</em> of the node to retrieve. </td></tr>
<tr><td valign=top><em>localName</em>
&nbsp;</td><td>
The <em>local name</em> of the node to retrieve. </td></tr>
</table>
</dl><dl compact><dt>
<b>Returns: </b><dd>
A <code>Node</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. </dl>
<p>
Reimplemented in <a class="el" href="classXalanEmptyNamedNodeMap.html#a10">XalanEmptyNamedNodeMap</a>, <a class="el" href="classXercesNamedNodeMapWrapper.html#a7">XercesNamedNodeMapWrapper</a>, and <a class="el" href="classXercesNamedNodeMapBridge.html#a7">XercesNamedNodeMapBridge</a>. </td>
</tr>
</table>
<a name="a3" doxytag="XalanNamedNodeMap::item"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
<a class="el" href="classXalanNode.html">XalanNode</a> * XalanNamedNodeMap::item (
</b></td>
<td valign="bottom"><b>
unsigned int <em>index</em>&nbsp;) const<code> [pure virtual]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</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><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>index</em>
&nbsp;</td><td>
Index into the map. </td></tr>
</table>
</dl><dl compact><dt>
<b>Returns: </b><dd>
The node at the <code>index</code>th position in the <code>NamedNodeMap</code>, or <code>null</code> if that is not a valid index. </dl>
<p>
Reimplemented in <a class="el" href="classXalanEmptyNamedNodeMap.html#a6">XalanEmptyNamedNodeMap</a>, <a class="el" href="classXercesNamedNodeMapWrapper.html#a3">XercesNamedNodeMapWrapper</a>, and <a class="el" href="classXercesNamedNodeMapBridge.html#a3">XercesNamedNodeMapBridge</a>. </td>
</tr>
</table>
<a name="b1" doxytag="XalanNamedNodeMap::operator="></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
XalanNamedNodeMap &amp; XalanNamedNodeMap::operator= (
</b></td>
<td valign="bottom"><b>
const XalanNamedNodeMap &amp; <em>theSource</em>&nbsp;)<code> [protected]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
</td>
</tr>
</table>
<a name="b2" doxytag="XalanNamedNodeMap::operator=="></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
bool XalanNamedNodeMap::operator== (
</b></td>
<td valign="bottom"><b>
const XalanNamedNodeMap &amp; <em>theRHS</em>&nbsp;) const<code> [protected]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
</td>
</tr>
</table>
<a name="a6" doxytag="XalanNamedNodeMap::removeNamedItem"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
<a class="el" href="classXalanNode.html">XalanNode</a> * XalanNamedNodeMap::removeNamedItem (
</b></td>
<td valign="bottom"><b>
const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> &amp; <em>name</em>&nbsp;)<code> [pure virtual]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Removes a node specified by name.
<p>
If the removed node is an <code>Attr</code> with a default value it is immediately replaced. <dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>name</em>
&nbsp;</td><td>
The <code>nodeName</code> of a node to remove. </td></tr>
</table>
</dl><dl compact><dt>
<b>Returns: </b><dd>
The node removed from the map or <code>null</code> if no node with such a name exists. </dl><dl compact><dt>
<b>Exceptions: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>DOMException</em>
&nbsp;</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>NamedNodeMap</code> is readonly. </td></tr>
</table>
</dl>
<p>
Reimplemented in <a class="el" href="classXalanEmptyNamedNodeMap.html#a9">XalanEmptyNamedNodeMap</a>, <a class="el" href="classXercesNamedNodeMapWrapper.html#a6">XercesNamedNodeMapWrapper</a>, and <a class="el" href="classXercesNamedNodeMapBridge.html#a6">XercesNamedNodeMapBridge</a>. </td>
</tr>
</table>
<a name="a9" doxytag="XalanNamedNodeMap::removeNamedItemNS"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
<a class="el" href="classXalanNode.html">XalanNode</a> * XalanNamedNodeMap::removeNamedItemNS (
</b></td>
<td valign="bottom"><b>
const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> &amp; <em>namespaceURI</em>,
</b></td>
</tr>
<tr>
<td></td>
<td><b>
const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> &amp; <em>localName</em>&nbsp;)<code> [pure virtual]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Removes a node specified by local name and namespace URI.
<p>
<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>namespaceURI</em>
&nbsp;</td><td>
The <em>namespace URI</em> of the node to remove. </td></tr>
<tr><td valign=top><em>localName</em>
&nbsp;</td><td>
The <em>local name</em> of the node to remove. When this <code>NamedNodeMap</code> contains the attributes attached to an element, as returned by the attributes attribute of the <code>Node</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><dd>
The node removed from the map if a node with such a local name and namespace URI exists. </dl><dl compact><dt>
<b>Exceptions: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>DOMException</em>
&nbsp;</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>NamedNodeMap</code> is readonly. </td></tr>
</table>
</dl>
<p>
Reimplemented in <a class="el" href="classXalanEmptyNamedNodeMap.html#a12">XalanEmptyNamedNodeMap</a>, <a class="el" href="classXercesNamedNodeMapWrapper.html#a9">XercesNamedNodeMapWrapper</a>, and <a class="el" href="classXercesNamedNodeMapBridge.html#a9">XercesNamedNodeMapBridge</a>. </td>
</tr>
</table>
<a name="a2" doxytag="XalanNamedNodeMap::setNamedItem"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
<a class="el" href="classXalanNode.html">XalanNode</a> * XalanNamedNodeMap::setNamedItem (
</b></td>
<td valign="bottom"><b>
<a class="el" href="classXalanNode.html">XalanNode</a> * <em>arg</em>&nbsp;)<code> [pure virtual]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</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><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>arg</em>
&nbsp;</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><dd>
If the new <code>Node</code> replaces an existing node the replaced <code>Node</code> is returned, otherwise <code>null</code> is returned. </dl><dl compact><dt>
<b>Exceptions: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>DOMException</em>
&nbsp;</td><td>
WRONG_DOCUMENT_ERR: Raised if <code>arg</code> was created from a different document than the one that created the <code>NamedNodeMap</code>. <br>
NO_MODIFICATION_ALLOWED_ERR: Raised if this <code>NamedNodeMap</code> is readonly. <br>
INUSE_ATTRIBUTE_ERR: Raised if <code>arg</code> is an <code>Attr</code> that is already an attribute of another <code>Element</code> object. The DOM user must explicitly clone <code>Attr</code> nodes to re-use them in other elements. </td></tr>
</table>
</dl>
<p>
Reimplemented in <a class="el" href="classXalanEmptyNamedNodeMap.html#a5">XalanEmptyNamedNodeMap</a>, <a class="el" href="classXercesNamedNodeMapWrapper.html#a2">XercesNamedNodeMapWrapper</a>, and <a class="el" href="classXercesNamedNodeMapBridge.html#a2">XercesNamedNodeMapBridge</a>. </td>
</tr>
</table>
<a name="a8" doxytag="XalanNamedNodeMap::setNamedItemNS"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
<a class="el" href="classXalanNode.html">XalanNode</a> * XalanNamedNodeMap::setNamedItemNS (
</b></td>
<td valign="bottom"><b>
<a class="el" href="classXalanNode.html">XalanNode</a> * <em>arg</em>&nbsp;)<code> [pure virtual]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Adds a node using its <code>namespaceURI</code> and <code>localName</code>.
<p>
<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>arg</em>
&nbsp;</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><dd>
If the new <code>Node</code> replaces an existing node the replaced <code>Node</code> is returned, otherwise <code>null</code> is returned. </dl><dl compact><dt>
<b>Exceptions: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>DOMException</em>
&nbsp;</td><td>
WRONG_DOCUMENT_ERR: Raised if <code>arg</code> was created from a different document than the one that created the <code>NamedNodeMap</code>. <br>
NO_MODIFICATION_ALLOWED_ERR: Raised if this <code>NamedNodeMap</code> is readonly. <br>
INUSE_ATTRIBUTE_ERR: Raised if <code>arg</code> is an <code>Attr</code> that is already an attribute of another <code>Element</code> object. The DOM user must explicitly clone <code>Attr</code> nodes to re-use them in other elements. </td></tr>
</table>
</dl>
<p>
Reimplemented in <a class="el" href="classXalanEmptyNamedNodeMap.html#a11">XalanEmptyNamedNodeMap</a>, <a class="el" href="classXercesNamedNodeMapWrapper.html#a8">XercesNamedNodeMapWrapper</a>, and <a class="el" href="classXercesNamedNodeMapBridge.html#a8">XercesNamedNodeMapBridge</a>. </td>
</tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="XalanNamedNodeMap_8hpp-source.html">XalanNamedNodeMap.hpp</a></ul>
<p align="center"><a href="diagramnotes.html">Interpreting class diagrams</a></p>
<p><FONT color="#000000" face="arial,helvetica,sanserif" size="-1">
<i><A href="http://www.stack.nl/~dimitri/doxygen/">Doxygen</A> and
<A href="http://www.research.att.com/sw/tools/graphviz/">GraphViz</A> are used to generate this API documentation from the Xalan-C header files.</I></FONT></p>
<TABLE border="0" cellpadding="0" cellspacing="0" width="820"><TR><TD bgcolor="#0086b2"><IMG height="1" src="../resources/dot.gif" width="1" alt="dot"></TD></TR></TABLE>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="80%">
<TR>
<TD WIDTH="80%" VALIGN="TOP">
<P ALIGN="CENTER"><B>Xalan-C++ XSLT Processor Version 1.10</B><BR>
Copyright &copy; 1999-2004 The Apache Software Foundation. All Rights Reserved.</i></p>
</TD>
</TR>
<TR>
<TD WIDTH="100%">
<P ALIGN="CENTER"><IMG SRC="ApacheLogo.jpg" WIDTH="387" HEIGHT="100" ALIGN="BOTTOM" BORDER="0" ALT="Apache Logo">
</TD>
</TR>
</TABLE>