XQuilla/docs/xqc-api/structXQC__Sequence__s.html
2020-02-17 22:17:06 +01:00

333 lines
28 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 XQC 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.5.5 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li class="current"><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 class="tabs">
<ul>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>XQC_Sequence_s Struct Reference</h1><!-- doxytag: class="XQC_Sequence_s" --><code>#include &lt;<a class="el" href="xqc_8h-source.html">xqc.h</a>&gt;</code>
<p>
<p>
<a href="structXQC__Sequence__s-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 Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="xqc_8h.html#eb1ad206e9c38a7f84749cafe04d7a3f">XQC_Error</a>(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__Sequence__s.html#b84594b06f7e69fd870c41f55ae5c6c6">next</a> )(<a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Moves the XQC_Sequence so that the current item is positioned at the next item in the sequence. <a href="#b84594b06f7e69fd870c41f55ae5c6c6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void *(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__Sequence__s.html#280dfbbc70dade39905f4b91ed22aa19">get_interface</a> )(const <a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence, const char *name)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Called to retrieve an implementation specific interface. <a href="#280dfbbc70dade39905f4b91ed22aa19"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__Sequence__s.html#13ab651edb4e0754cb8a032e2bce50b0">free</a> )(<a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Called to free the resources associated with the XQC_Sequence. <a href="#13ab651edb4e0754cb8a032e2bce50b0"></a><br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Functions on the current item</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="xqc_8h.html#eb1ad206e9c38a7f84749cafe04d7a3f">XQC_Error</a>(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__Sequence__s.html#09c64cc1a094a915541b0d4864f8ecf9">item_type</a> )(const <a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence, <a class="el" href="xqc_8h.html#72a7afe388d8dbc3578d5d1eb4e76cde">XQC_ItemType</a> *type)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns an item type enumeration for the type of the current item. <a href="#09c64cc1a094a915541b0d4864f8ecf9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="xqc_8h.html#eb1ad206e9c38a7f84749cafe04d7a3f">XQC_Error</a>(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__Sequence__s.html#0ced435e02516a489e3a892abd1c2764">type_name</a> )(const <a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence, const char **uri, const char **name)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the type name for the current item as a (URI, localname) pair. <a href="#0ced435e02516a489e3a892abd1c2764"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="xqc_8h.html#eb1ad206e9c38a7f84749cafe04d7a3f">XQC_Error</a>(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__Sequence__s.html#3bd3b6dab0c68652af816438407dd037">string_value</a> )(const <a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence, const char **value)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the string value of the current item in the sequence - this is equivalent to calling <code>fn:string()</code> (<a href="http://www.w3.org/TR/xpath-functions/#func-string">http://www.w3.org/TR/xpath-functions/#func-string</a>) on the current item. <a href="#3bd3b6dab0c68652af816438407dd037"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="xqc_8h.html#eb1ad206e9c38a7f84749cafe04d7a3f">XQC_Error</a>(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__Sequence__s.html#c6f7f32f3d54ba30c043bea37e3b5fef">integer_value</a> )(const <a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence, int *value)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the value of the current item in the sequence as an integer - this is equivalent to calling <code>fn:number()</code> (<a href="http://www.w3.org/TR/xpath-functions/#func-number">http://www.w3.org/TR/xpath-functions/#func-number</a>) on the current item, and casting the result to an int. <a href="#c6f7f32f3d54ba30c043bea37e3b5fef"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="xqc_8h.html#eb1ad206e9c38a7f84749cafe04d7a3f">XQC_Error</a>(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__Sequence__s.html#b131f251ca020ce202e31b3bf9ff9369">double_value</a> )(const <a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence, double *value)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the value of the current item in the sequence as a double - this is equivalent to calling <code>fn:number()</code> (<a href="http://www.w3.org/TR/xpath-functions/#func-number">http://www.w3.org/TR/xpath-functions/#func-number</a>) on the current item. <a href="#b131f251ca020ce202e31b3bf9ff9369"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="xqc_8h.html#eb1ad206e9c38a7f84749cafe04d7a3f">XQC_Error</a>(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__Sequence__s.html#755d353442dd2cc25906bb0152ef8fe1">node_name</a> )(const <a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence, const char **uri, const char **name)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the name for the current node as a (URI, localname) pair. <a href="#755d353442dd2cc25906bb0152ef8fe1"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<dl compact><dt><b>Examples: </b></dt><dd>
<p>
<a class="el" href="xqc-basic_8c-example.html#_a2">xqc-basic.c</a>, and <a class="el" href="xqc-context-item_8c-example.html#_a3">xqc-context-item.c</a>.</dl><hr><h2>Member Data Documentation</h2>
<a class="anchor" name="b84594b06f7e69fd870c41f55ae5c6c6"></a><!-- doxytag: member="XQC_Sequence_s::next" ref="b84594b06f7e69fd870c41f55ae5c6c6" args=")(XQC_Sequence *sequence)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="xqc_8h.html#eb1ad206e9c38a7f84749cafe04d7a3f">XQC_Error</a>(* <a class="el" href="structXQC__Sequence__s.html#b84594b06f7e69fd870c41f55ae5c6c6">XQC_Sequence_s::next</a>)(<a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence) </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Moves the XQC_Sequence so that the current item is positioned at the next item in the sequence.
<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>sequence</em>&nbsp;</td><td>The XQC_Sequence that this function pointer is a member of</td></tr>
</table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="xqc_8h.html#eb1ad206e9c38a7f84749cafe04d7a3f975a11c6557d4d849e48f4034380a375" title="No error.">XQC_NO_ERROR</a></em>&nbsp;</td><td>when the call is successful </td></tr>
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="xqc_8h.html#eb1ad206e9c38a7f84749cafe04d7a3fdfd1d8eea45c90655b98cfd728bfee2e" title="The end of the XQC_Sequence has been reached.">XQC_END_OF_SEQUENCE</a></em>&nbsp;</td><td>when the end of the sequence is reached </td></tr>
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="xqc_8h.html#eb1ad206e9c38a7f84749cafe04d7a3feb68302bd3ceab3cb9d9473afd06248a" title="A type error has occured while preparing or executing the query.">XQC_TYPE_ERROR</a></em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="xqc_8h.html#eb1ad206e9c38a7f84749cafe04d7a3f1ece0ad69a59c3f0ce59b841ded10f9d" title="A dynamic error has occured while preparing or executing the query.">XQC_DYNAMIC_ERROR</a></em>&nbsp;</td><td></td></tr>
</table>
</dl>
<dl compact><dt><b>Examples: </b></dt><dd>
<a class="el" href="xqc-basic_8c-example.html#a7">xqc-basic.c</a>, and <a class="el" href="xqc-context-item_8c-example.html#a9">xqc-context-item.c</a>.</dl>
</div>
</div><p>
<a class="anchor" name="09c64cc1a094a915541b0d4864f8ecf9"></a><!-- doxytag: member="XQC_Sequence_s::item_type" ref="09c64cc1a094a915541b0d4864f8ecf9" args=")(const XQC_Sequence *sequence, XQC_ItemType *type)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="xqc_8h.html#eb1ad206e9c38a7f84749cafe04d7a3f">XQC_Error</a>(* <a class="el" href="structXQC__Sequence__s.html#09c64cc1a094a915541b0d4864f8ecf9">XQC_Sequence_s::item_type</a>)(const <a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence, <a class="el" href="xqc_8h.html#72a7afe388d8dbc3578d5d1eb4e76cde">XQC_ItemType</a> *type) </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns an item type enumeration for the type of the current item.
<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>sequence</em>&nbsp;</td><td>The XQC_Sequence that this function pointer is a member of </td></tr>
<tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>type</em>&nbsp;</td><td>the XQC_ItemType of the current item</td></tr>
</table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="xqc_8h.html#eb1ad206e9c38a7f84749cafe04d7a3f975a11c6557d4d849e48f4034380a375" title="No error.">XQC_NO_ERROR</a></em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="xqc_8h.html#eb1ad206e9c38a7f84749cafe04d7a3f8e49ef7f25ae9121a0b59bc4cd050f5b">XQC_NO_CURRENT_ITEM</a></em>&nbsp;</td><td>if there is no current item, either because <a class="el" href="structXQC__Sequence__s.html#b84594b06f7e69fd870c41f55ae5c6c6" title="Moves the XQC_Sequence so that the current item is positioned at the next item in...">next()</a> has not been called yet, or because the end of the sequence has been reached. </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="0ced435e02516a489e3a892abd1c2764"></a><!-- doxytag: member="XQC_Sequence_s::type_name" ref="0ced435e02516a489e3a892abd1c2764" args=")(const XQC_Sequence *sequence, const char **uri, const char **name)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="xqc_8h.html#eb1ad206e9c38a7f84749cafe04d7a3f">XQC_Error</a>(* <a class="el" href="structXQC__Sequence__s.html#0ced435e02516a489e3a892abd1c2764">XQC_Sequence_s::type_name</a>)(const <a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence, const char **uri, const char **name) </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the type name for the current item as a (URI, localname) pair.
<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>sequence</em>&nbsp;</td><td>The XQC_Sequence that this function pointer is a member of </td></tr>
<tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>uri</em>&nbsp;</td><td>The URI of the type of the current item. The memory for the string will be valid until a subsequent call to <a class="el" href="structXQC__Sequence__s.html#b84594b06f7e69fd870c41f55ae5c6c6" title="Moves the XQC_Sequence so that the current item is positioned at the next item in...">XQC_Sequence::next()</a>. </td></tr>
<tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>name</em>&nbsp;</td><td>The localname of the type of the current item. The memory for the string will be valid until a subsequent call to <a class="el" href="structXQC__Sequence__s.html#b84594b06f7e69fd870c41f55ae5c6c6" title="Moves the XQC_Sequence so that the current item is positioned at the next item in...">XQC_Sequence::next()</a>.</td></tr>
</table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="xqc_8h.html#eb1ad206e9c38a7f84749cafe04d7a3f975a11c6557d4d849e48f4034380a375" title="No error.">XQC_NO_ERROR</a></em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="xqc_8h.html#eb1ad206e9c38a7f84749cafe04d7a3f8e49ef7f25ae9121a0b59bc4cd050f5b">XQC_NO_CURRENT_ITEM</a></em>&nbsp;</td><td>if there is no current item, either because <a class="el" href="structXQC__Sequence__s.html#b84594b06f7e69fd870c41f55ae5c6c6" title="Moves the XQC_Sequence so that the current item is positioned at the next item in...">next()</a> has not been called yet, or because the end of the sequence has been reached. </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="3bd3b6dab0c68652af816438407dd037"></a><!-- doxytag: member="XQC_Sequence_s::string_value" ref="3bd3b6dab0c68652af816438407dd037" args=")(const XQC_Sequence *sequence, const char **value)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="xqc_8h.html#eb1ad206e9c38a7f84749cafe04d7a3f">XQC_Error</a>(* <a class="el" href="structXQC__Sequence__s.html#3bd3b6dab0c68652af816438407dd037">XQC_Sequence_s::string_value</a>)(const <a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence, const char **value) </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the string value of the current item in the sequence - this is equivalent to calling <code>fn:string()</code> (<a href="http://www.w3.org/TR/xpath-functions/#func-string">http://www.w3.org/TR/xpath-functions/#func-string</a>) on the current item.
<p>
This is available for all item types.<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>sequence</em>&nbsp;</td><td>The XQC_Sequence that this function pointer is a member of </td></tr>
<tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>value</em>&nbsp;</td><td>The string value of the current item. The memory for the string will be valid until a subsequent call to <a class="el" href="structXQC__Sequence__s.html#b84594b06f7e69fd870c41f55ae5c6c6" title="Moves the XQC_Sequence so that the current item is positioned at the next item in...">XQC_Sequence::next()</a>.</td></tr>
</table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="xqc_8h.html#eb1ad206e9c38a7f84749cafe04d7a3f975a11c6557d4d849e48f4034380a375" title="No error.">XQC_NO_ERROR</a></em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="xqc_8h.html#eb1ad206e9c38a7f84749cafe04d7a3f8e49ef7f25ae9121a0b59bc4cd050f5b">XQC_NO_CURRENT_ITEM</a></em>&nbsp;</td><td>if there is no current item, either because <a class="el" href="structXQC__Sequence__s.html#b84594b06f7e69fd870c41f55ae5c6c6" title="Moves the XQC_Sequence so that the current item is positioned at the next item in...">next()</a> has not been called yet, or because the end of the sequence has been reached. </td></tr>
</table>
</dl>
<dl compact><dt><b>Examples: </b></dt><dd>
<a class="el" href="xqc-basic_8c-example.html#a9">xqc-basic.c</a>, and <a class="el" href="xqc-context-item_8c-example.html#a13">xqc-context-item.c</a>.</dl>
</div>
</div><p>
<a class="anchor" name="c6f7f32f3d54ba30c043bea37e3b5fef"></a><!-- doxytag: member="XQC_Sequence_s::integer_value" ref="c6f7f32f3d54ba30c043bea37e3b5fef" args=")(const XQC_Sequence *sequence, int *value)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="xqc_8h.html#eb1ad206e9c38a7f84749cafe04d7a3f">XQC_Error</a>(* <a class="el" href="structXQC__Sequence__s.html#c6f7f32f3d54ba30c043bea37e3b5fef">XQC_Sequence_s::integer_value</a>)(const <a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence, int *value) </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the value of the current item in the sequence as an integer - this is equivalent to calling <code>fn:number()</code> (<a href="http://www.w3.org/TR/xpath-functions/#func-number">http://www.w3.org/TR/xpath-functions/#func-number</a>) on the current item, and casting the result to an int.
<p>
This is available for all item types.<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>sequence</em>&nbsp;</td><td>The XQC_Sequence that this function pointer is a member of </td></tr>
<tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>value</em>&nbsp;</td><td>The value of the current item as an int.</td></tr>
</table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="xqc_8h.html#eb1ad206e9c38a7f84749cafe04d7a3f975a11c6557d4d849e48f4034380a375" title="No error.">XQC_NO_ERROR</a></em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="xqc_8h.html#eb1ad206e9c38a7f84749cafe04d7a3f8e49ef7f25ae9121a0b59bc4cd050f5b">XQC_NO_CURRENT_ITEM</a></em>&nbsp;</td><td>if there is no current item, either because <a class="el" href="structXQC__Sequence__s.html#b84594b06f7e69fd870c41f55ae5c6c6" title="Moves the XQC_Sequence so that the current item is positioned at the next item in...">next()</a> has not been called yet, or because the end of the sequence has been reached. </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="b131f251ca020ce202e31b3bf9ff9369"></a><!-- doxytag: member="XQC_Sequence_s::double_value" ref="b131f251ca020ce202e31b3bf9ff9369" args=")(const XQC_Sequence *sequence, double *value)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="xqc_8h.html#eb1ad206e9c38a7f84749cafe04d7a3f">XQC_Error</a>(* <a class="el" href="structXQC__Sequence__s.html#b131f251ca020ce202e31b3bf9ff9369">XQC_Sequence_s::double_value</a>)(const <a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence, double *value) </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the value of the current item in the sequence as a double - this is equivalent to calling <code>fn:number()</code> (<a href="http://www.w3.org/TR/xpath-functions/#func-number">http://www.w3.org/TR/xpath-functions/#func-number</a>) on the current item.
<p>
This is available for all item types.<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>sequence</em>&nbsp;</td><td>The XQC_Sequence that this function pointer is a member of </td></tr>
<tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>value</em>&nbsp;</td><td>The value of the current item as a double.</td></tr>
</table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="xqc_8h.html#eb1ad206e9c38a7f84749cafe04d7a3f975a11c6557d4d849e48f4034380a375" title="No error.">XQC_NO_ERROR</a></em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="xqc_8h.html#eb1ad206e9c38a7f84749cafe04d7a3f8e49ef7f25ae9121a0b59bc4cd050f5b">XQC_NO_CURRENT_ITEM</a></em>&nbsp;</td><td>if there is no current item, either because <a class="el" href="structXQC__Sequence__s.html#b84594b06f7e69fd870c41f55ae5c6c6" title="Moves the XQC_Sequence so that the current item is positioned at the next item in...">next()</a> has not been called yet, or because the end of the sequence has been reached. </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="755d353442dd2cc25906bb0152ef8fe1"></a><!-- doxytag: member="XQC_Sequence_s::node_name" ref="755d353442dd2cc25906bb0152ef8fe1" args=")(const XQC_Sequence *sequence, const char **uri, const char **name)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="xqc_8h.html#eb1ad206e9c38a7f84749cafe04d7a3f">XQC_Error</a>(* <a class="el" href="structXQC__Sequence__s.html#755d353442dd2cc25906bb0152ef8fe1">XQC_Sequence_s::node_name</a>)(const <a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence, const char **uri, const char **name) </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the name for the current node as a (URI, localname) pair.
<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>sequence</em>&nbsp;</td><td>The XQC_Sequence that this function pointer is a member of </td></tr>
<tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>uri</em>&nbsp;</td><td>The URI of the name of the current node. The memory for the string will be valid until a subsequent call to <a class="el" href="structXQC__Sequence__s.html#b84594b06f7e69fd870c41f55ae5c6c6" title="Moves the XQC_Sequence so that the current item is positioned at the next item in...">XQC_Sequence::next()</a>. </td></tr>
<tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>name</em>&nbsp;</td><td>The localname of the name of the current node. The memory for the string will be valid until a subsequent call to <a class="el" href="structXQC__Sequence__s.html#b84594b06f7e69fd870c41f55ae5c6c6" title="Moves the XQC_Sequence so that the current item is positioned at the next item in...">XQC_Sequence::next()</a>.</td></tr>
</table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="xqc_8h.html#eb1ad206e9c38a7f84749cafe04d7a3f975a11c6557d4d849e48f4034380a375" title="No error.">XQC_NO_ERROR</a></em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="xqc_8h.html#eb1ad206e9c38a7f84749cafe04d7a3f8e49ef7f25ae9121a0b59bc4cd050f5b">XQC_NO_CURRENT_ITEM</a></em>&nbsp;</td><td>if there is no current item, either because <a class="el" href="structXQC__Sequence__s.html#b84594b06f7e69fd870c41f55ae5c6c6" title="Moves the XQC_Sequence so that the current item is positioned at the next item in...">next()</a> has not been called yet, or because the end of the sequence has been reached. </td></tr>
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="xqc_8h.html#eb1ad206e9c38a7f84749cafe04d7a3f42003308041f1f0db1d2028af432de95">XQC_NOT_NODE</a></em>&nbsp;</td><td>if the current item is not a node. </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="280dfbbc70dade39905f4b91ed22aa19"></a><!-- doxytag: member="XQC_Sequence_s::get_interface" ref="280dfbbc70dade39905f4b91ed22aa19" args=")(const XQC_Sequence *sequence, const char *name)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void*(* <a class="el" href="structXQC__Sequence__s.html#280dfbbc70dade39905f4b91ed22aa19">XQC_Sequence_s::get_interface</a>)(const <a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence, const char *name) </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Called to retrieve an implementation specific interface.
<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>sequence</em>&nbsp;</td><td>The XQC_Sequence that this function pointer is a member of </td></tr>
<tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>The name that identifies the interface to return</td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A pointer to the interface, or 0 if the name is not recognized by this implementation of XQC. </dd></dl>
</div>
</div><p>
<a class="anchor" name="13ab651edb4e0754cb8a032e2bce50b0"></a><!-- doxytag: member="XQC_Sequence_s::free" ref="13ab651edb4e0754cb8a032e2bce50b0" args=")(XQC_Sequence *sequence)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void(* <a class="el" href="structXQC__Sequence__s.html#13ab651edb4e0754cb8a032e2bce50b0">XQC_Sequence_s::free</a>)(<a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence) </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Called to free the resources associated with the XQC_Sequence.
<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>sequence</em>&nbsp;</td><td>The XQC_Sequence that this function pointer is a member of </td></tr>
</table>
</dl>
<dl compact><dt><b>Examples: </b></dt><dd>
<a class="el" href="xqc-basic_8c-example.html#a11">xqc-basic.c</a>, and <a class="el" href="xqc-context-item_8c-example.html#a15">xqc-context-item.c</a>.</dl>
</div>
</div><p>
<hr>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="xqc_8h-source.html">xqc.h</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jan 5 19:54:59 2009 for XQilla XQC API by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
</body>
</html>