XQuilla/docs/simple-api/DOMDocument_8hpp-source.html
2020-02-17 22:05:20 +01:00

207 lines
19 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 Simple API: DOMDocument.hpp Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.6 -->
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="classes.html"><span>Classes</span></a></li>
<li id="current"><a href="files.html"><span>Files</span></a></li>
</ul></div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul></div>
<h1>DOMDocument.hpp</h1><a href="DOMDocument_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 DOMDocument_HEADER_GUARD_</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define DOMDocument_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"> * Copyright 2001-2002,2004 The Apache Software Foundation.</span>
<a name="l00006"></a>00006 <span class="comment"> * </span>
<a name="l00007"></a>00007 <span class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</span>
<a name="l00008"></a>00008 <span class="comment"> * you may not use this file except in compliance with the License.</span>
<a name="l00009"></a>00009 <span class="comment"> * You may obtain a copy of the License at</span>
<a name="l00010"></a>00010 <span class="comment"> * </span>
<a name="l00011"></a>00011 <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span>
<a name="l00012"></a>00012 <span class="comment"> * </span>
<a name="l00013"></a>00013 <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span>
<a name="l00014"></a>00014 <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span>
<a name="l00015"></a>00015 <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span>
<a name="l00016"></a>00016 <span class="comment"> * See the License for the specific language governing permissions and</span>
<a name="l00017"></a>00017 <span class="comment"> * limitations under the License.</span>
<a name="l00018"></a>00018 <span class="comment"> */</span>
<a name="l00019"></a>00019
<a name="l00020"></a>00020 <span class="comment">/*</span>
<a name="l00021"></a>00021 <span class="comment"> * $Id: DOMDocument.hpp 176250 2004-12-21 16:02:51Z cargilld $</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;xercesc/util/XercesDefs.hpp&gt;</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;<a class="code" href="DOMNode_8hpp.html">xercesc/dom/DOMNode.hpp</a>&gt;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;xercesc/dom/DOMDocumentRange.hpp&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;xercesc/dom/DOMDocumentTraversal.hpp&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;xercesc/dom/DOMXPathEvaluator.hpp&gt;</span>
<a name="l00029"></a>00029
<a name="l00030"></a>00030 XERCES_CPP_NAMESPACE_BEGIN
<a name="l00031"></a>00031
<a name="l00032"></a>00032 <span class="keyword">class </span>DOMConfiguration;
<a name="l00033"></a>00033 <span class="keyword">class </span>DOMDocumentType;
<a name="l00034"></a>00034 <span class="keyword">class </span>DOMElement;
<a name="l00035"></a>00035 <span class="keyword">class </span>DOMDocumentFragment;
<a name="l00036"></a>00036 <span class="keyword">class </span>DOMComment;
<a name="l00037"></a>00037 <span class="keyword">class </span>DOMCDATASection;
<a name="l00038"></a>00038 <span class="keyword">class </span>DOMProcessingInstruction;
<a name="l00039"></a>00039 <span class="keyword">class </span>DOMAttr;
<a name="l00040"></a>00040 <span class="keyword">class </span>DOMEntity;
<a name="l00041"></a>00041 <span class="keyword">class </span>DOMEntityReference;
<a name="l00042"></a>00042 <span class="keyword">class </span>DOMImplementation;
<a name="l00043"></a>00043 <span class="keyword">class </span>DOMNodeFilter;
<a name="l00044"></a>00044 <span class="keyword">class </span>DOMNodeList;
<a name="l00045"></a>00045 <span class="keyword">class </span>DOMNotation;
<a name="l00046"></a>00046 <span class="keyword">class </span>DOMText;
<a name="l00047"></a>00047 <span class="keyword">class </span>DOMNode;
<a name="l00048"></a>00048
<a name="l00049"></a>00049
<a name="l00063"></a><a class="code" href="classxercesc_1_1DOMDocument.html">00063</a> <span class="keyword">class </span>CDOM_EXPORT <a class="code" href="classxercesc_1_1DOMDocument.html">DOMDocument</a>: <span class="keyword">public</span> DOMDocumentRange,
<a name="l00064"></a>00064 <span class="keyword">public</span> DOMXPathEvaluator,
<a name="l00065"></a>00065 <span class="keyword">public</span> DOMDocumentTraversal,
<a name="l00066"></a>00066 <span class="keyword">public</span> <a class="code" href="classxercesc_1_1DOMNode.html">DOMNode</a> {
<a name="l00067"></a>00067
<a name="l00068"></a>00068
<a name="l00069"></a>00069 <span class="keyword">protected</span>:
<a name="l00070"></a>00070 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00071"></a>00071 <span class="comment">// Hidden constructors</span>
<a name="l00072"></a>00072 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00075"></a><a class="code" href="classxercesc_1_1DOMDocument.html#93e8dc9c007b8f1071dec11af3330f88">00075</a> <span class="comment"></span> <a class="code" href="classxercesc_1_1DOMDocument.html">DOMDocument</a>() {};
<a name="l00077"></a>00077
<a name="l00078"></a>00078 <span class="keyword">private</span>:
<a name="l00079"></a>00079 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00080"></a>00080 <span class="comment">// Unimplemented constructors and operators</span>
<a name="l00081"></a>00081 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00084"></a>00084 <span class="comment"></span> <a class="code" href="classxercesc_1_1DOMDocument.html">DOMDocument</a>(<span class="keyword">const</span> <a class="code" href="classxercesc_1_1DOMDocument.html">DOMDocument</a> &amp;);
<a name="l00085"></a>00085 <a class="code" href="classxercesc_1_1DOMDocument.html">DOMDocument</a> &amp; operator = (<span class="keyword">const</span> <a class="code" href="classxercesc_1_1DOMDocument.html">DOMDocument</a> &amp;);
<a name="l00087"></a>00087
<a name="l00088"></a>00088 <span class="keyword">public</span>:
<a name="l00089"></a>00089 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00090"></a>00090 <span class="comment">// All constructors are hidden, just the destructor is available</span>
<a name="l00091"></a>00091 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00098"></a><a class="code" href="classxercesc_1_1DOMDocument.html#2e870121ac366f158c770563aecf2c3b">00098</a> <span class="comment"></span> <span class="keyword">virtual</span> ~<a class="code" href="classxercesc_1_1DOMDocument.html">DOMDocument</a>() {};
<a name="l00100"></a>00100
<a name="l00101"></a>00101 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00102"></a>00102 <span class="comment">// Virtual DOMDocument interface</span>
<a name="l00103"></a>00103 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00126"></a>00126 <span class="comment"></span> <span class="keyword">virtual</span> DOMElement *createElement(<span class="keyword">const</span> XMLCh *tagName) = 0;
<a name="l00127"></a>00127
<a name="l00133"></a>00133 <span class="keyword">virtual</span> DOMDocumentFragment *createDocumentFragment() = 0;
<a name="l00134"></a>00134
<a name="l00141"></a>00141 <span class="keyword">virtual</span> DOMText *createTextNode(<span class="keyword">const</span> XMLCh *data) = 0;
<a name="l00142"></a>00142
<a name="l00149"></a>00149 <span class="keyword">virtual</span> DOMComment *createComment(<span class="keyword">const</span> XMLCh *data) = 0;
<a name="l00150"></a>00150
<a name="l00158"></a>00158 <span class="keyword">virtual</span> DOMCDATASection *createCDATASection(<span class="keyword">const</span> XMLCh *data) = 0;
<a name="l00159"></a>00159
<a name="l00171"></a>00171 <span class="keyword">virtual</span> DOMProcessingInstruction *createProcessingInstruction(<span class="keyword">const</span> XMLCh *target,
<a name="l00172"></a>00172 <span class="keyword">const</span> XMLCh *data) = 0;
<a name="l00173"></a>00173
<a name="l00174"></a>00174
<a name="l00191"></a>00191 <span class="keyword">virtual</span> DOMAttr *createAttribute(<span class="keyword">const</span> XMLCh *name) = 0;
<a name="l00192"></a>00192
<a name="l00193"></a>00193
<a name="l00211"></a>00211 <span class="keyword">virtual</span> DOMEntityReference *createEntityReference(<span class="keyword">const</span> XMLCh *name) = 0;
<a name="l00212"></a>00212
<a name="l00224"></a>00224 <span class="keyword">virtual</span> DOMDocumentType *getDoctype() <span class="keyword">const </span>= 0;
<a name="l00225"></a>00225
<a name="l00231"></a>00231 <span class="keyword">virtual</span> DOMImplementation *getImplementation() <span class="keyword">const </span>= 0;
<a name="l00232"></a>00232
<a name="l00238"></a>00238 <span class="keyword">virtual</span> DOMElement *getDocumentElement() <span class="keyword">const </span>= 0;
<a name="l00239"></a>00239
<a name="l00254"></a>00254 <span class="keyword">virtual</span> DOMNodeList *getElementsByTagName(<span class="keyword">const</span> XMLCh *tagname) <span class="keyword">const </span>= 0;
<a name="l00255"></a>00255
<a name="l00257"></a>00257
<a name="l00260"></a>00260
<a name="l00359"></a>00359 <span class="keyword">virtual</span> <a class="code" href="classxercesc_1_1DOMNode.html">DOMNode</a> *importNode(<a class="code" href="classxercesc_1_1DOMNode.html">DOMNode</a> *importedNode, <span class="keywordtype">bool</span> deep) = 0;
<a name="l00360"></a>00360
<a name="l00416"></a>00416 <span class="keyword">virtual</span> DOMElement *createElementNS(<span class="keyword">const</span> XMLCh *namespaceURI,
<a name="l00417"></a>00417 <span class="keyword">const</span> XMLCh *qualifiedName) = 0;
<a name="l00418"></a>00418
<a name="l00481"></a>00481 <span class="keyword">virtual</span> DOMAttr *createAttributeNS(<span class="keyword">const</span> XMLCh *namespaceURI,
<a name="l00482"></a>00482 <span class="keyword">const</span> XMLCh *qualifiedName) = 0;
<a name="l00483"></a>00483
<a name="l00496"></a>00496 <span class="keyword">virtual</span> DOMNodeList *getElementsByTagNameNS(<span class="keyword">const</span> XMLCh *namespaceURI,
<a name="l00497"></a>00497 <span class="keyword">const</span> XMLCh *localName) <span class="keyword">const </span>= 0;
<a name="l00498"></a>00498
<a name="l00512"></a>00512 <span class="keyword">virtual</span> DOMElement * getElementById(<span class="keyword">const</span> XMLCh *elementId) <span class="keyword">const </span>= 0;
<a name="l00514"></a>00514
<a name="l00517"></a>00517
<a name="l00528"></a>00528 <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh* getActualEncoding() <span class="keyword">const </span>= 0;
<a name="l00529"></a>00529
<a name="l00540"></a>00540 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setActualEncoding(<span class="keyword">const</span> XMLCh* actualEncoding) = 0;
<a name="l00541"></a>00541
<a name="l00550"></a>00550 <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh* getEncoding() <span class="keyword">const </span>= 0;
<a name="l00551"></a>00551
<a name="l00560"></a>00560 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setEncoding(<span class="keyword">const</span> XMLCh* encoding) = 0;
<a name="l00561"></a>00561
<a name="l00571"></a>00571 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> getStandalone() <span class="keyword">const </span>= 0;
<a name="l00572"></a>00572
<a name="l00582"></a>00582 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setStandalone(<span class="keywordtype">bool</span> standalone) = 0;
<a name="l00583"></a>00583
<a name="l00593"></a>00593 <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh* getVersion() <span class="keyword">const </span>= 0;
<a name="l00594"></a>00594
<a name="l00604"></a>00604 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setVersion(<span class="keyword">const</span> XMLCh* version) = 0;
<a name="l00605"></a>00605
<a name="l00616"></a>00616 <span class="keyword">virtual</span> <span class="keyword">const</span> XMLCh* getDocumentURI() <span class="keyword">const </span>= 0;
<a name="l00627"></a>00627 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setDocumentURI(<span class="keyword">const</span> XMLCh* documentURI) = 0;
<a name="l00628"></a>00628
<a name="l00641"></a>00641 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> getStrictErrorChecking() <span class="keyword">const </span>= 0;
<a name="l00654"></a>00654 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setStrictErrorChecking(<span class="keywordtype">bool</span> strictErrorChecking) = 0;
<a name="l00655"></a>00655
<a name="l00702"></a>00702 <span class="keyword">virtual</span> <a class="code" href="classxercesc_1_1DOMNode.html">DOMNode</a>* renameNode(<a class="code" href="classxercesc_1_1DOMNode.html">DOMNode</a>* n, <span class="keyword">const</span> XMLCh* namespaceURI, <span class="keyword">const</span> XMLCh* name) = 0;
<a name="l00703"></a>00703
<a name="l00704"></a>00704
<a name="l00766"></a>00766 <span class="keyword">virtual</span> <a class="code" href="classxercesc_1_1DOMNode.html">DOMNode</a>* adoptNode(<a class="code" href="classxercesc_1_1DOMNode.html">DOMNode</a>* source) = 0;
<a name="l00767"></a>00767
<a name="l00792"></a>00792 <span class="keyword">virtual</span> <span class="keywordtype">void</span> normalizeDocument() = 0;
<a name="l00793"></a>00793
<a name="l00794"></a>00794
<a name="l00810"></a>00810 <span class="keyword">virtual</span> DOMConfiguration* getDOMConfiguration() <span class="keyword">const </span>= 0;
<a name="l00811"></a>00811
<a name="l00813"></a>00813
<a name="l00814"></a>00814 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00815"></a>00815 <span class="comment">// Non-standard extension</span>
<a name="l00816"></a>00816 <span class="comment">// -----------------------------------------------------------------------</span>
<a name="l00826"></a>00826 <span class="comment"></span> <span class="keyword">virtual</span> DOMEntity *createEntity(<span class="keyword">const</span> XMLCh *name) = 0;
<a name="l00827"></a>00827
<a name="l00836"></a>00836 <span class="keyword">virtual</span> DOMDocumentType *createDocumentType(<span class="keyword">const</span> XMLCh *name) = 0;
<a name="l00837"></a>00837
<a name="l00838"></a>00838 <span class="comment">/***</span>
<a name="l00839"></a>00839 <span class="comment"> * Provide default implementation to maintain source code compatibility</span>
<a name="l00840"></a>00840 <span class="comment"> ***/</span>
<a name="l00841"></a><a class="code" href="classxercesc_1_1DOMDocument.html#fba31cc58c4334720a19c3ff845aaa5a">00841</a> <span class="keyword">virtual</span> DOMDocumentType* createDocumentType(<span class="keyword">const</span> XMLCh *qName,
<a name="l00842"></a>00842 <span class="keyword">const</span> XMLCh*, <span class="comment">//publicId,</span>
<a name="l00843"></a>00843 <span class="keyword">const</span> XMLCh* <span class="comment">//systemId</span>
<a name="l00844"></a>00844 )
<a name="l00845"></a>00845 {
<a name="l00846"></a>00846 <span class="keywordflow">return</span> createDocumentType(qName);
<a name="l00847"></a>00847 }
<a name="l00848"></a>00848
<a name="l00857"></a>00857 <span class="keyword">virtual</span> DOMNotation *createNotation(<span class="keyword">const</span> XMLCh *name) = 0;
<a name="l00858"></a>00858
<a name="l00868"></a>00868 <span class="keyword">virtual</span> DOMElement *createElementNS(<span class="keyword">const</span> XMLCh *namespaceURI,
<a name="l00869"></a>00869 <span class="keyword">const</span> XMLCh *qualifiedName,
<a name="l00870"></a>00870 <span class="keyword">const</span> XMLSSize_t lineNum,
<a name="l00871"></a>00871 <span class="keyword">const</span> XMLSSize_t columnNum) = 0;
<a name="l00873"></a>00873
<a name="l00874"></a>00874 };
<a name="l00875"></a>00875
<a name="l00876"></a>00876 XERCES_CPP_NAMESPACE_END
<a name="l00877"></a>00877
<a name="l00878"></a>00878 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Tue Dec 12 00:18:56 2006 for XQilla Simple API by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
</body>
</html>