blob: 500d1784eb90d172ed64276f3dafeb92cd2739be [file] [log] [blame]
<HTML><HEAD><SCRIPT language="JavaScript" src="../resources/script.js" type="text/javascript"></SCRIPT><TITLE>Xerces-C++: DOMNode.hpp Source File</TITLE><link href="XercesApi.css" rel="stylesheet" type="text/css"></HEAD><BODY alink="#ff0000" bgcolor="#ffffff" leftmargin="4" link="#0000ff" marginheight="4" marginwidth="4" text="#000000" topmargin="4" vlink="#0000aa"><TABLE border="0" cellpadding="0" cellspacing="0" width="620"><TR><TD align="left" height="60" rowspan="3" valign="top" width="135"><IMG border="0" height="60" hspace="0" src="../resources/logo.gif" vspace="0" width="135"></TD><TD align="left" colspan="4" height="5" valign="top" width="456"><IMG border="0" height="5" hspace="0" src="../resources/line.gif" vspace="0" width="456"></TD><TD align="left" height="60" rowspan="3" valign="top" width="29"><IMG border="0" height="60" hspace="0" src="../resources/right.gif" vspace="0" width="29"></TD></TR><TR><TD align="left" bgcolor="#0086b2" colspan="4" height="35" valign="top" width="456"><IMG alt="" border="0" height="35" hspace="0" src="../graphics/api-header.jpg" vspace="0" width="456"></TD></TR><TR><TD align="left" height="20" valign="top" width="168"><IMG border="0" height="20" hspace="0" src="../resources/bottom.gif" vspace="0" width="168"></TD><TD align="left" height="20" valign="top" width="96"><A href="http://xml.apache.org/" onMouseOut="rolloverOff('xml');" onMouseOver="rolloverOn('xml');" target="new"><IMG alt="http://xml.apache.org/" border="0" height="20" hspace="0" name="xml" onLoad="rolloverLoad('xml','../resources/button-xml-hi.gif','../resources/button-xml-lo.gif');" src="../resources/button-xml-lo.gif" vspace="0" width="96"></A></TD><TD align="left" height="20" valign="top" width="96"><A href="http://www.apache.org/" onMouseOut="rolloverOff('asf');" onMouseOver="rolloverOn('asf');" target="new"><IMG alt="http://www.apache.org/" border="0" height="20" hspace="0" name="asf" onLoad="rolloverLoad('asf','../resources/button-asf-hi.gif','../resources/button-asf-lo.gif');" src="../resources/button-asf-lo.gif" vspace="0" width="96"></A></TD><TD align="left" height="20" valign="top" width="96"><A href="http://www.w3.org/" onMouseOut="rolloverOff('w3c');" onMouseOver="rolloverOn('w3c');" target="new"><IMG alt="http://www.w3.org/" border="0" height="20" hspace="0" name="w3c" onLoad="rolloverLoad('w3c','../resources/button-w3c-hi.gif','../resources/button-w3c-lo.gif');" src="../resources/button-w3c-lo.gif" vspace="0" width="96"></A></TD></TR></TABLE><TABLE border="0" cellpadding="0" cellspacing="0" width="620"><TR><TD align="left" valign="top" width="120"><IMG border="0" height="14" hspace="0" src="../resources/join.gif" vspace="0" width="120"><BR>
<A href="../../index.html" onMouseOut="rolloverOff('side-ext-2');" onMouseOver="rolloverOn('side-ext-2');"><IMG alt="Home" border="0" height="12" hspace="0" name="side-ext-2" onLoad="rolloverLoad('side-ext-2','../graphics/ext-2-label-2.jpg','../graphics/ext-2-label-3.jpg');" src="../graphics/ext-2-label-3.jpg" vspace="0" width="120"></A><BR>
<IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
<A href="../index.html" onMouseOut="rolloverOff('side-index');" onMouseOver="rolloverOn('side-index');"><IMG alt="Readme" border="0" height="12" hspace="0" name="side-index" onLoad="rolloverLoad('side-index','../graphics/index-label-2.jpg','../graphics/index-label-3.jpg');" src="../graphics/index-label-3.jpg" vspace="0" width="120"></A><BR>
<A href="../charter.html" onMouseOut="rolloverOff('side-charter');" onMouseOver="rolloverOn('side-charter');"><IMG alt="Charter" border="0" height="12" hspace="0" name="side-charter" onLoad="rolloverLoad('side-charter','../graphics/charter-label-2.jpg','../graphics/charter-label-3.jpg');" src="../graphics/charter-label-3.jpg" vspace="0" width="120"></A><BR>
<A href="../releases.html" onMouseOut="rolloverOff('side-releases');" onMouseOver="rolloverOn('side-releases');"><IMG alt="Release Info" border="0" height="12" hspace="0" name="side-releases" onLoad="rolloverLoad('side-releases','../graphics/releases-label-2.jpg','../graphics/releases-label-3.jpg');" src="../graphics/releases-label-3.jpg" vspace="0" width="120"></A><BR>
<IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
<A href="../install.html" onMouseOut="rolloverOff('side-install');" onMouseOver="rolloverOn('side-install');"><IMG alt="Installation" border="0" height="12" hspace="0" name="side-install" onLoad="rolloverLoad('side-install','../graphics/install-label-2.jpg','../graphics/install-label-3.jpg');" src="../graphics/install-label-3.jpg" vspace="0" width="120"></A><BR>
<A href="http://xerces.apache.org/xerces-c/download.cgi" onMouseOut="rolloverOff('side-ext-20');" onMouseOver="rolloverOn('side-ext-20');"><IMG alt="Download" border="0" height="12" hspace="0" name="side-ext-20" onLoad="rolloverLoad('side-ext-20','../graphics/ext-20-label-2.jpg','../graphics/ext-20-label-3.jpg');" src="../graphics/ext-20-label-3.jpg" vspace="0" width="120"></A><BR>
<A href="../build.html" onMouseOut="rolloverOff('side-build');" onMouseOver="rolloverOn('side-build');"><IMG alt="Build Instructions" border="0" height="12" hspace="0" name="side-build" onLoad="rolloverLoad('side-build','../graphics/build-label-2.jpg','../graphics/build-label-3.jpg');" src="../graphics/build-label-3.jpg" vspace="0" width="120"></A><BR>
<IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
<A href="../program.html" onMouseOut="rolloverOff('side-program');" onMouseOver="rolloverOn('side-program');"><IMG alt="Programming" border="0" height="12" hspace="0" name="side-program" onLoad="rolloverLoad('side-program','../graphics/program-label-2.jpg','../graphics/program-label-3.jpg');" src="../graphics/program-label-3.jpg" vspace="0" width="120"></A><BR>
<A href="../samples.html" onMouseOut="rolloverOff('side-samples');" onMouseOver="rolloverOn('side-samples');"><IMG alt="Samples" border="0" height="12" hspace="0" name="side-samples" onLoad="rolloverLoad('side-samples','../graphics/samples-label-2.jpg','../graphics/samples-label-3.jpg');" src="../graphics/samples-label-3.jpg" vspace="0" width="120"></A><BR>
<A href="../faqs.html" onMouseOut="rolloverOff('side-faqs');" onMouseOver="rolloverOn('side-faqs');"><IMG alt="FAQs" border="0" height="12" hspace="0" name="side-faqs" onLoad="rolloverLoad('side-faqs','../graphics/faqs-label-2.jpg','../graphics/faqs-label-3.jpg');" src="../graphics/faqs-label-3.jpg" vspace="0" width="120"></A><BR>
<IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
<A href="../api.html" onMouseOut="rolloverOff('side-api');" onMouseOver="rolloverOn('side-api');"><IMG alt="API Docs" border="0" height="12" hspace="0" name="side-api" onLoad="rolloverLoad('side-api','../graphics/api-label-2.jpg','../graphics/api-label-3.jpg');" src="../graphics/api-label-3.jpg" vspace="0" width="120"></A><BR>
<A href="../ApacheDOMC++Binding.html" onMouseOut="rolloverOff('side-ext-88');" onMouseOver="rolloverOn('side-ext-88');"><IMG alt="DOM C++ Binding" border="0" height="12" hspace="0" name="side-ext-88" onLoad="rolloverLoad('side-ext-88','../graphics/ext-88-label-2.jpg','../graphics/ext-88-label-3.jpg');" src="../graphics/ext-88-label-3.jpg" vspace="0" width="120"></A><BR>
<A href="../migrate.html" onMouseOut="rolloverOff('side-migrate');" onMouseOver="rolloverOn('side-migrate');"><IMG alt="Migration Guide" border="0" height="12" hspace="0" name="side-migrate" onLoad="rolloverLoad('side-migrate','../graphics/migrate-label-2.jpg','../graphics/migrate-label-3.jpg');" src="../graphics/migrate-label-3.jpg" vspace="0" width="120"></A><BR>
<IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
<A href="../feedback.html" onMouseOut="rolloverOff('side-feedback');" onMouseOver="rolloverOn('side-feedback');"><IMG alt="Feedback" border="0" height="12" hspace="0" name="side-feedback" onLoad="rolloverLoad('side-feedback','../graphics/feedback-label-2.jpg','../graphics/feedback-label-3.jpg');" src="../graphics/feedback-label-3.jpg" vspace="0" width="120"></A><BR>
<A href="../bug-report.html" onMouseOut="rolloverOff('side-bug-report');" onMouseOver="rolloverOn('side-bug-report');"><IMG alt="Bug-Reporting" border="0" height="12" hspace="0" name="side-bug-report" onLoad="rolloverLoad('side-bug-report','../graphics/bug-report-label-2.jpg','../graphics/bug-report-label-3.jpg');" src="../graphics/bug-report-label-3.jpg" vspace="0" width="120"></A><BR>
<A href="../mailing-lists.html" onMouseOut="rolloverOff('side-mailing-lists');" onMouseOver="rolloverOn('side-mailing-lists');"><IMG alt="Mailing Lists" border="0" height="12" hspace="0" name="side-mailing-lists" onLoad="rolloverLoad('side-mailing-lists','../graphics/mailing-lists-label-2.jpg','../graphics/mailing-lists-label-3.jpg');" src="../graphics/mailing-lists-label-3.jpg" vspace="0" width="120"></A><BR>
<IMG border="0" height="6" hspace="0" src="../resources/separator.gif" vspace="0" width="120"><BR>
<A href="../source-repository.html" onMouseOut="rolloverOff('side-source-repository');" onMouseOver="rolloverOn('side-source-repository');"><IMG alt="Source Repository" border="0" height="12" hspace="0" name="side-source-repository" onLoad="rolloverLoad('side-source-repository','../graphics/source-repository-label-2.jpg','../graphics/source-repository-label-3.jpg');" src="../graphics/source-repository-label-3.jpg" vspace="0" width="120"></A><BR>
<A href="../applications.html" onMouseOut="rolloverOff('side-applications');" onMouseOver="rolloverOn('side-applications');"><IMG alt="Applications" border="0" height="12" hspace="0" name="side-applications" onLoad="rolloverLoad('side-applications','../graphics/applications-label-2.jpg','../graphics/applications-label-3.jpg');" src="../graphics/applications-label-3.jpg" vspace="0" width="120"></A><BR>
<IMG border="0" height="14" hspace="0" src="../resources/close.gif" vspace="0" width="120"><BR></TD><TD align="left" valign="top" width="500"><TABLE border="0" cellpadding="3" cellspacing="0"><TR><TD>
<TABLE border="0" cellpadding="0" cellspacing="0" width="494"><TR><TD bgcolor="#FFFFFF" colspan="2" width="494"><TABLE border="0" cellpadding="0" cellspacing="0" width="494"><TR><TD bgcolor="#039acc" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#039acc" height="1" width="492"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="492"></TD><TD bgcolor="#0086b2" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD></TR><TR><TD bgcolor="#039acc" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#0086b2" width="492"><FONT color="#ffffff" face="arial,helvetica,sanserif" size="+1"><IMG border="0" height="2" hspace="0" src="../resources/void.gif" vspace="0" width="2"><B>API Docs for SAX and DOM</B></FONT></TD><TD bgcolor="#017299" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD></TR><TR><TD bgcolor="#0086b2" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#017299" height="1" width="492"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="492"></TD><TD bgcolor="#017299" height="1" width="1"><IMG border="0" height="1" hspace="0" src="../resources/void.gif" vspace="0" width="1"></TD></TR></TABLE></TD></TR><TR><TD width="10">&nbsp;</TD><TD width="484"><FONT color="#000000" face="arial,helvetica,sanserif">
<P>
<!-- Generated by Doxygen 1.5.3 -->
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="classes.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
</ul>
</div>
<h1>DOMNode.hpp</h1><a href="DOMNode_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef DOMNode_HEADER_GUARD_</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define DOMNode_HEADER_GUARD_</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="comment">/*</span>
<a name="l00005"></a>00005 <span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one or more</span>
<a name="l00006"></a>00006 <span class="comment"> * contributor license agreements. See the NOTICE file distributed with</span>
<a name="l00007"></a>00007 <span class="comment"> * this work for additional information regarding copyright ownership.</span>
<a name="l00008"></a>00008 <span class="comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</span>
<a name="l00009"></a>00009 <span class="comment"> * (the "License"); you may not use this file except in compliance with</span>
<a name="l00010"></a>00010 <span class="comment"> * the License. You may obtain a copy of the License at</span>
<a name="l00011"></a>00011 <span class="comment"> * </span>
<a name="l00012"></a>00012 <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span>
<a name="l00013"></a>00013 <span class="comment"> * </span>
<a name="l00014"></a>00014 <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span>
<a name="l00015"></a>00015 <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span>
<a name="l00016"></a>00016 <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span>
<a name="l00017"></a>00017 <span class="comment"> * See the License for the specific language governing permissions and</span>
<a name="l00018"></a>00018 <span class="comment"> * limitations under the License.</span>
<a name="l00019"></a>00019 <span class="comment"> */</span>
<a name="l00020"></a>00020
<a name="l00021"></a>00021 <span class="comment">/*</span>
<a name="l00022"></a>00022 <span class="comment"> * $Id: DOMNode.hpp 568078 2007-08-21 11:43:25Z amassari $</span>
<a name="l00023"></a>00023 <span class="comment"> */</span>
<a name="l00024"></a>00024
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;<a class="code" href="XercesDefs_8hpp.html">xercesc/util/XercesDefs.hpp</a>&gt;</span>
<a name="l00026"></a>00026
<a name="l00027"></a>00027 <a class="code" href="XercesDefs_8hpp.html#43d74fa53d868d978f3e97cbb78b194d">XERCES_CPP_NAMESPACE_BEGIN</a>
<a name="l00028"></a>00028
<a name="l00029"></a>00029
<a name="l00030"></a>00030 <span class="keyword">class </span><a class="code" href="classDOMDocument.html" title="The DOMDocument interface represents the entire XML document.">DOMDocument</a>;
<a name="l00031"></a>00031 <span class="keyword">class </span><a class="code" href="classDOMNamedNodeMap.html" title="DOMNamedNodeMaps are used to represent collections of nodes that can be accessed...">DOMNamedNodeMap</a>;
<a name="l00032"></a>00032 <span class="keyword">class </span><a class="code" href="classDOMNodeList.html" title="The DOMNodeList interface provides the abstraction of an ordered collection of nodes...">DOMNodeList</a>;
<a name="l00033"></a>00033 <span class="keyword">class </span><a class="code" href="classDOMUserDataHandler.html" title="When associating an object to a key on a node using setUserData the application can...">DOMUserDataHandler</a>;
<a name="l00034"></a>00034
<a name="l00139"></a><a class="code" href="classDOMNode.html">00139</a> <span class="keyword">class </span><a class="code" href="XercesDefs_8hpp.html#40e97a4d60600cb8128a2eb5d6504e26"></a> <a class="code" href="classDOMNode.html" title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a> {
<a name="l00140"></a>00140 <span class="keyword">protected</span>:
<a name="l00141"></a>00141 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00142"></a>00142 <span class="comment">// Hidden constructors</span>
<a name="l00143"></a>00143 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00146"></a><a class="code" href="classDOMNode.html#85f63599baf0d6c8bac93da940c33306">00146</a> <span class="comment"></span> <a class="code" href="classDOMNode.html" title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a>() {}
<a name="l00147"></a><a class="code" href="classDOMNode.html#12a6ce394f39e1c0fff128cfcf6d6fea">00147</a> <a class="code" href="classDOMNode.html" title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a>(<span class="keyword">const</span> <a class="code" href="classDOMNode.html" title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a> &amp;) {}
<a name="l00149"></a>00149
<a name="l00150"></a>00150 <span class="keyword">private</span>:
<a name="l00151"></a>00151 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00152"></a>00152 <span class="comment">// Unimplemented constructors and operators</span>
<a name="l00153"></a>00153 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00156"></a>00156 <span class="comment"></span> <a class="code" href="classDOMNode.html" title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a> &amp; operator = (<span class="keyword">const</span> <a class="code" href="classDOMNode.html" title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a> &amp;);
<a name="l00158"></a>00158
<a name="l00159"></a>00159 <span class="keyword">public</span>:
<a name="l00160"></a>00160 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00161"></a>00161 <span class="comment">// All constructors are hidden, just the destructor is available</span>
<a name="l00162"></a>00162 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00169"></a><a class="code" href="classDOMNode.html#81eb183414e4fbfe72b31390215ec59e">00169</a> <span class="comment"></span> <span class="keyword">virtual</span> ~<a class="code" href="classDOMNode.html" title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a>() {};
<a name="l00171"></a>00171
<a name="l00172"></a>00172 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00173"></a>00173 <span class="comment">// Class Types</span>
<a name="l00174"></a>00174 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00182"></a><a class="code" href="classDOMNode.html#6237ede96be83ff729807688e4f638c5">00182</a> <span class="comment"></span> <span class="keyword">enum</span> <a class="code" href="classDOMNode.html#6237ede96be83ff729807688e4f638c5" title="NodeType.">NodeType</a> {
<a name="l00183"></a><a class="code" href="classDOMNode.html#6237ede96be83ff729807688e4f638c55e4700e1eda58eb7d08dd126c8bfafbe">00183</a> ELEMENT_NODE = 1,
<a name="l00184"></a><a class="code" href="classDOMNode.html#6237ede96be83ff729807688e4f638c5b29561d53036246e8117b250c864f1a9">00184</a> ATTRIBUTE_NODE = 2,
<a name="l00185"></a><a class="code" href="classDOMNode.html#6237ede96be83ff729807688e4f638c5af04f62271b6e744be27468d924f61b4">00185</a> TEXT_NODE = 3,
<a name="l00186"></a><a class="code" href="classDOMNode.html#6237ede96be83ff729807688e4f638c54679a29a636f6206bb7fd9e831d05e4d">00186</a> CDATA_SECTION_NODE = 4,
<a name="l00187"></a><a class="code" href="classDOMNode.html#6237ede96be83ff729807688e4f638c5c287e4413c4fe892654b80345a96e427">00187</a> ENTITY_REFERENCE_NODE = 5,
<a name="l00188"></a><a class="code" href="classDOMNode.html#6237ede96be83ff729807688e4f638c5f8da261bca426f484769218bd5a40a1c">00188</a> ENTITY_NODE = 6,
<a name="l00189"></a><a class="code" href="classDOMNode.html#6237ede96be83ff729807688e4f638c5a0b524c41d23469e3a8d19131d94240b">00189</a> PROCESSING_INSTRUCTION_NODE = 7,
<a name="l00190"></a><a class="code" href="classDOMNode.html#6237ede96be83ff729807688e4f638c5253a1b3651ae01131dd88995d03c54e1">00190</a> COMMENT_NODE = 8,
<a name="l00191"></a><a class="code" href="classDOMNode.html#6237ede96be83ff729807688e4f638c5eb01b6e307edacb6cac1583f467da062">00191</a> DOCUMENT_NODE = 9,
<a name="l00192"></a><a class="code" href="classDOMNode.html#6237ede96be83ff729807688e4f638c54cd2263028979f3fe7e9b40fd2406e4c">00192</a> DOCUMENT_TYPE_NODE = 10,
<a name="l00193"></a><a class="code" href="classDOMNode.html#6237ede96be83ff729807688e4f638c5775f75ac4ba9124a4d33a33d3da74779">00193</a> DOCUMENT_FRAGMENT_NODE = 11,
<a name="l00194"></a><a class="code" href="classDOMNode.html#6237ede96be83ff729807688e4f638c5df32a03e60aeffc7d6b767633bc59819">00194</a> NOTATION_NODE = 12
<a name="l00195"></a>00195 };
<a name="l00196"></a>00196
<a name="l00223"></a><a class="code" href="classDOMNode.html#3224c4607825948e78f0b993c1f17e4e">00223</a> <span class="keyword">enum</span> <a class="code" href="classDOMNode.html#3224c4607825948e78f0b993c1f17e4e" title="TreePosition:.">DOMTreePosition</a> {
<a name="l00224"></a><a class="code" href="classDOMNode.html#3224c4607825948e78f0b993c1f17e4e2b2c6a21ce321ba74bcd32c88f04302f">00224</a> TREE_POSITION_PRECEDING = 0x01,
<a name="l00225"></a><a class="code" href="classDOMNode.html#3224c4607825948e78f0b993c1f17e4e7492d6677ef84c2c40d77d004ca64f90">00225</a> TREE_POSITION_FOLLOWING = 0x02,
<a name="l00226"></a><a class="code" href="classDOMNode.html#3224c4607825948e78f0b993c1f17e4ee7b57dcd0daddfba47b7dafe6b567c07">00226</a> TREE_POSITION_ANCESTOR = 0x04,
<a name="l00227"></a><a class="code" href="classDOMNode.html#3224c4607825948e78f0b993c1f17e4e962ed5dccc4f7f815f3348058b286203">00227</a> TREE_POSITION_DESCENDANT = 0x08,
<a name="l00228"></a><a class="code" href="classDOMNode.html#3224c4607825948e78f0b993c1f17e4ebd5c93f5e7d8d51706614cda116b5ae0">00228</a> TREE_POSITION_EQUIVALENT = 0x10,
<a name="l00229"></a><a class="code" href="classDOMNode.html#3224c4607825948e78f0b993c1f17e4e879ef7cbb17fd937270daa0cbe4fe712">00229</a> TREE_POSITION_SAME_NODE = 0x20,
<a name="l00230"></a><a class="code" href="classDOMNode.html#3224c4607825948e78f0b993c1f17e4e777476fa329b204668cf5b9a4a972e5d">00230</a> TREE_POSITION_DISCONNECTED = 0x00
<a name="l00231"></a>00231 };
<a name="l00233"></a>00233
<a name="l00234"></a>00234 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00235"></a>00235 <span class="comment">// Virtual DOMNode interface</span>
<a name="l00236"></a>00236 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00239"></a>00239 <span class="comment"></span> <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00240"></a>00240 <span class="comment">// Getter methods</span>
<a name="l00241"></a>00241 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00246"></a>00246 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh * getNodeName() <span class="keyword">const</span> = 0;
<a name="l00247"></a>00247
<a name="l00255"></a>00255 <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh * getNodeValue() <span class="keyword">const</span> = 0;
<a name="l00256"></a>00256
<a name="l00261"></a>00261 <span class="keyword">virtual</span> <span class="keywordtype">short</span> getNodeType() <span class="keyword">const</span> = 0;
<a name="l00262"></a>00262
<a name="l00273"></a>00273 <span class="keyword">virtual</span> <a class="code" href="classDOMNode.html" title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a> *getParentNode() <span class="keyword">const</span> = 0;
<a name="l00274"></a>00274
<a name="l00289"></a>00289 <span class="keyword">virtual</span> <a class="code" href="classDOMNodeList.html" title="The DOMNodeList interface provides the abstraction of an ordered collection of nodes...">DOMNodeList</a> *getChildNodes() <span class="keyword">const</span> = 0;
<a name="l00296"></a>00296 <span class="keyword">virtual</span> <a class="code" href="classDOMNode.html" title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a> *getFirstChild() <span class="keyword">const</span> = 0;
<a name="l00297"></a>00297
<a name="l00304"></a>00304 <span class="keyword">virtual</span> <a class="code" href="classDOMNode.html" title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a> *getLastChild() <span class="keyword">const</span> = 0;
<a name="l00305"></a>00305
<a name="l00312"></a>00312 <span class="keyword">virtual</span> <a class="code" href="classDOMNode.html" title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a> *getPreviousSibling() <span class="keyword">const</span> = 0;
<a name="l00313"></a>00313
<a name="l00320"></a>00320 <span class="keyword">virtual</span> <a class="code" href="classDOMNode.html" title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a> *getNextSibling() <span class="keyword">const</span> = 0;
<a name="l00321"></a>00321
<a name="l00327"></a>00327 <span class="keyword">virtual</span> <a class="code" href="classDOMNamedNodeMap.html" title="DOMNamedNodeMaps are used to represent collections of nodes that can be accessed...">DOMNamedNodeMap</a> *getAttributes() <span class="keyword">const</span> = 0;
<a name="l00328"></a>00328
<a name="l00340"></a>00340 <span class="keyword">virtual</span> <a class="code" href="classDOMDocument.html" title="The DOMDocument interface represents the entire XML document.">DOMDocument</a> *getOwnerDocument() <span class="keyword">const</span> = 0;
<a name="l00341"></a>00341
<a name="l00342"></a>00342 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00343"></a>00343 <span class="comment">// Node methods</span>
<a name="l00344"></a>00344 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00364"></a>00364 <span class="comment"></span> <span class="keyword">virtual</span> <a class="code" href="classDOMNode.html" title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a> * cloneNode(<span class="keywordtype">bool</span> deep) <span class="keyword">const</span> = 0;
<a name="l00365"></a>00365
<a name="l00393"></a>00393 <span class="keyword">virtual</span> <a class="code" href="classDOMNode.html" title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a> *insertBefore(<a class="code" href="classDOMNode.html" title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a> *newChild,
<a name="l00394"></a>00394 <a class="code" href="classDOMNode.html" title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a> *refChild) = 0;
<a name="l00395"></a>00395
<a name="l00396"></a>00396
<a name="l00420"></a>00420 <span class="keyword">virtual</span> <a class="code" href="classDOMNode.html" title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a> *replaceChild(<a class="code" href="classDOMNode.html" title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a> *newChild,
<a name="l00421"></a>00421 <a class="code" href="classDOMNode.html" title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a> *oldChild) = 0;
<a name="l00434"></a>00434 <span class="keyword">virtual</span> <a class="code" href="classDOMNode.html" title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a> *removeChild(<a class="code" href="classDOMNode.html" title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a> *oldChild) = 0;
<a name="l00435"></a>00435
<a name="l00456"></a>00456 <span class="keyword">virtual</span> <a class="code" href="classDOMNode.html" title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a> *appendChild(<a class="code" href="classDOMNode.html" title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a> *newChild) = 0;
<a name="l00457"></a>00457
<a name="l00458"></a>00458 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00459"></a>00459 <span class="comment">// Query methods</span>
<a name="l00460"></a>00460 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00469"></a>00469 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> hasChildNodes() <span class="keyword">const</span> = 0;
<a name="l00470"></a>00470
<a name="l00471"></a>00471 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00472"></a>00472 <span class="comment">// Setter methods</span>
<a name="l00473"></a>00473 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00489"></a>00489 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> setNodeValue(<span class="keyword">const</span> XMLCh *nodeValue) = 0;
<a name="l00491"></a>00491
<a name="l00514"></a>00514 <span class="keyword">virtual</span> <span class="keywordtype">void</span> normalize() = 0;
<a name="l00515"></a>00515
<a name="l00531"></a>00531 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> isSupported(<span class="keyword">const</span> XMLCh *feature,
<a name="l00532"></a>00532 <span class="keyword">const</span> XMLCh *version) <span class="keyword">const</span> = 0;
<a name="l00533"></a>00533
<a name="l00549"></a>00549 <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh * getNamespaceURI() <span class="keyword">const</span> = 0;
<a name="l00550"></a>00550
<a name="l00557"></a>00557 <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh * getPrefix() <span class="keyword">const</span> = 0;
<a name="l00558"></a>00558
<a name="l00568"></a>00568 <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh * getLocalName() <span class="keyword">const</span> = 0;
<a name="l00569"></a>00569
<a name="l00603"></a>00603 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setPrefix(<span class="keyword">const</span> XMLCh * prefix) = 0;
<a name="l00604"></a>00604
<a name="l00611"></a>00611 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> hasAttributes() <span class="keyword">const</span> = 0;
<a name="l00613"></a>00613
<a name="l00633"></a>00633 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> isSameNode(<span class="keyword">const</span> <a class="code" href="classDOMNode.html" title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a>* other) <span class="keyword">const</span> = 0;
<a name="l00634"></a>00634
<a name="l00677"></a>00677 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> isEqualNode(<span class="keyword">const</span> <a class="code" href="classDOMNode.html" title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a>* arg) <span class="keyword">const</span> = 0;
<a name="l00678"></a>00678
<a name="l00679"></a>00679
<a name="l00707"></a>00707 <span class="keyword">virtual</span> <span class="keywordtype">void</span>* setUserData(<span class="keyword">const</span> XMLCh* key,
<a name="l00708"></a>00708 <span class="keywordtype">void</span>* data,
<a name="l00709"></a>00709 <a class="code" href="classDOMUserDataHandler.html" title="When associating an object to a key on a node using setUserData the application can...">DOMUserDataHandler</a>* handler) = 0;
<a name="l00710"></a>00710
<a name="l00724"></a>00724 <span class="keyword">virtual</span> <span class="keywordtype">void</span>* getUserData(<span class="keyword">const</span> XMLCh* key) <span class="keyword">const</span> = 0;
<a name="l00725"></a>00725
<a name="l00726"></a>00726
<a name="l00745"></a>00745 <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh* getBaseURI() <span class="keyword">const</span> = 0;
<a name="l00746"></a>00746
<a name="l00759"></a>00759 <span class="keyword">virtual</span> <span class="keywordtype">short</span> compareTreePosition(<span class="keyword">const</span> <a class="code" href="classDOMNode.html" title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a>* other) <span class="keyword">const</span> = 0;
<a name="l00760"></a>00760
<a name="l00804"></a>00804 <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh* getTextContent() <span class="keyword">const</span> = 0;
<a name="l00805"></a>00805
<a name="l00819"></a>00819 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setTextContent(<span class="keyword">const</span> XMLCh* textContent) = 0;
<a name="l00820"></a>00820
<a name="l00838"></a>00838 <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh* lookupNamespacePrefix(<span class="keyword">const</span> XMLCh* namespaceURI,
<a name="l00839"></a>00839 <span class="keywordtype">bool</span> useDefault) <span class="keyword">const</span> = 0;
<a name="l00840"></a>00840
<a name="l00852"></a>00852 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> isDefaultNamespace(<span class="keyword">const</span> XMLCh* namespaceURI) <span class="keyword">const</span> = 0;
<a name="l00853"></a>00853
<a name="l00867"></a>00867 <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh* lookupNamespaceURI(<span class="keyword">const</span> XMLCh* prefix) <span class="keyword">const</span> = 0;
<a name="l00868"></a>00868
<a name="l00885"></a>00885 <span class="keyword">virtual</span> <a class="code" href="classDOMNode.html" title="The DOMNode interface is the primary datatype for the entire Document Object Model...">DOMNode</a>* getInterface(<span class="keyword">const</span> XMLCh* feature) = 0;
<a name="l00887"></a>00887
<a name="l00888"></a>00888 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00889"></a>00889 <span class="comment">// Non-standard Extension</span>
<a name="l00890"></a>00890 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00906"></a>00906 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> release() = 0;
<a name="l00908"></a>00908 <span class="preprocessor">#if defined(XML_DOMREFCOUNT_EXPERIMENTAL)</span>
<a name="l00909"></a>00909 <span class="preprocessor"></span> <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00910"></a>00910 <span class="comment">// Non-standard Extension</span>
<a name="l00911"></a>00911 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00921"></a>00921 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> decRefCount() {}
<a name="l00923"></a>00923
<a name="l00924"></a>00924 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00925"></a>00925 <span class="comment">// Non-standard Extension</span>
<a name="l00926"></a>00926 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00933"></a>00933 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> incRefCount() {}
<a name="l00935"></a>00935 <span class="preprocessor">#endif</span>
<a name="l00936"></a>00936 <span class="preprocessor"></span>};
<a name="l00937"></a>00937
<a name="l00938"></a>00938 <span class="comment">/***</span>
<a name="l00939"></a>00939 <span class="comment"> * Utilities macros for getting memory manager within DOM</span>
<a name="l00940"></a>00940 <span class="comment">***/</span>
<a name="l00941"></a><a class="code" href="DOMNode_8hpp.html#40e9d272746e382ec4a37429913f8ea5">00941</a> <span class="preprocessor">#define GET_OWNER_DOCUMENT(ptr) \</span>
<a name="l00942"></a>00942 <span class="preprocessor"> ((DOMDocumentImpl*)(ptr-&gt;getOwnerDocument()))</span>
<a name="l00943"></a>00943 <span class="preprocessor"></span>
<a name="l00944"></a><a class="code" href="DOMNode_8hpp.html#151af8d7b4791f7e848f9f3713b8efbd">00944</a> <span class="preprocessor">#define GET_DIRECT_MM(ptr) \</span>
<a name="l00945"></a>00945 <span class="preprocessor"> ptr ? ((DOMDocumentImpl*)ptr)-&gt;getMemoryManager() : XMLPlatformUtils::fgMemoryManager </span>
<a name="l00946"></a>00946 <span class="preprocessor"></span>
<a name="l00947"></a><a class="code" href="DOMNode_8hpp.html#72f6f4902be5326c33675dcd94ec2c6a">00947</a> <span class="preprocessor">#define GET_INDIRECT_MM(ptr) \</span>
<a name="l00948"></a>00948 <span class="preprocessor"> !ptr ? XMLPlatformUtils::fgMemoryManager : \</span>
<a name="l00949"></a>00949 <span class="preprocessor"> GET_OWNER_DOCUMENT(ptr) ? GET_OWNER_DOCUMENT(ptr)-&gt;getMemoryManager() : \</span>
<a name="l00950"></a>00950 <span class="preprocessor"> XMLPlatformUtils::fgMemoryManager</span>
<a name="l00951"></a>00951 <span class="preprocessor"></span>
<a name="l00952"></a>00952 <span class="comment">/***</span>
<a name="l00953"></a>00953 <span class="comment"> * For DOMNode and its derivatives</span>
<a name="l00954"></a>00954 <span class="comment">***/</span>
<a name="l00955"></a><a class="code" href="DOMNode_8hpp.html#5b78c1ce54a287dddf516818ddb277c3">00955</a> <span class="preprocessor">#define GetDOMNodeMemoryManager GET_INDIRECT_MM(this)</span>
<a name="l00956"></a>00956 <span class="preprocessor"></span>
<a name="l00957"></a>00957 <a class="code" href="XercesDefs_8hpp.html#f03d5cb905763ef7a7bd22ab82718285">XERCES_CPP_NAMESPACE_END</a>
<a name="l00958"></a>00958
<a name="l00959"></a>00959 <span class="preprocessor">#endif</span>
<a name="l00960"></a>00960 <span class="preprocessor"></span>
</pre></div> </FONT></TD></TR></TABLE><BR>
</TD></TR></TABLE></TD></TR></TABLE><BR><TABLE border="0" cellpadding="0" cellspacing="0" width="620"><TR><TD bgcolor="#0086b2"><IMG height="1" src="images/dot.gif" width="1" alt=""></TD></TR><TR><TD align="center"><FONT color="#0086b2" size="-1"><I>
Copyright &copy; 1994-2004 The Apache Software Foundation.
All Rights Reserved.
</I></FONT></TD></TR></TABLE></BODY></HTML>