v2.3.0
This commit is contained in:
parent
feed734f17
commit
824eb94695
3514 changed files with 90507 additions and 92619 deletions
|
@ -5,11 +5,10 @@
|
|||
<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.6.1 -->
|
||||
<div class="navigation" id="top">
|
||||
<div class="tabs">
|
||||
<ul>
|
||||
<li><a href="index.html"><span>Main Page</span></a></li>
|
||||
<!-- Generated by Doxygen 1.7.3 -->
|
||||
<div id="navrow1" class="tabs">
|
||||
<ul class="tablist">
|
||||
<li><a href="index.html"><span>Main 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>
|
||||
|
@ -17,13 +16,17 @@
|
|||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<h1>dom-resolver.cpp</h1> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<h1>dom-resolver.cpp</h1><p>This example shows an example of running multiple queries, using a DOMXPathNSResolver to resolve namespaces.</p>
|
||||
<p>This example shows an example of running multiple queries, using a DOMXPathNSResolver to resolve namespaces.</p>
|
||||
<div class="fragment"><pre class="fragment"><span class="comment">/*</span>
|
||||
<span class="comment"> * Copyright (c) 2001-2008</span>
|
||||
<span class="comment"> * Copyright (c) 2001, 2008,</span>
|
||||
<span class="comment"> * DecisionSoft Limited. All rights reserved.</span>
|
||||
<span class="comment"> * Copyright (c) 2004-2008</span>
|
||||
<span class="comment"> * Oracle. All rights reserved.</span>
|
||||
<span class="comment"> * Copyright (c) 2004, 2011,</span>
|
||||
<span class="comment"> * Oracle and/or its affiliates. All rights reserved.</span>
|
||||
<span class="comment"> *</span>
|
||||
<span class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</span>
|
||||
<span class="comment"> * you may not use this file except in compliance with the License.</span>
|
||||
|
@ -36,8 +39,6 @@
|
|||
<span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span>
|
||||
<span class="comment"> * See the License for the specific language governing permissions and</span>
|
||||
<span class="comment"> * limitations under the License.</span>
|
||||
<span class="comment"> *</span>
|
||||
<span class="comment"> * $Id$</span>
|
||||
<span class="comment"> */</span>
|
||||
|
||||
<span class="preprocessor">#include <iostream></span>
|
||||
|
@ -82,7 +83,7 @@ XERCES_CPP_NAMESPACE_USE;
|
|||
DOMImplementation* xqillaImplementation =
|
||||
DOMImplementationRegistry::getDOMImplementation(X(<span class="stringliteral">"XPath2 3.0"</span>));
|
||||
|
||||
<span class="comment">// 3. Obtain a parser and set 'do namespaces', 'use schema' and 'validate' to </span>
|
||||
<span class="comment">// 3. Obtain a parser and set 'do namespaces', 'use schema' and 'validate' to </span>
|
||||
<span class="comment">// true.</span>
|
||||
<span class="comment">// Create a DOMLSParser object</span>
|
||||
<a name="_a1"></a><a class="code" href="classAutoRelease.html">AutoRelease<DOMLSParser></a> parser(xqillaImplementation->createLSParser(DOMImplementationLS::MODE_SYNCHRONOUS, 0));
|
||||
|
@ -120,7 +121,7 @@ XERCES_CPP_NAMESPACE_USE;
|
|||
<a class="code" href="classAutoRelease.html">AutoRelease<DOMXPathResult></a> firstResult(parsedExpression->evaluate(document->getDocumentElement(), DOMXPathResult::FIRST_RESULT_TYPE, 0));
|
||||
|
||||
<span class="comment">// 4. Work with the result: output it to the screen in this case</span>
|
||||
cout << <span class="stringliteral">"The answer for expression '"</span> << expression << <span class="stringliteral">"' is: "</span> << firstResult->getNumberValue() << endl;
|
||||
cout << <span class="stringliteral">"The answer for expression '"</span> << expression << <span class="stringliteral">"' is: "</span> << firstResult->getNumberValue() << endl;
|
||||
}
|
||||
|
||||
<span class="comment">// **************** Example 2: output of nodes ****************** //</span>
|
||||
|
@ -141,7 +142,7 @@ XERCES_CPP_NAMESPACE_USE;
|
|||
StdOutFormatTarget target;
|
||||
output->setByteStream(&target);
|
||||
|
||||
cout << <span class="stringliteral">"The answer for expression '"</span> << expression2 << <span class="stringliteral">"' is: "</span> <<endl;
|
||||
cout << <span class="stringliteral">"The answer for expression '"</span> << expression2 << <span class="stringliteral">"' is: "</span> <<endl;
|
||||
|
||||
<span class="keywordtype">int</span> i = 0;
|
||||
<span class="keywordflow">while</span>(iteratorResult->iterateNext()) {
|
||||
|
@ -168,8 +169,9 @@ XERCES_CPP_NAMESPACE_USE;
|
|||
<span class="keywordflow">return</span> 0;
|
||||
}
|
||||
</pre></div> </div>
|
||||
<hr size="1"/><address style="text-align: right;"><small>Generated on Mon Mar 1 21:16:20 2010 for XQilla DOM Level 3 API by
|
||||
</div>
|
||||
<hr class="footer"/><address class="footer"><small>Generated on Mon Oct 31 2011 19:08:37 for XQilla DOM Level 3 API by 
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue