This commit is contained in:
King_DuckZ 2020-02-17 22:19:57 +01:00
parent 1613a190f0
commit b93578226a
2489 changed files with 122200 additions and 118330 deletions

View file

@ -5,9 +5,20 @@
<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&amp;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&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a> | <a class="qindex" href="examples.html">Examples</a></div>
<h1>dom-basic.cpp</h1>This example executes a simple XQuery expression ("1 to 100"), which returns the numbers from 1 to 100 inclusive.<p>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
<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="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>dom-basic.cpp</h1><p>This example executes a simple XQuery expression ("1 to 100"), which returns the numbers from 1 to 100 inclusive.</p>
<div class="fragment"><pre class="fragment"><span class="preprocessor">#include &lt;iostream&gt;</span>
<span class="preprocessor">#include &lt;<a class="code" href="DOM_8hpp.html">xercesc/dom/DOM.hpp</a>&gt;</span>
<span class="preprocessor">#include &lt;<a class="code" href="xqilla-dom3_8hpp.html">xqilla/xqilla-dom3.hpp</a>&gt;</span>
@ -16,11 +27,11 @@ XERCES_CPP_NAMESPACE_USE;
<span class="keywordtype">int</span> main(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> *argv[]) {
<span class="comment">// Initialise Xerces-C and XQilla using XQillaPlatformUtils</span>
<a name="a0"></a><a class="code" href="classXQillaPlatformUtils.html#e0">XQillaPlatformUtils::initialize</a>();
<a name="a0"></a><a class="code" href="classXQillaPlatformUtils.html#ac769d09556ec43ecb94d1822783ba0b8" title="Perform XQilla initialization.">XQillaPlatformUtils::initialize</a>();
<span class="comment">// Get the XQilla DOMImplementation object</span>
DOMImplementation *xqillaImplementation =
DOMImplementationRegistry::getDOMImplementation(X(<span class="stringliteral">"XPath2 3.0"</span>));
DOMImplementationRegistry::getDOMImplementation(X(<span class="stringliteral">&quot;XPath2 3.0&quot;</span>));
<span class="comment">// Make sure the DOM objects are released before we call XQillaPlatformUtils::terminate()</span>
{
@ -28,7 +39,7 @@ XERCES_CPP_NAMESPACE_USE;
<a name="_a1"></a><a class="code" href="classAutoRelease.html">AutoRelease&lt;DOMDocument&gt;</a> document(xqillaImplementation-&gt;createDocument());
<span class="comment">// Parse an XPath 2 expression</span>
<a class="code" href="classAutoRelease.html">AutoRelease&lt;DOMXPathExpression&gt;</a> expression(document-&gt;createExpression(X(<span class="stringliteral">"1 to 100"</span>), 0));
<a class="code" href="classAutoRelease.html">AutoRelease&lt;DOMXPathExpression&gt;</a> expression(document-&gt;createExpression(X(<span class="stringliteral">&quot;1 to 100&quot;</span>), 0));
<span class="comment">// Execute the query</span>
<a class="code" href="classAutoRelease.html">AutoRelease&lt;DOMXPathResult&gt;</a> result(expression-&gt;evaluate(0, DOMXPathResult::ITERATOR_RESULT_TYPE, 0));
@ -40,12 +51,13 @@ XERCES_CPP_NAMESPACE_USE;
}
<span class="comment">// Terminate Xerces-C and XQilla using XQillaPlatformUtils</span>
<a name="a2"></a><a class="code" href="classXQillaPlatformUtils.html#e1">XQillaPlatformUtils::terminate</a>();
<a name="a2"></a><a class="code" href="classXQillaPlatformUtils.html#a0bd04a35d4cb26894497c6ff4d8e2105" title="Perform XQilla termination.">XQillaPlatformUtils::terminate</a>();
<span class="keywordflow">return</span> 0;
}
</pre></div> <hr size="1"><address style="align: right;"><small>Generated on Fri Sep 25 06:55:48 2009 for XQilla DOM Level 3 API by&nbsp;
</pre></div> </div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Fri Nov 13 15:00:06 2009 for XQilla DOM Level 3 API by&nbsp;
<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>
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>