v2.3.1
This commit is contained in:
parent
824eb94695
commit
7c49d5c548
3294 changed files with 46105 additions and 39662 deletions
|
@ -5,10 +5,11 @@
|
|||
<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.7.3 -->
|
||||
<div id="navrow1" class="tabs">
|
||||
<ul class="tablist">
|
||||
<li><a href="index.html"><span>Main Page</span></a></li>
|
||||
<!-- 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>
|
||||
<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>
|
||||
|
@ -16,17 +17,13 @@
|
|||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<h1>dom-resolver.cpp</h1> </div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<p>This example shows an example of running multiple queries, using a DOMXPathNSResolver to resolve namespaces.</p>
|
||||
<h1>dom-resolver.cpp</h1><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"> * DecisionSoft Limited. 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"> * Copyright (c) 2004, 2015 Oracle and/or its affiliates. All rights reserved.</span>
|
||||
<span class="comment"> * </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>
|
||||
|
@ -83,7 +80,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));
|
||||
|
@ -121,7 +118,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>
|
||||
|
@ -142,7 +139,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()) {
|
||||
|
@ -169,9 +166,8 @@ XERCES_CPP_NAMESPACE_USE;
|
|||
<span class="keywordflow">return</span> 0;
|
||||
}
|
||||
</pre></div> </div>
|
||||
</div>
|
||||
<hr class="footer"/><address class="footer"><small>Generated on Mon Oct 31 2011 19:08:37 for XQilla DOM Level 3 API by 
|
||||
<hr size="1"/><address style="text-align: right;"><small>Generated on 18 May 2015 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.7.3 </small></address>
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue