XQuilla/docs/simple-api/classXQilla.html
2020-02-17 22:19:08 +01:00

494 lines
27 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 Documentation</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<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>XQilla Class Reference</h1>Provides factory methods for creating <a class="el" href="classXQQuery.html">XQQuery</a> and <a class="el" href="classDynamicContext.html">DynamicContext</a> objects.
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="XQilla_8hpp-source.html">XQilla.hpp</a>&gt;</code>
<p>
Inheritance diagram for XQilla:<p><center><img src="classXQilla__inherit__graph.png" border="0" usemap="#XQilla__inherit__map" alt="Inheritance graph"></center>
<map name="XQilla__inherit__map">
<area href="classxercesc_1_1XMemory.html" shape="rect" coords="5,7,136,31" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classXQilla-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXQilla.html#w15">Flags</a> { <a class="el" href="classXQilla.html#w15w0">NO_STATIC_RESOLUTION</a> = 0x1,
<a class="el" href="classXQilla.html#w15w1">NO_ADOPT_CONTEXT</a> = 0x2,
<a class="el" href="classXQilla.html#w15w2">DEBUG_QUERY</a> = 0x4,
<a class="el" href="classXQilla.html#w15w3">NO_OPTIMIZATION</a> = 0x8
}</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Flags used by the XQilla methods. These are used by bitwise OR-ing (|) their values together. <a href="#w15">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXQilla.html#w16">Language</a> { <br>
&nbsp;&nbsp;<a class="el" href="classXQilla.html#w16w4">XQUERY</a> = 0x00,
<a class="el" href="classXQilla.html#w16w5">XPATH2</a> = 0x01,
<a class="el" href="classXQilla.html#w16w6">FULLTEXT</a> = 0x02,
<a class="el" href="classXQilla.html#w16w7">UPDATE</a> = 0x04,
<br>
&nbsp;&nbsp;<a class="el" href="classXQilla.html#w16w8">EXTENSIONS</a> = 0x08,
<a class="el" href="classXQilla.html#w16w9">XSLT2</a> = 0x10,
<a class="el" href="classXQilla.html#w16w10">XQUERY_FULLTEXT</a> = (XQUERY | FULLTEXT),
<a class="el" href="classXQilla.html#w16w11">XPATH2_FULLTEXT</a> = (XPATH2 | FULLTEXT),
<br>
&nbsp;&nbsp;<a class="el" href="classXQilla.html#w16w12">XQUERY_UPDATE</a> = (XQUERY | UPDATE),
<a class="el" href="classXQilla.html#w16w13">XQUERY_FULLTEXT_UPDATE</a> = (XQUERY | FULLTEXT | UPDATE),
<a class="el" href="classXQilla.html#w16w14">XSLT2_FULLTEXT</a> = (XSLT2 | FULLTEXT)
<br>
}</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Enumeration used to select a language to parse. <a href="#w16">More...</a><br></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXQilla.html#a0">XQilla</a> (<a class="el" href="classxercesc_1_1MemoryManager.html">xercesc::MemoryManager</a> *memMgr=0)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructs the object. <a href="#a0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXQilla.html#a1">~XQilla</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructs the object. <a href="#a1"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Parsing Methods</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classXQQuery.html">XQQuery</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXQilla.html#z1_0">parse</a> (const XMLCh *query, <a class="el" href="classDynamicContext.html">DynamicContext</a> *context=0, const XMLCh *queryFile=NULL, unsigned int flags=0, <a class="el" href="classxercesc_1_1MemoryManager.html">xercesc::MemoryManager</a> *memMgr=<a class="el" href="classxercesc_1_1XMLPlatformUtils.html#z73_4">xercesc::XMLPlatformUtils::fgMemoryManager</a>)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parse the expression contained in the given query string. <a href="#z1_0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classXQQuery.html">XQQuery</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXQilla.html#z1_1">parse</a> (const <a class="el" href="classxercesc_1_1InputSource.html">xercesc::InputSource</a> &amp;querySrc, <a class="el" href="classDynamicContext.html">DynamicContext</a> *context=0, unsigned int flags=0, <a class="el" href="classxercesc_1_1MemoryManager.html">xercesc::MemoryManager</a> *memMgr=<a class="el" href="classxercesc_1_1XMLPlatformUtils.html#z73_4">xercesc::XMLPlatformUtils::fgMemoryManager</a>)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parse the expression from the given InputSource. <a href="#z1_1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classXQQuery.html">XQQuery</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXQilla.html#z1_2">parseFromURI</a> (const XMLCh *queryFile, <a class="el" href="classDynamicContext.html">DynamicContext</a> *context=0, unsigned int flags=0, <a class="el" href="classxercesc_1_1MemoryManager.html">xercesc::MemoryManager</a> *memMgr=<a class="el" href="classxercesc_1_1XMLPlatformUtils.html#z73_4">xercesc::XMLPlatformUtils::fgMemoryManager</a>)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parse the expression residing at the given URL. <a href="#z1_2"></a><br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Factory Methods</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classDynamicContext.html">DynamicContext</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classXQilla.html#z3_0">createContext</a> (<a class="el" href="classXQilla.html#w16">Language</a> language=XQUERY, <a class="el" href="classXQillaConfiguration.html">XQillaConfiguration</a> *conf=0, <a class="el" href="classxercesc_1_1MemoryManager.html">xercesc::MemoryManager</a> *memMgr=<a class="el" href="classxercesc_1_1XMLPlatformUtils.html#z73_4">xercesc::XMLPlatformUtils::fgMemoryManager</a>)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a context suitable for parsing an expression with. <a href="#z3_0"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Provides factory methods for creating <a class="el" href="classXQQuery.html">XQQuery</a> and <a class="el" href="classDynamicContext.html">DynamicContext</a> objects.
<p>
This class calls XQillaPlatformUtils::initialize() when it is constructed, and XQillaPlatformUtils::terminate() when it destructs, so there is no need to seperately initialize or terminate either Xerces or XQilla. <dl compact><dt><b>Examples: </b></dt><dd>
<p>
<a class="el" href="simple-basic_8cpp-example.html#_a0">simple-basic.cpp</a>, and <a class="el" href="simple-context-item_8cpp-example.html#_a5">simple-context-item.cpp</a>.</dl>
<p>
<hr><h2>Member Enumeration Documentation</h2>
<a class="anchor" name="w15" doxytag="XQilla::Flags"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">enum <a class="el" href="classXQilla.html#w15">XQilla::Flags</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Flags used by the XQilla methods. These are used by bitwise OR-ing (|) their values together.
<p>
<dl compact><dt><b>Enumeration values: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="w15w0" doxytag="NO_STATIC_RESOLUTION"></a>NO_STATIC_RESOLUTION</em>&nbsp;</td><td>
Don't perform static resolution or any optimization. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="w15w1" doxytag="NO_ADOPT_CONTEXT"></a>NO_ADOPT_CONTEXT</em>&nbsp;</td><td>
Don't adopt the context and delete it when the <a class="el" href="classXQQuery.html">XQQuery</a> is deleted. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="w15w2" doxytag="DEBUG_QUERY"></a>DEBUG_QUERY</em>&nbsp;</td><td>
Build debugging hooks into the query to enable the use of <a class="el" href="classDebugListener.html">DebugListener</a>. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="w15w3" doxytag="NO_OPTIMIZATION"></a>NO_OPTIMIZATION</em>&nbsp;</td><td>
Don't perform optimization. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="w16" doxytag="XQilla::Language"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">enum <a class="el" href="classXQilla.html#w16">XQilla::Language</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Enumeration used to select a language to parse.
<p>
<dl compact><dt><b>Enumeration values: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="w16w4" doxytag="XQUERY"></a>XQUERY</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="w16w5" doxytag="XPATH2"></a>XPATH2</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="w16w6" doxytag="FULLTEXT"></a>FULLTEXT</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="w16w7" doxytag="UPDATE"></a>UPDATE</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="w16w8" doxytag="EXTENSIONS"></a>EXTENSIONS</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="w16w9" doxytag="XSLT2"></a>XSLT2</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="w16w10" doxytag="XQUERY_FULLTEXT"></a>XQUERY_FULLTEXT</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="w16w11" doxytag="XPATH2_FULLTEXT"></a>XPATH2_FULLTEXT</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="w16w12" doxytag="XQUERY_UPDATE"></a>XQUERY_UPDATE</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="w16w13" doxytag="XQUERY_FULLTEXT_UPDATE"></a>XQUERY_FULLTEXT_UPDATE</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="w16w14" doxytag="XSLT2_FULLTEXT"></a>XSLT2_FULLTEXT</em>&nbsp;</td><td>
</td></tr>
</table>
</dl>
</td>
</tr>
</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="a0" doxytag="XQilla::XQilla"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">XQilla::XQilla </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="classxercesc_1_1MemoryManager.html">xercesc::MemoryManager</a> *&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>memMgr</em> = <code>0</code> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Constructs the object.
<p>
In the process, XQillaPlatformUtils::initialize() is called to initialize XQilla and Xerces.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>memMgr</em>&nbsp;</td><td>If provided, this is the MemoryManager used to initialize Xerces. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="a1" doxytag="XQilla::~XQilla"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">XQilla::~<a class="el" href="classXQilla.html">XQilla</a> </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Destructs the object.
<p>
In the process, XQillaPlatformUtils::terminate() is called to terminate XQilla and Xerces. </td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="z3_0" doxytag="XQilla::createContext"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classDynamicContext.html">DynamicContext</a>* XQilla::createContext </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="classXQilla.html#w16">Language</a>&nbsp;</td>
<td class="mdname" nowrap> <em>language</em> = <code>XQUERY</code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap><a class="el" href="classXQillaConfiguration.html">XQillaConfiguration</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>conf</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap><a class="el" href="classxercesc_1_1MemoryManager.html">xercesc::MemoryManager</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>memMgr</em> = <code><a class="el" href="classxercesc_1_1XMLPlatformUtils.html#z73_4">xercesc::XMLPlatformUtils::fgMemoryManager</a></code></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Creates a context suitable for parsing an expression with.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>memMgr</em>&nbsp;</td><td>The memory manager used to create the <a class="el" href="classDynamicContext.html">DynamicContext</a>. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>An implementation of <a class="el" href="classDynamicContext.html">DynamicContext</a> </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="z1_1" doxytag="XQilla::parse"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classXQQuery.html">XQQuery</a>* XQilla::parse </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">const <a class="el" href="classxercesc_1_1InputSource.html">xercesc::InputSource</a> &amp;&nbsp;</td>
<td class="mdname" nowrap> <em>querySrc</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap><a class="el" href="classDynamicContext.html">DynamicContext</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>context</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>unsigned int&nbsp;</td>
<td class="mdname" nowrap> <em>flags</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap><a class="el" href="classxercesc_1_1MemoryManager.html">xercesc::MemoryManager</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>memMgr</em> = <code><a class="el" href="classxercesc_1_1XMLPlatformUtils.html#z73_4">xercesc::XMLPlatformUtils::fgMemoryManager</a></code></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Parse the expression from the given InputSource.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>querySrc</em>&nbsp;</td><td>An InputSource which the expression will be parsed from. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>If specified, the context to use for parsing this expression. A default context is used if this parameter is 0. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>flags</em>&nbsp;</td><td>A bitwise OR of the Flags constants, that control aspects of how the <a class="el" href="classXQQuery.html">XQQuery</a> object is created. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>memMgr</em>&nbsp;</td><td>If specified, the memory manager used to create the <a class="el" href="classXQQuery.html">XQQuery</a> object.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The object that represents the parsed expression.</dd></dl>
<dl compact><dt><b>Exceptions:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>XQException</em>&nbsp;</td><td>If a parse error occurs. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="z1_0" doxytag="XQilla::parse"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classXQQuery.html">XQQuery</a>* XQilla::parse </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">const XMLCh *&nbsp;</td>
<td class="mdname" nowrap> <em>query</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap><a class="el" href="classDynamicContext.html">DynamicContext</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>context</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>const XMLCh *&nbsp;</td>
<td class="mdname" nowrap> <em>queryFile</em> = <code>NULL</code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>unsigned int&nbsp;</td>
<td class="mdname" nowrap> <em>flags</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap><a class="el" href="classxercesc_1_1MemoryManager.html">xercesc::MemoryManager</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>memMgr</em> = <code><a class="el" href="classxercesc_1_1XMLPlatformUtils.html#z73_4">xercesc::XMLPlatformUtils::fgMemoryManager</a></code></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Parse the expression contained in the given query string.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>query</em>&nbsp;</td><td>A string containing the expression to parse. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>If specified, the context to use for parsing this expression. A default context is used if this parameter is 0. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>queryFile</em>&nbsp;</td><td>The name of the file that query originates in. This is passed back to the user in an <a class="el" href="classXQException.html">XQException</a> if an error occurs. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>flags</em>&nbsp;</td><td>A bitwise OR of the Flags constants, that control aspects of how the <a class="el" href="classXQQuery.html">XQQuery</a> object is created. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>memMgr</em>&nbsp;</td><td>If specified, the memory manager used to create the <a class="el" href="classXQQuery.html">XQQuery</a> object.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The object that represents the parsed expression.</dd></dl>
<dl compact><dt><b>Exceptions:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>XQException</em>&nbsp;</td><td>If a parse error occurs. </td></tr>
</table>
</dl>
<dl compact><dt><b>Examples: </b></dt><dd>
<a class="el" href="simple-basic_8cpp-example.html#a2">simple-basic.cpp</a>, and <a class="el" href="simple-context-item_8cpp-example.html#a7">simple-context-item.cpp</a>.</dl> </td>
</tr>
</table>
<a class="anchor" name="z1_2" doxytag="XQilla::parseFromURI"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classXQQuery.html">XQQuery</a>* XQilla::parseFromURI </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">const XMLCh *&nbsp;</td>
<td class="mdname" nowrap> <em>queryFile</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap><a class="el" href="classDynamicContext.html">DynamicContext</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>context</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>unsigned int&nbsp;</td>
<td class="mdname" nowrap> <em>flags</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap><a class="el" href="classxercesc_1_1MemoryManager.html">xercesc::MemoryManager</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>memMgr</em> = <code><a class="el" href="classxercesc_1_1XMLPlatformUtils.html#z73_4">xercesc::XMLPlatformUtils::fgMemoryManager</a></code></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Parse the expression residing at the given URL.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>queryFile</em>&nbsp;</td><td>The URL of the expression to parse. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>If specified, the context to use for parsing this expression. A default context is used if this parameter is 0. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>flags</em>&nbsp;</td><td>A bitwise OR of the Flags constants, that control aspects of how the <a class="el" href="classXQQuery.html">XQQuery</a> object is created. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>memMgr</em>&nbsp;</td><td>If specified, the memory manager used to create the <a class="el" href="classXQQuery.html">XQQuery</a> object.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The object that represents the parsed expression.</dd></dl>
<dl compact><dt><b>Exceptions:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>XQException</em>&nbsp;</td><td>If a parse error occurs. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="XQilla_8hpp-source.html">XQilla.hpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Fri Sep 25 06:55:42 2009 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.3.9.1 </small></address>
</body>
</html>