1*7c568831SAndroid Build Coastguard Worker<html> 2*7c568831SAndroid Build Coastguard Worker<head> 3*7c568831SAndroid Build Coastguard Worker<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4*7c568831SAndroid Build Coastguard Worker<title>xpath: XML Path Language implementation</title> 5*7c568831SAndroid Build Coastguard Worker<meta name="generator" content="Libxml2 devhelp stylesheet"> 6*7c568831SAndroid Build Coastguard Worker<link rel="start" href="index.html" title="libxml2 Reference Manual"> 7*7c568831SAndroid Build Coastguard Worker<link rel="up" href="general.html" title="API"> 8*7c568831SAndroid Build Coastguard Worker<link rel="stylesheet" href="style.css" type="text/css"> 9*7c568831SAndroid Build Coastguard Worker<link rel="chapter" href="general.html" title="API"> 10*7c568831SAndroid Build Coastguard Worker</head> 11*7c568831SAndroid Build Coastguard Worker<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> 12*7c568831SAndroid Build Coastguard Worker<table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"> 13*7c568831SAndroid Build Coastguard Worker<td><a accesskey="p" href="libxml2-xmlwriter.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> 14*7c568831SAndroid Build Coastguard Worker<td><a accesskey="u" href="general.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td> 15*7c568831SAndroid Build Coastguard Worker<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> 16*7c568831SAndroid Build Coastguard Worker<td><a accesskey="n" href="libxml2-xpathInternals.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> 17*7c568831SAndroid Build Coastguard Worker<th width="100%" align="center">libxml2 Reference Manual</th> 18*7c568831SAndroid Build Coastguard Worker</tr></table> 19*7c568831SAndroid Build Coastguard Worker<h2><span class="refentrytitle">xpath</span></h2> 20*7c568831SAndroid Build Coastguard Worker<p>xpath - XML Path Language implementation</p> 21*7c568831SAndroid Build Coastguard Worker<p>API for the XML Path Language implementation XML Path Language implementation XPath is a language for addressing parts of an XML document, designed to be used by both XSLT and XPointer</p> 22*7c568831SAndroid Build Coastguard Worker<p>Author(s): Daniel Veillard </p> 23*7c568831SAndroid Build Coastguard Worker<div class="refsynopsisdiv"> 24*7c568831SAndroid Build Coastguard Worker<h2>Synopsis</h2> 25*7c568831SAndroid Build Coastguard Worker<pre class="synopsis">#define <a href="#XML_XPATH_CHECKNS">XML_XPATH_CHECKNS</a>; 26*7c568831SAndroid Build Coastguard Worker#define <a href="#XML_XPATH_NOVAR">XML_XPATH_NOVAR</a>; 27*7c568831SAndroid Build Coastguard Worker#define <a href="#xmlXPathNodeSetGetLength">xmlXPathNodeSetGetLength</a>(ns); 28*7c568831SAndroid Build Coastguard Worker#define <a href="#xmlXPathNodeSetIsEmpty">xmlXPathNodeSetIsEmpty</a>(ns); 29*7c568831SAndroid Build Coastguard Worker#define <a href="#xmlXPathNodeSetItem">xmlXPathNodeSetItem</a>(ns, index); 30*7c568831SAndroid Build Coastguard Workertypedef struct _xmlNodeSet <a href="#xmlNodeSet">xmlNodeSet</a>; 31*7c568831SAndroid Build Coastguard Workertypedef <a href="libxml2-xpath.html#xmlNodeSet">xmlNodeSet</a> * <a href="#xmlNodeSetPtr">xmlNodeSetPtr</a>; 32*7c568831SAndroid Build Coastguard Workertypedef struct _xmlXPathAxis <a href="#xmlXPathAxis">xmlXPathAxis</a>; 33*7c568831SAndroid Build Coastguard Workertypedef <a href="libxml2-xpath.html#xmlXPathAxis">xmlXPathAxis</a> * <a href="#xmlXPathAxisPtr">xmlXPathAxisPtr</a>; 34*7c568831SAndroid Build Coastguard Workertypedef struct _xmlXPathCompExpr <a href="#xmlXPathCompExpr">xmlXPathCompExpr</a>; 35*7c568831SAndroid Build Coastguard Workertypedef <a href="libxml2-xpath.html#xmlXPathCompExpr">xmlXPathCompExpr</a> * <a href="#xmlXPathCompExprPtr">xmlXPathCompExprPtr</a>; 36*7c568831SAndroid Build Coastguard Workertypedef struct _xmlXPathContext <a href="#xmlXPathContext">xmlXPathContext</a>; 37*7c568831SAndroid Build Coastguard Workertypedef <a href="libxml2-xpath.html#xmlXPathContext">xmlXPathContext</a> * <a href="#xmlXPathContextPtr">xmlXPathContextPtr</a>; 38*7c568831SAndroid Build Coastguard Workertypedef enum <a href="#xmlXPathError">xmlXPathError</a>; 39*7c568831SAndroid Build Coastguard Workertypedef <a href="libxml2-xpath.html#xmlXPathFunct">xmlXPathFunct</a> * <a href="#xmlXPathFuncPtr">xmlXPathFuncPtr</a>; 40*7c568831SAndroid Build Coastguard Workertypedef struct _xmlXPathFunct <a href="#xmlXPathFunct">xmlXPathFunct</a>; 41*7c568831SAndroid Build Coastguard Workertypedef struct _xmlXPathObject <a href="#xmlXPathObject">xmlXPathObject</a>; 42*7c568831SAndroid Build Coastguard Workertypedef <a href="libxml2-xpath.html#xmlXPathObject">xmlXPathObject</a> * <a href="#xmlXPathObjectPtr">xmlXPathObjectPtr</a>; 43*7c568831SAndroid Build Coastguard Workertypedef enum <a href="#xmlXPathObjectType">xmlXPathObjectType</a>; 44*7c568831SAndroid Build Coastguard Workertypedef struct _xmlXPathParserContext <a href="#xmlXPathParserContext">xmlXPathParserContext</a>; 45*7c568831SAndroid Build Coastguard Workertypedef <a href="libxml2-xpath.html#xmlXPathParserContext">xmlXPathParserContext</a> * <a href="#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a>; 46*7c568831SAndroid Build Coastguard Workertypedef struct _xmlXPathType <a href="#xmlXPathType">xmlXPathType</a>; 47*7c568831SAndroid Build Coastguard Workertypedef <a href="libxml2-xpath.html#xmlXPathType">xmlXPathType</a> * <a href="#xmlXPathTypePtr">xmlXPathTypePtr</a>; 48*7c568831SAndroid Build Coastguard Workertypedef struct _xmlXPathVariable <a href="#xmlXPathVariable">xmlXPathVariable</a>; 49*7c568831SAndroid Build Coastguard Workertypedef <a href="libxml2-xpath.html#xmlXPathVariable">xmlXPathVariable</a> * <a href="#xmlXPathVariablePtr">xmlXPathVariablePtr</a>; 50*7c568831SAndroid Build Coastguard Workertypedef <a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> <a href="#xmlXPathAxisFunc">xmlXPathAxisFunc</a> (<a href="libxml2-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, <br> <a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> cur); 51*7c568831SAndroid Build Coastguard Workerdouble <a href="#xmlXPathCastBooleanToNumber">xmlXPathCastBooleanToNumber</a> (int val); 52*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * <a href="#xmlXPathCastBooleanToString">xmlXPathCastBooleanToString</a> (int val); 53*7c568831SAndroid Build Coastguard Workerint <a href="#xmlXPathCastNodeSetToBoolean">xmlXPathCastNodeSetToBoolean</a> (<a href="libxml2-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> ns); 54*7c568831SAndroid Build Coastguard Workerdouble <a href="#xmlXPathCastNodeSetToNumber">xmlXPathCastNodeSetToNumber</a> (<a href="libxml2-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> ns); 55*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * <a href="#xmlXPathCastNodeSetToString">xmlXPathCastNodeSetToString</a> (<a href="libxml2-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> ns); 56*7c568831SAndroid Build Coastguard Workerdouble <a href="#xmlXPathCastNodeToNumber">xmlXPathCastNodeToNumber</a> (<a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node); 57*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * <a href="#xmlXPathCastNodeToString">xmlXPathCastNodeToString</a> (<a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node); 58*7c568831SAndroid Build Coastguard Workerint <a href="#xmlXPathCastNumberToBoolean">xmlXPathCastNumberToBoolean</a> (double val); 59*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * <a href="#xmlXPathCastNumberToString">xmlXPathCastNumberToString</a> (double val); 60*7c568831SAndroid Build Coastguard Workerint <a href="#xmlXPathCastStringToBoolean">xmlXPathCastStringToBoolean</a> (const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * val); 61*7c568831SAndroid Build Coastguard Workerdouble <a href="#xmlXPathCastStringToNumber">xmlXPathCastStringToNumber</a> (const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * val); 62*7c568831SAndroid Build Coastguard Workerint <a href="#xmlXPathCastToBoolean">xmlXPathCastToBoolean</a> (<a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> val); 63*7c568831SAndroid Build Coastguard Workerdouble <a href="#xmlXPathCastToNumber">xmlXPathCastToNumber</a> (<a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> val); 64*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * <a href="#xmlXPathCastToString">xmlXPathCastToString</a> (<a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> val); 65*7c568831SAndroid Build Coastguard Workerint <a href="#xmlXPathCmpNodes">xmlXPathCmpNodes</a> (<a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node1, <br> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node2); 66*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xpath.html#xmlXPathCompExprPtr">xmlXPathCompExprPtr</a> <a href="#xmlXPathCompile">xmlXPathCompile</a> (const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * str); 67*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> <a href="#xmlXPathCompiledEval">xmlXPathCompiledEval</a> (<a href="libxml2-xpath.html#xmlXPathCompExprPtr">xmlXPathCompExprPtr</a> comp, <br> <a href="libxml2-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctx); 68*7c568831SAndroid Build Coastguard Workerint <a href="#xmlXPathCompiledEvalToBoolean">xmlXPathCompiledEvalToBoolean</a> (<a href="libxml2-xpath.html#xmlXPathCompExprPtr">xmlXPathCompExprPtr</a> comp, <br> <a href="libxml2-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt); 69*7c568831SAndroid Build Coastguard Workerint <a href="#xmlXPathContextSetCache">xmlXPathContextSetCache</a> (<a href="libxml2-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt, <br> int active, <br> int value, <br> int options); 70*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> <a href="#xmlXPathConvertBoolean">xmlXPathConvertBoolean</a> (<a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> val); 71*7c568831SAndroid Build Coastguard Workertypedef int <a href="#xmlXPathConvertFunc">xmlXPathConvertFunc</a> (<a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> obj, <br> int type); 72*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> <a href="#xmlXPathConvertNumber">xmlXPathConvertNumber</a> (<a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> val); 73*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> <a href="#xmlXPathConvertString">xmlXPathConvertString</a> (<a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> val); 74*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xpath.html#xmlXPathCompExprPtr">xmlXPathCompExprPtr</a> <a href="#xmlXPathCtxtCompile">xmlXPathCtxtCompile</a> (<a href="libxml2-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt, <br> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * str); 75*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> <a href="#xmlXPathEval">xmlXPathEval</a> (const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * str, <br> <a href="libxml2-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctx); 76*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> <a href="#xmlXPathEvalExpression">xmlXPathEvalExpression</a> (const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * str, <br> <a href="libxml2-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt); 77*7c568831SAndroid Build Coastguard Workertypedef void <a href="#xmlXPathEvalFunc">xmlXPathEvalFunc</a> (<a href="libxml2-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, <br> int nargs); 78*7c568831SAndroid Build Coastguard Workerint <a href="#xmlXPathEvalPredicate">xmlXPathEvalPredicate</a> (<a href="libxml2-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt, <br> <a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> res); 79*7c568831SAndroid Build Coastguard Workervoid <a href="#xmlXPathFreeCompExpr">xmlXPathFreeCompExpr</a> (<a href="libxml2-xpath.html#xmlXPathCompExprPtr">xmlXPathCompExprPtr</a> comp); 80*7c568831SAndroid Build Coastguard Workervoid <a href="#xmlXPathFreeContext">xmlXPathFreeContext</a> (<a href="libxml2-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt); 81*7c568831SAndroid Build Coastguard Workervoid <a href="#xmlXPathFreeNodeSet">xmlXPathFreeNodeSet</a> (<a href="libxml2-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> obj); 82*7c568831SAndroid Build Coastguard Workervoid <a href="#xmlXPathFreeNodeSetList">xmlXPathFreeNodeSetList</a> (<a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> obj); 83*7c568831SAndroid Build Coastguard Workervoid <a href="#xmlXPathFreeObject">xmlXPathFreeObject</a> (<a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> obj); 84*7c568831SAndroid Build Coastguard Workertypedef <a href="libxml2-xpath.html#xmlXPathFunction">xmlXPathFunction</a> <a href="#xmlXPathFuncLookupFunc">xmlXPathFuncLookupFunc</a> (void * ctxt, <br> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * name, <br> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * ns_uri); 85*7c568831SAndroid Build Coastguard Workertypedef void <a href="#xmlXPathFunction">xmlXPathFunction</a> (<a href="libxml2-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, <br> int nargs); 86*7c568831SAndroid Build Coastguard Workervoid <a href="#xmlXPathInit">xmlXPathInit</a> (void); 87*7c568831SAndroid Build Coastguard Workerint <a href="#xmlXPathIsInf">xmlXPathIsInf</a> (double val); 88*7c568831SAndroid Build Coastguard Workerint <a href="#xmlXPathIsNaN">xmlXPathIsNaN</a> (double val); 89*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> <a href="#xmlXPathNewContext">xmlXPathNewContext</a> (<a href="libxml2-tree.html#xmlDocPtr">xmlDocPtr</a> doc); 90*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> <a href="#xmlXPathNodeEval">xmlXPathNodeEval</a> (<a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node, <br> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * str, <br> <a href="libxml2-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctx); 91*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> <a href="#xmlXPathNodeSetCreate">xmlXPathNodeSetCreate</a> (<a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> val); 92*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> <a href="#xmlXPathObjectCopy">xmlXPathObjectCopy</a> (<a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> val); 93*7c568831SAndroid Build Coastguard Workerlong <a href="#xmlXPathOrderDocElems">xmlXPathOrderDocElems</a> (<a href="libxml2-tree.html#xmlDocPtr">xmlDocPtr</a> doc); 94*7c568831SAndroid Build Coastguard Workerint <a href="#xmlXPathSetContextNode">xmlXPathSetContextNode</a> (<a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node, <br> <a href="libxml2-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctx); 95*7c568831SAndroid Build Coastguard Workervoid <a href="#xmlXPathSetErrorHandler">xmlXPathSetErrorHandler</a> (<a href="libxml2-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt, <br> <a href="libxml2-xmlerror.html#xmlStructuredErrorFunc">xmlStructuredErrorFunc</a> handler, <br> void * data); 96*7c568831SAndroid Build Coastguard Workertypedef <a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> <a href="#xmlXPathVariableLookupFunc">xmlXPathVariableLookupFunc</a> (void * ctxt, <br> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * name, <br> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * ns_uri); 97*7c568831SAndroid Build Coastguard Worker</pre> 98*7c568831SAndroid Build Coastguard Worker</div> 99*7c568831SAndroid Build Coastguard Worker<div class="refsect1" lang="en"><h2>Description</h2></div> 100*7c568831SAndroid Build Coastguard Worker<div class="refsect1" lang="en"> 101*7c568831SAndroid Build Coastguard Worker<h2>Details</h2> 102*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 103*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 104*7c568831SAndroid Build Coastguard Worker<h3> 105*7c568831SAndroid Build Coastguard Worker<a name="XML_XPATH_CHECKNS">Macro </a>XML_XPATH_CHECKNS</h3> 106*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">#define <a href="#XML_XPATH_CHECKNS">XML_XPATH_CHECKNS</a>; 107*7c568831SAndroid Build Coastguard Worker</pre> 108*7c568831SAndroid Build Coastguard Worker<p>check namespaces at compilation</p> 109*7c568831SAndroid Build Coastguard Worker</div> 110*7c568831SAndroid Build Coastguard Worker<hr> 111*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 112*7c568831SAndroid Build Coastguard Worker<h3> 113*7c568831SAndroid Build Coastguard Worker<a name="XML_XPATH_NOVAR">Macro </a>XML_XPATH_NOVAR</h3> 114*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">#define <a href="#XML_XPATH_NOVAR">XML_XPATH_NOVAR</a>; 115*7c568831SAndroid Build Coastguard Worker</pre> 116*7c568831SAndroid Build Coastguard Worker<p>forbid variables in expression</p> 117*7c568831SAndroid Build Coastguard Worker</div> 118*7c568831SAndroid Build Coastguard Worker<hr> 119*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 120*7c568831SAndroid Build Coastguard Worker<h3> 121*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathNodeSetGetLength">Macro </a>xmlXPathNodeSetGetLength</h3> 122*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">#define <a href="#xmlXPathNodeSetGetLength">xmlXPathNodeSetGetLength</a>(ns); 123*7c568831SAndroid Build Coastguard Worker</pre> 124*7c568831SAndroid Build Coastguard Worker<p>Implement a functionality similar to the DOM NodeList.length. Returns the number of nodes in the node-set.</p> 125*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 126*7c568831SAndroid Build Coastguard Worker<col align="left"> 127*7c568831SAndroid Build Coastguard Worker<tbody><tr> 128*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ns</tt></i>:</span></td> 129*7c568831SAndroid Build Coastguard Worker<td>a node-set</td> 130*7c568831SAndroid Build Coastguard Worker</tr></tbody> 131*7c568831SAndroid Build Coastguard Worker</table></div> 132*7c568831SAndroid Build Coastguard Worker</div> 133*7c568831SAndroid Build Coastguard Worker<hr> 134*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 135*7c568831SAndroid Build Coastguard Worker<h3> 136*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathNodeSetIsEmpty">Macro </a>xmlXPathNodeSetIsEmpty</h3> 137*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">#define <a href="#xmlXPathNodeSetIsEmpty">xmlXPathNodeSetIsEmpty</a>(ns); 138*7c568831SAndroid Build Coastguard Worker</pre> 139*7c568831SAndroid Build Coastguard Worker<p>Checks whether @ns is empty or not. Returns %TRUE if @ns is an empty node-set.</p> 140*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 141*7c568831SAndroid Build Coastguard Worker<col align="left"> 142*7c568831SAndroid Build Coastguard Worker<tbody><tr> 143*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ns</tt></i>:</span></td> 144*7c568831SAndroid Build Coastguard Worker<td>a node-set</td> 145*7c568831SAndroid Build Coastguard Worker</tr></tbody> 146*7c568831SAndroid Build Coastguard Worker</table></div> 147*7c568831SAndroid Build Coastguard Worker</div> 148*7c568831SAndroid Build Coastguard Worker<hr> 149*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 150*7c568831SAndroid Build Coastguard Worker<h3> 151*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathNodeSetItem">Macro </a>xmlXPathNodeSetItem</h3> 152*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">#define <a href="#xmlXPathNodeSetItem">xmlXPathNodeSetItem</a>(ns, index); 153*7c568831SAndroid Build Coastguard Worker</pre> 154*7c568831SAndroid Build Coastguard Worker<p>Implements a functionality similar to the DOM NodeList.item(). Returns the <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> at the given @index in @ns or NULL if @index is out of range (0 to length-1)</p> 155*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 156*7c568831SAndroid Build Coastguard Worker<col align="left"> 157*7c568831SAndroid Build Coastguard Worker<tbody> 158*7c568831SAndroid Build Coastguard Worker<tr> 159*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ns</tt></i>:</span></td> 160*7c568831SAndroid Build Coastguard Worker<td>a node-set</td> 161*7c568831SAndroid Build Coastguard Worker</tr> 162*7c568831SAndroid Build Coastguard Worker<tr> 163*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>index</tt></i>:</span></td> 164*7c568831SAndroid Build Coastguard Worker<td>index of a node in the set</td> 165*7c568831SAndroid Build Coastguard Worker</tr> 166*7c568831SAndroid Build Coastguard Worker</tbody> 167*7c568831SAndroid Build Coastguard Worker</table></div> 168*7c568831SAndroid Build Coastguard Worker</div> 169*7c568831SAndroid Build Coastguard Worker<hr> 170*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 171*7c568831SAndroid Build Coastguard Worker<h3> 172*7c568831SAndroid Build Coastguard Worker<a name="xmlNodeSet">Structure </a>xmlNodeSet</h3> 173*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">struct _xmlNodeSet { 174*7c568831SAndroid Build Coastguard Worker int nodeNr : number of nodes in the set 175*7c568831SAndroid Build Coastguard Worker int nodeMax : size of the array as allocated 176*7c568831SAndroid Build Coastguard Worker <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> * nodeTab : array of nodes in no particular order @@ with_ns to check whether nam 177*7c568831SAndroid Build Coastguard Worker} xmlNodeSet; 178*7c568831SAndroid Build Coastguard Worker</pre> 179*7c568831SAndroid Build Coastguard Worker<p></p> 180*7c568831SAndroid Build Coastguard Worker</div> 181*7c568831SAndroid Build Coastguard Worker<hr> 182*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 183*7c568831SAndroid Build Coastguard Worker<h3> 184*7c568831SAndroid Build Coastguard Worker<a name="xmlNodeSetPtr">Typedef </a>xmlNodeSetPtr</h3> 185*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xpath.html#xmlNodeSet">xmlNodeSet</a> * xmlNodeSetPtr; 186*7c568831SAndroid Build Coastguard Worker</pre> 187*7c568831SAndroid Build Coastguard Worker<p></p> 188*7c568831SAndroid Build Coastguard Worker</div> 189*7c568831SAndroid Build Coastguard Worker<hr> 190*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 191*7c568831SAndroid Build Coastguard Worker<h3> 192*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathAxis">Structure </a>xmlXPathAxis</h3> 193*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">struct _xmlXPathAxis { 194*7c568831SAndroid Build Coastguard Worker const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * name : the axis name 195*7c568831SAndroid Build Coastguard Worker <a href="libxml2-xpath.html#xmlXPathAxisFunc">xmlXPathAxisFunc</a> func : the search function 196*7c568831SAndroid Build Coastguard Worker} xmlXPathAxis; 197*7c568831SAndroid Build Coastguard Worker</pre> 198*7c568831SAndroid Build Coastguard Worker<p></p> 199*7c568831SAndroid Build Coastguard Worker</div> 200*7c568831SAndroid Build Coastguard Worker<hr> 201*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 202*7c568831SAndroid Build Coastguard Worker<h3> 203*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathAxisPtr">Typedef </a>xmlXPathAxisPtr</h3> 204*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xpath.html#xmlXPathAxis">xmlXPathAxis</a> * xmlXPathAxisPtr; 205*7c568831SAndroid Build Coastguard Worker</pre> 206*7c568831SAndroid Build Coastguard Worker<p></p> 207*7c568831SAndroid Build Coastguard Worker</div> 208*7c568831SAndroid Build Coastguard Worker<hr> 209*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 210*7c568831SAndroid Build Coastguard Worker<h3> 211*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathCompExpr">Structure </a>xmlXPathCompExpr</h3> 212*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">struct _xmlXPathCompExpr { 213*7c568831SAndroid Build Coastguard WorkerThe content of this structure is not made public by the API. 214*7c568831SAndroid Build Coastguard Worker} xmlXPathCompExpr; 215*7c568831SAndroid Build Coastguard Worker</pre> 216*7c568831SAndroid Build Coastguard Worker<p></p> 217*7c568831SAndroid Build Coastguard Worker</div> 218*7c568831SAndroid Build Coastguard Worker<hr> 219*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 220*7c568831SAndroid Build Coastguard Worker<h3> 221*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathCompExprPtr">Typedef </a>xmlXPathCompExprPtr</h3> 222*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xpath.html#xmlXPathCompExpr">xmlXPathCompExpr</a> * xmlXPathCompExprPtr; 223*7c568831SAndroid Build Coastguard Worker</pre> 224*7c568831SAndroid Build Coastguard Worker<p></p> 225*7c568831SAndroid Build Coastguard Worker</div> 226*7c568831SAndroid Build Coastguard Worker<hr> 227*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 228*7c568831SAndroid Build Coastguard Worker<h3> 229*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathContext">Structure </a>xmlXPathContext</h3> 230*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">struct _xmlXPathContext { 231*7c568831SAndroid Build Coastguard Worker <a href="libxml2-tree.html#xmlDocPtr">xmlDocPtr</a> doc : The current document 232*7c568831SAndroid Build Coastguard Worker <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node : The current node 233*7c568831SAndroid Build Coastguard Worker int nb_variables_unused : unused (hash table) 234*7c568831SAndroid Build Coastguard Worker int max_variables_unused : unused (hash table) 235*7c568831SAndroid Build Coastguard Worker <a href="libxml2-hash.html#xmlHashTablePtr">xmlHashTablePtr</a> varHash : Hash table of defined variables 236*7c568831SAndroid Build Coastguard Worker int nb_types : number of defined types 237*7c568831SAndroid Build Coastguard Worker int max_types : max number of types 238*7c568831SAndroid Build Coastguard Worker <a href="libxml2-xpath.html#xmlXPathTypePtr">xmlXPathTypePtr</a> types : Array of defined types 239*7c568831SAndroid Build Coastguard Worker int nb_funcs_unused : unused (hash table) 240*7c568831SAndroid Build Coastguard Worker int max_funcs_unused : unused (hash table) 241*7c568831SAndroid Build Coastguard Worker <a href="libxml2-hash.html#xmlHashTablePtr">xmlHashTablePtr</a> funcHash : Hash table of defined funcs 242*7c568831SAndroid Build Coastguard Worker int nb_axis : number of defined axis 243*7c568831SAndroid Build Coastguard Worker int max_axis : max number of axis 244*7c568831SAndroid Build Coastguard Worker <a href="libxml2-xpath.html#xmlXPathAxisPtr">xmlXPathAxisPtr</a> axis : Array of defined axis the namespace nodes of the context node 245*7c568831SAndroid Build Coastguard Worker <a href="libxml2-tree.html#xmlNsPtr">xmlNsPtr</a> * namespaces : Array of namespaces 246*7c568831SAndroid Build Coastguard Worker int nsNr : number of namespace in scope 247*7c568831SAndroid Build Coastguard Worker void * user : function to free extra variables 248*7c568831SAndroid Build Coastguard Worker int contextSize : the context size 249*7c568831SAndroid Build Coastguard Worker int proximityPosition : the proximity position extra stuff for XPointer 250*7c568831SAndroid Build Coastguard Worker int xptr : is this an XPointer context? 251*7c568831SAndroid Build Coastguard Worker <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> here : for here() 252*7c568831SAndroid Build Coastguard Worker <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> origin : for origin() the set of namespace declarations in scope for the expre 253*7c568831SAndroid Build Coastguard Worker <a href="libxml2-hash.html#xmlHashTablePtr">xmlHashTablePtr</a> nsHash : The namespaces hash table 254*7c568831SAndroid Build Coastguard Worker <a href="libxml2-xpath.html#xmlXPathVariableLookupFunc">xmlXPathVariableLookupFunc</a> varLookupFunc : variable lookup func 255*7c568831SAndroid Build Coastguard Worker void * varLookupData : variable lookup data Possibility to link in an extra item 256*7c568831SAndroid Build Coastguard Worker void * extra : needed for XSLT The function name and URI when calling a function 257*7c568831SAndroid Build Coastguard Worker const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * function 258*7c568831SAndroid Build Coastguard Worker const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * functionURI : function lookup function and data 259*7c568831SAndroid Build Coastguard Worker <a href="libxml2-xpath.html#xmlXPathFuncLookupFunc">xmlXPathFuncLookupFunc</a> funcLookupFunc : function lookup func 260*7c568831SAndroid Build Coastguard Worker void * funcLookupData : function lookup data temporary namespace lists kept for walking the n 261*7c568831SAndroid Build Coastguard Worker <a href="libxml2-tree.html#xmlNsPtr">xmlNsPtr</a> * tmpNsList : Array of namespaces 262*7c568831SAndroid Build Coastguard Worker int tmpNsNr : number of namespaces in scope error reporting mechanism 263*7c568831SAndroid Build Coastguard Worker void * userData : user specific data block 264*7c568831SAndroid Build Coastguard Worker <a href="libxml2-xmlerror.html#xmlStructuredErrorFunc">xmlStructuredErrorFunc</a> error : the callback in case of errors 265*7c568831SAndroid Build Coastguard Worker <a href="libxml2-xmlerror.html#xmlError">xmlError</a> lastError : the last error 266*7c568831SAndroid Build Coastguard Worker <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> debugNode : the source node XSLT dictionary 267*7c568831SAndroid Build Coastguard Worker <a href="libxml2-dict.html#xmlDictPtr">xmlDictPtr</a> dict : dictionary if any 268*7c568831SAndroid Build Coastguard Worker int flags : flags to control compilation Cache for reusal of XPath objects 269*7c568831SAndroid Build Coastguard Worker void * cache : Resource limits 270*7c568831SAndroid Build Coastguard Worker unsigned long opLimit 271*7c568831SAndroid Build Coastguard Worker unsigned long opCount 272*7c568831SAndroid Build Coastguard Worker int depth 273*7c568831SAndroid Build Coastguard Worker} xmlXPathContext; 274*7c568831SAndroid Build Coastguard Worker</pre> 275*7c568831SAndroid Build Coastguard Worker<p></p> 276*7c568831SAndroid Build Coastguard Worker</div> 277*7c568831SAndroid Build Coastguard Worker<hr> 278*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 279*7c568831SAndroid Build Coastguard Worker<h3> 280*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathContextPtr">Typedef </a>xmlXPathContextPtr</h3> 281*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xpath.html#xmlXPathContext">xmlXPathContext</a> * xmlXPathContextPtr; 282*7c568831SAndroid Build Coastguard Worker</pre> 283*7c568831SAndroid Build Coastguard Worker<p></p> 284*7c568831SAndroid Build Coastguard Worker</div> 285*7c568831SAndroid Build Coastguard Worker<hr> 286*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 287*7c568831SAndroid Build Coastguard Worker<h3> 288*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathError">Enum </a>xmlXPathError</h3> 289*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">enum <a href="#xmlXPathError">xmlXPathError</a> { 290*7c568831SAndroid Build Coastguard Worker <a name="XPATH_EXPRESSION_OK">XPATH_EXPRESSION_OK</a> = 0 291*7c568831SAndroid Build Coastguard Worker <a name="XPATH_NUMBER_ERROR">XPATH_NUMBER_ERROR</a> = 1 292*7c568831SAndroid Build Coastguard Worker <a name="XPATH_UNFINISHED_LITERAL_ERROR">XPATH_UNFINISHED_LITERAL_ERROR</a> = 2 293*7c568831SAndroid Build Coastguard Worker <a name="XPATH_START_LITERAL_ERROR">XPATH_START_LITERAL_ERROR</a> = 3 294*7c568831SAndroid Build Coastguard Worker <a name="XPATH_VARIABLE_REF_ERROR">XPATH_VARIABLE_REF_ERROR</a> = 4 295*7c568831SAndroid Build Coastguard Worker <a name="XPATH_UNDEF_VARIABLE_ERROR">XPATH_UNDEF_VARIABLE_ERROR</a> = 5 296*7c568831SAndroid Build Coastguard Worker <a name="XPATH_INVALID_PREDICATE_ERROR">XPATH_INVALID_PREDICATE_ERROR</a> = 6 297*7c568831SAndroid Build Coastguard Worker <a name="XPATH_EXPR_ERROR">XPATH_EXPR_ERROR</a> = 7 298*7c568831SAndroid Build Coastguard Worker <a name="XPATH_UNCLOSED_ERROR">XPATH_UNCLOSED_ERROR</a> = 8 299*7c568831SAndroid Build Coastguard Worker <a name="XPATH_UNKNOWN_FUNC_ERROR">XPATH_UNKNOWN_FUNC_ERROR</a> = 9 300*7c568831SAndroid Build Coastguard Worker <a name="XPATH_INVALID_OPERAND">XPATH_INVALID_OPERAND</a> = 10 301*7c568831SAndroid Build Coastguard Worker <a name="XPATH_INVALID_TYPE">XPATH_INVALID_TYPE</a> = 11 302*7c568831SAndroid Build Coastguard Worker <a name="XPATH_INVALID_ARITY">XPATH_INVALID_ARITY</a> = 12 303*7c568831SAndroid Build Coastguard Worker <a name="XPATH_INVALID_CTXT_SIZE">XPATH_INVALID_CTXT_SIZE</a> = 13 304*7c568831SAndroid Build Coastguard Worker <a name="XPATH_INVALID_CTXT_POSITION">XPATH_INVALID_CTXT_POSITION</a> = 14 305*7c568831SAndroid Build Coastguard Worker <a name="XPATH_MEMORY_ERROR">XPATH_MEMORY_ERROR</a> = 15 306*7c568831SAndroid Build Coastguard Worker <a name="XPTR_SYNTAX_ERROR">XPTR_SYNTAX_ERROR</a> = 16 307*7c568831SAndroid Build Coastguard Worker <a name="XPTR_RESOURCE_ERROR">XPTR_RESOURCE_ERROR</a> = 17 308*7c568831SAndroid Build Coastguard Worker <a name="XPTR_SUB_RESOURCE_ERROR">XPTR_SUB_RESOURCE_ERROR</a> = 18 309*7c568831SAndroid Build Coastguard Worker <a name="XPATH_UNDEF_PREFIX_ERROR">XPATH_UNDEF_PREFIX_ERROR</a> = 19 310*7c568831SAndroid Build Coastguard Worker <a name="XPATH_ENCODING_ERROR">XPATH_ENCODING_ERROR</a> = 20 311*7c568831SAndroid Build Coastguard Worker <a name="XPATH_INVALID_CHAR_ERROR">XPATH_INVALID_CHAR_ERROR</a> = 21 312*7c568831SAndroid Build Coastguard Worker <a name="XPATH_INVALID_CTXT">XPATH_INVALID_CTXT</a> = 22 313*7c568831SAndroid Build Coastguard Worker <a name="XPATH_STACK_ERROR">XPATH_STACK_ERROR</a> = 23 314*7c568831SAndroid Build Coastguard Worker <a name="XPATH_FORBID_VARIABLE_ERROR">XPATH_FORBID_VARIABLE_ERROR</a> = 24 315*7c568831SAndroid Build Coastguard Worker <a name="XPATH_OP_LIMIT_EXCEEDED">XPATH_OP_LIMIT_EXCEEDED</a> = 25 316*7c568831SAndroid Build Coastguard Worker <a name="XPATH_RECURSION_LIMIT_EXCEEDED">XPATH_RECURSION_LIMIT_EXCEEDED</a> = 26 317*7c568831SAndroid Build Coastguard Worker}; 318*7c568831SAndroid Build Coastguard Worker</pre> 319*7c568831SAndroid Build Coastguard Worker<p></p> 320*7c568831SAndroid Build Coastguard Worker</div> 321*7c568831SAndroid Build Coastguard Worker<hr> 322*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 323*7c568831SAndroid Build Coastguard Worker<h3> 324*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathFuncPtr">Typedef </a>xmlXPathFuncPtr</h3> 325*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xpath.html#xmlXPathFunct">xmlXPathFunct</a> * xmlXPathFuncPtr; 326*7c568831SAndroid Build Coastguard Worker</pre> 327*7c568831SAndroid Build Coastguard Worker<p></p> 328*7c568831SAndroid Build Coastguard Worker</div> 329*7c568831SAndroid Build Coastguard Worker<hr> 330*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 331*7c568831SAndroid Build Coastguard Worker<h3> 332*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathFunct">Structure </a>xmlXPathFunct</h3> 333*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">struct _xmlXPathFunct { 334*7c568831SAndroid Build Coastguard Worker const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * name : the function name 335*7c568831SAndroid Build Coastguard Worker <a href="libxml2-xpath.html#xmlXPathEvalFunc">xmlXPathEvalFunc</a> func : the evaluation function 336*7c568831SAndroid Build Coastguard Worker} xmlXPathFunct; 337*7c568831SAndroid Build Coastguard Worker</pre> 338*7c568831SAndroid Build Coastguard Worker<p></p> 339*7c568831SAndroid Build Coastguard Worker</div> 340*7c568831SAndroid Build Coastguard Worker<hr> 341*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 342*7c568831SAndroid Build Coastguard Worker<h3> 343*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathObject">Structure </a>xmlXPathObject</h3> 344*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">struct _xmlXPathObject { 345*7c568831SAndroid Build Coastguard Worker <a href="libxml2-xpath.html#xmlXPathObjectType">xmlXPathObjectType</a> type 346*7c568831SAndroid Build Coastguard Worker <a href="libxml2-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodesetval 347*7c568831SAndroid Build Coastguard Worker int boolval 348*7c568831SAndroid Build Coastguard Worker double floatval 349*7c568831SAndroid Build Coastguard Worker <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * stringval 350*7c568831SAndroid Build Coastguard Worker void * user 351*7c568831SAndroid Build Coastguard Worker int index 352*7c568831SAndroid Build Coastguard Worker void * user2 353*7c568831SAndroid Build Coastguard Worker int index2 354*7c568831SAndroid Build Coastguard Worker} xmlXPathObject; 355*7c568831SAndroid Build Coastguard Worker</pre> 356*7c568831SAndroid Build Coastguard Worker<p></p> 357*7c568831SAndroid Build Coastguard Worker</div> 358*7c568831SAndroid Build Coastguard Worker<hr> 359*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 360*7c568831SAndroid Build Coastguard Worker<h3> 361*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathObjectPtr">Typedef </a>xmlXPathObjectPtr</h3> 362*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xpath.html#xmlXPathObject">xmlXPathObject</a> * xmlXPathObjectPtr; 363*7c568831SAndroid Build Coastguard Worker</pre> 364*7c568831SAndroid Build Coastguard Worker<p></p> 365*7c568831SAndroid Build Coastguard Worker</div> 366*7c568831SAndroid Build Coastguard Worker<hr> 367*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 368*7c568831SAndroid Build Coastguard Worker<h3> 369*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathObjectType">Enum </a>xmlXPathObjectType</h3> 370*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">enum <a href="#xmlXPathObjectType">xmlXPathObjectType</a> { 371*7c568831SAndroid Build Coastguard Worker <a name="XPATH_UNDEFINED">XPATH_UNDEFINED</a> = 0 372*7c568831SAndroid Build Coastguard Worker <a name="XPATH_NODESET">XPATH_NODESET</a> = 1 373*7c568831SAndroid Build Coastguard Worker <a name="XPATH_BOOLEAN">XPATH_BOOLEAN</a> = 2 374*7c568831SAndroid Build Coastguard Worker <a name="XPATH_NUMBER">XPATH_NUMBER</a> = 3 375*7c568831SAndroid Build Coastguard Worker <a name="XPATH_STRING">XPATH_STRING</a> = 4 376*7c568831SAndroid Build Coastguard Worker <a name="XPATH_POINT">XPATH_POINT</a> = 5 377*7c568831SAndroid Build Coastguard Worker <a name="XPATH_RANGE">XPATH_RANGE</a> = 6 378*7c568831SAndroid Build Coastguard Worker <a name="XPATH_LOCATIONSET">XPATH_LOCATIONSET</a> = 7 379*7c568831SAndroid Build Coastguard Worker <a name="XPATH_USERS">XPATH_USERS</a> = 8 380*7c568831SAndroid Build Coastguard Worker <a name="XPATH_XSLT_TREE">XPATH_XSLT_TREE</a> = 9 /* An XSLT value tree, non modifiable */ 381*7c568831SAndroid Build Coastguard Worker}; 382*7c568831SAndroid Build Coastguard Worker</pre> 383*7c568831SAndroid Build Coastguard Worker<p></p> 384*7c568831SAndroid Build Coastguard Worker</div> 385*7c568831SAndroid Build Coastguard Worker<hr> 386*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 387*7c568831SAndroid Build Coastguard Worker<h3> 388*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathParserContext">Structure </a>xmlXPathParserContext</h3> 389*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">struct _xmlXPathParserContext { 390*7c568831SAndroid Build Coastguard Worker const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * cur : the current char being parsed 391*7c568831SAndroid Build Coastguard Worker const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * base : the full expression 392*7c568831SAndroid Build Coastguard Worker int error : error code 393*7c568831SAndroid Build Coastguard Worker <a href="libxml2-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> context : the evaluation context 394*7c568831SAndroid Build Coastguard Worker <a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> value : the current value 395*7c568831SAndroid Build Coastguard Worker int valueNr : number of values stacked 396*7c568831SAndroid Build Coastguard Worker int valueMax : max number of values stacked 397*7c568831SAndroid Build Coastguard Worker <a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> * valueTab : stack of values 398*7c568831SAndroid Build Coastguard Worker <a href="libxml2-xpath.html#xmlXPathCompExprPtr">xmlXPathCompExprPtr</a> comp : the precompiled expression 399*7c568831SAndroid Build Coastguard Worker int xptr : it this an XPointer expression 400*7c568831SAndroid Build Coastguard Worker <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> ancestor : used for walking preceding axis 401*7c568831SAndroid Build Coastguard Worker int valueFrame : always zero for compatibility 402*7c568831SAndroid Build Coastguard Worker} xmlXPathParserContext; 403*7c568831SAndroid Build Coastguard Worker</pre> 404*7c568831SAndroid Build Coastguard Worker<p></p> 405*7c568831SAndroid Build Coastguard Worker</div> 406*7c568831SAndroid Build Coastguard Worker<hr> 407*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 408*7c568831SAndroid Build Coastguard Worker<h3> 409*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathParserContextPtr">Typedef </a>xmlXPathParserContextPtr</h3> 410*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xpath.html#xmlXPathParserContext">xmlXPathParserContext</a> * xmlXPathParserContextPtr; 411*7c568831SAndroid Build Coastguard Worker</pre> 412*7c568831SAndroid Build Coastguard Worker<p></p> 413*7c568831SAndroid Build Coastguard Worker</div> 414*7c568831SAndroid Build Coastguard Worker<hr> 415*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 416*7c568831SAndroid Build Coastguard Worker<h3> 417*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathType">Structure </a>xmlXPathType</h3> 418*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">struct _xmlXPathType { 419*7c568831SAndroid Build Coastguard Worker const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * name : the type name 420*7c568831SAndroid Build Coastguard Worker <a href="libxml2-xpath.html#xmlXPathConvertFunc">xmlXPathConvertFunc</a> func : the conversion function 421*7c568831SAndroid Build Coastguard Worker} xmlXPathType; 422*7c568831SAndroid Build Coastguard Worker</pre> 423*7c568831SAndroid Build Coastguard Worker<p></p> 424*7c568831SAndroid Build Coastguard Worker</div> 425*7c568831SAndroid Build Coastguard Worker<hr> 426*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 427*7c568831SAndroid Build Coastguard Worker<h3> 428*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathTypePtr">Typedef </a>xmlXPathTypePtr</h3> 429*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xpath.html#xmlXPathType">xmlXPathType</a> * xmlXPathTypePtr; 430*7c568831SAndroid Build Coastguard Worker</pre> 431*7c568831SAndroid Build Coastguard Worker<p></p> 432*7c568831SAndroid Build Coastguard Worker</div> 433*7c568831SAndroid Build Coastguard Worker<hr> 434*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 435*7c568831SAndroid Build Coastguard Worker<h3> 436*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathVariable">Structure </a>xmlXPathVariable</h3> 437*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">struct _xmlXPathVariable { 438*7c568831SAndroid Build Coastguard Worker const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * name : the variable name 439*7c568831SAndroid Build Coastguard Worker <a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> value : the value 440*7c568831SAndroid Build Coastguard Worker} xmlXPathVariable; 441*7c568831SAndroid Build Coastguard Worker</pre> 442*7c568831SAndroid Build Coastguard Worker<p></p> 443*7c568831SAndroid Build Coastguard Worker</div> 444*7c568831SAndroid Build Coastguard Worker<hr> 445*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 446*7c568831SAndroid Build Coastguard Worker<h3> 447*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathVariablePtr">Typedef </a>xmlXPathVariablePtr</h3> 448*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xpath.html#xmlXPathVariable">xmlXPathVariable</a> * xmlXPathVariablePtr; 449*7c568831SAndroid Build Coastguard Worker</pre> 450*7c568831SAndroid Build Coastguard Worker<p></p> 451*7c568831SAndroid Build Coastguard Worker</div> 452*7c568831SAndroid Build Coastguard Worker<hr> 453*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 454*7c568831SAndroid Build Coastguard Worker<h3> 455*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathAxisFunc"></a>Function type xmlXPathAxisFunc</h3> 456*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> xmlXPathAxisFunc (<a href="libxml2-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, <br> <a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> cur)<br> 457*7c568831SAndroid Build Coastguard Worker</pre> 458*7c568831SAndroid Build Coastguard Worker<p>An axis traversal function. To traverse an axis, the engine calls the first time with cur == NULL and repeat until the function returns NULL indicating the end of the axis traversal.</p> 459*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 460*7c568831SAndroid Build Coastguard Worker<col align="left"> 461*7c568831SAndroid Build Coastguard Worker<tbody> 462*7c568831SAndroid Build Coastguard Worker<tr> 463*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctxt</tt></i>:</span></td> 464*7c568831SAndroid Build Coastguard Worker<td>the XPath interpreter context</td> 465*7c568831SAndroid Build Coastguard Worker</tr> 466*7c568831SAndroid Build Coastguard Worker<tr> 467*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>cur</tt></i>:</span></td> 468*7c568831SAndroid Build Coastguard Worker<td>the previous node being explored on that axis</td> 469*7c568831SAndroid Build Coastguard Worker</tr> 470*7c568831SAndroid Build Coastguard Worker<tr> 471*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 472*7c568831SAndroid Build Coastguard Worker<td>the next node in that axis or NULL if at the end of the axis.</td> 473*7c568831SAndroid Build Coastguard Worker</tr> 474*7c568831SAndroid Build Coastguard Worker</tbody> 475*7c568831SAndroid Build Coastguard Worker</table></div> 476*7c568831SAndroid Build Coastguard Worker</div> 477*7c568831SAndroid Build Coastguard Worker<hr> 478*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 479*7c568831SAndroid Build Coastguard Worker<h3> 480*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathConvertFunc"></a>Function type xmlXPathConvertFunc</h3> 481*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlXPathConvertFunc (<a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> obj, <br> int type)<br> 482*7c568831SAndroid Build Coastguard Worker</pre> 483*7c568831SAndroid Build Coastguard Worker<p>A conversion function is associated to a type and used to cast the new type to primitive values.</p> 484*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 485*7c568831SAndroid Build Coastguard Worker<col align="left"> 486*7c568831SAndroid Build Coastguard Worker<tbody> 487*7c568831SAndroid Build Coastguard Worker<tr> 488*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>obj</tt></i>:</span></td> 489*7c568831SAndroid Build Coastguard Worker<td>an XPath object</td> 490*7c568831SAndroid Build Coastguard Worker</tr> 491*7c568831SAndroid Build Coastguard Worker<tr> 492*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>type</tt></i>:</span></td> 493*7c568831SAndroid Build Coastguard Worker<td>the number of the target type</td> 494*7c568831SAndroid Build Coastguard Worker</tr> 495*7c568831SAndroid Build Coastguard Worker<tr> 496*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 497*7c568831SAndroid Build Coastguard Worker<td>-1 in case of error, 0 otherwise</td> 498*7c568831SAndroid Build Coastguard Worker</tr> 499*7c568831SAndroid Build Coastguard Worker</tbody> 500*7c568831SAndroid Build Coastguard Worker</table></div> 501*7c568831SAndroid Build Coastguard Worker</div> 502*7c568831SAndroid Build Coastguard Worker<hr> 503*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 504*7c568831SAndroid Build Coastguard Worker<h3> 505*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathEvalFunc"></a>Function type xmlXPathEvalFunc</h3> 506*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">void xmlXPathEvalFunc (<a href="libxml2-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, <br> int nargs)<br> 507*7c568831SAndroid Build Coastguard Worker</pre> 508*7c568831SAndroid Build Coastguard Worker<p>An XPath evaluation function, the parameters are on the XPath context stack.</p> 509*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 510*7c568831SAndroid Build Coastguard Worker<col align="left"> 511*7c568831SAndroid Build Coastguard Worker<tbody> 512*7c568831SAndroid Build Coastguard Worker<tr> 513*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctxt</tt></i>:</span></td> 514*7c568831SAndroid Build Coastguard Worker<td>an XPath parser context</td> 515*7c568831SAndroid Build Coastguard Worker</tr> 516*7c568831SAndroid Build Coastguard Worker<tr> 517*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>nargs</tt></i>:</span></td> 518*7c568831SAndroid Build Coastguard Worker<td>the number of arguments passed to the function</td> 519*7c568831SAndroid Build Coastguard Worker</tr> 520*7c568831SAndroid Build Coastguard Worker</tbody> 521*7c568831SAndroid Build Coastguard Worker</table></div> 522*7c568831SAndroid Build Coastguard Worker</div> 523*7c568831SAndroid Build Coastguard Worker<hr> 524*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 525*7c568831SAndroid Build Coastguard Worker<h3> 526*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathFuncLookupFunc"></a>Function type xmlXPathFuncLookupFunc</h3> 527*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xpath.html#xmlXPathFunction">xmlXPathFunction</a> xmlXPathFuncLookupFunc (void * ctxt, <br> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * name, <br> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * ns_uri)<br> 528*7c568831SAndroid Build Coastguard Worker</pre> 529*7c568831SAndroid Build Coastguard Worker<p>Prototype for callbacks used to plug function lookup in the XPath engine.</p> 530*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 531*7c568831SAndroid Build Coastguard Worker<col align="left"> 532*7c568831SAndroid Build Coastguard Worker<tbody> 533*7c568831SAndroid Build Coastguard Worker<tr> 534*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctxt</tt></i>:</span></td> 535*7c568831SAndroid Build Coastguard Worker<td>an XPath context</td> 536*7c568831SAndroid Build Coastguard Worker</tr> 537*7c568831SAndroid Build Coastguard Worker<tr> 538*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>name</tt></i>:</span></td> 539*7c568831SAndroid Build Coastguard Worker<td>name of the function</td> 540*7c568831SAndroid Build Coastguard Worker</tr> 541*7c568831SAndroid Build Coastguard Worker<tr> 542*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ns_uri</tt></i>:</span></td> 543*7c568831SAndroid Build Coastguard Worker<td>the namespace name hosting this function</td> 544*7c568831SAndroid Build Coastguard Worker</tr> 545*7c568831SAndroid Build Coastguard Worker<tr> 546*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 547*7c568831SAndroid Build Coastguard Worker<td>the XPath function or NULL if not found.</td> 548*7c568831SAndroid Build Coastguard Worker</tr> 549*7c568831SAndroid Build Coastguard Worker</tbody> 550*7c568831SAndroid Build Coastguard Worker</table></div> 551*7c568831SAndroid Build Coastguard Worker</div> 552*7c568831SAndroid Build Coastguard Worker<hr> 553*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 554*7c568831SAndroid Build Coastguard Worker<h3> 555*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathFunction"></a>Function type xmlXPathFunction</h3> 556*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">void xmlXPathFunction (<a href="libxml2-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, <br> int nargs)<br> 557*7c568831SAndroid Build Coastguard Worker</pre> 558*7c568831SAndroid Build Coastguard Worker<p>An XPath function. The arguments (if any) are popped out from the context stack and the result is pushed on the stack.</p> 559*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 560*7c568831SAndroid Build Coastguard Worker<col align="left"> 561*7c568831SAndroid Build Coastguard Worker<tbody> 562*7c568831SAndroid Build Coastguard Worker<tr> 563*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctxt</tt></i>:</span></td> 564*7c568831SAndroid Build Coastguard Worker<td>the XPath interprestation context</td> 565*7c568831SAndroid Build Coastguard Worker</tr> 566*7c568831SAndroid Build Coastguard Worker<tr> 567*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>nargs</tt></i>:</span></td> 568*7c568831SAndroid Build Coastguard Worker<td>the number of arguments</td> 569*7c568831SAndroid Build Coastguard Worker</tr> 570*7c568831SAndroid Build Coastguard Worker</tbody> 571*7c568831SAndroid Build Coastguard Worker</table></div> 572*7c568831SAndroid Build Coastguard Worker</div> 573*7c568831SAndroid Build Coastguard Worker<hr> 574*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 575*7c568831SAndroid Build Coastguard Worker<h3> 576*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathVariableLookupFunc"></a>Function type xmlXPathVariableLookupFunc</h3> 577*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> xmlXPathVariableLookupFunc (void * ctxt, <br> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * name, <br> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * ns_uri)<br> 578*7c568831SAndroid Build Coastguard Worker</pre> 579*7c568831SAndroid Build Coastguard Worker<p>Prototype for callbacks used to plug variable lookup in the XPath engine.</p> 580*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 581*7c568831SAndroid Build Coastguard Worker<col align="left"> 582*7c568831SAndroid Build Coastguard Worker<tbody> 583*7c568831SAndroid Build Coastguard Worker<tr> 584*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctxt</tt></i>:</span></td> 585*7c568831SAndroid Build Coastguard Worker<td>an XPath context</td> 586*7c568831SAndroid Build Coastguard Worker</tr> 587*7c568831SAndroid Build Coastguard Worker<tr> 588*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>name</tt></i>:</span></td> 589*7c568831SAndroid Build Coastguard Worker<td>name of the variable</td> 590*7c568831SAndroid Build Coastguard Worker</tr> 591*7c568831SAndroid Build Coastguard Worker<tr> 592*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ns_uri</tt></i>:</span></td> 593*7c568831SAndroid Build Coastguard Worker<td>the namespace name hosting this variable</td> 594*7c568831SAndroid Build Coastguard Worker</tr> 595*7c568831SAndroid Build Coastguard Worker<tr> 596*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 597*7c568831SAndroid Build Coastguard Worker<td>the XPath object value or NULL if not found.</td> 598*7c568831SAndroid Build Coastguard Worker</tr> 599*7c568831SAndroid Build Coastguard Worker</tbody> 600*7c568831SAndroid Build Coastguard Worker</table></div> 601*7c568831SAndroid Build Coastguard Worker</div> 602*7c568831SAndroid Build Coastguard Worker<hr> 603*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 604*7c568831SAndroid Build Coastguard Worker<h3> 605*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathNAN">Variable </a>xmlXPathNAN</h3> 606*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">double xmlXPathNAN; 607*7c568831SAndroid Build Coastguard Worker</pre> 608*7c568831SAndroid Build Coastguard Worker<p></p> 609*7c568831SAndroid Build Coastguard Worker</div> 610*7c568831SAndroid Build Coastguard Worker<hr> 611*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 612*7c568831SAndroid Build Coastguard Worker<h3> 613*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathNINF">Variable </a>xmlXPathNINF</h3> 614*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">double xmlXPathNINF; 615*7c568831SAndroid Build Coastguard Worker</pre> 616*7c568831SAndroid Build Coastguard Worker<p></p> 617*7c568831SAndroid Build Coastguard Worker</div> 618*7c568831SAndroid Build Coastguard Worker<hr> 619*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 620*7c568831SAndroid Build Coastguard Worker<h3> 621*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathPINF">Variable </a>xmlXPathPINF</h3> 622*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">double xmlXPathPINF; 623*7c568831SAndroid Build Coastguard Worker</pre> 624*7c568831SAndroid Build Coastguard Worker<p></p> 625*7c568831SAndroid Build Coastguard Worker</div> 626*7c568831SAndroid Build Coastguard Worker<hr> 627*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 628*7c568831SAndroid Build Coastguard Worker<h3> 629*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathCastBooleanToNumber"></a>xmlXPathCastBooleanToNumber ()</h3> 630*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">double xmlXPathCastBooleanToNumber (int val)<br> 631*7c568831SAndroid Build Coastguard Worker</pre> 632*7c568831SAndroid Build Coastguard Worker<p>Converts a boolean to its number value</p> 633*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 634*7c568831SAndroid Build Coastguard Worker<col align="left"> 635*7c568831SAndroid Build Coastguard Worker<tbody> 636*7c568831SAndroid Build Coastguard Worker<tr> 637*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>val</tt></i>:</span></td> 638*7c568831SAndroid Build Coastguard Worker<td>a boolean</td> 639*7c568831SAndroid Build Coastguard Worker</tr> 640*7c568831SAndroid Build Coastguard Worker<tr> 641*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 642*7c568831SAndroid Build Coastguard Worker<td>the number value</td> 643*7c568831SAndroid Build Coastguard Worker</tr> 644*7c568831SAndroid Build Coastguard Worker</tbody> 645*7c568831SAndroid Build Coastguard Worker</table></div> 646*7c568831SAndroid Build Coastguard Worker</div> 647*7c568831SAndroid Build Coastguard Worker<hr> 648*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 649*7c568831SAndroid Build Coastguard Worker<h3> 650*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathCastBooleanToString"></a>xmlXPathCastBooleanToString ()</h3> 651*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlXPathCastBooleanToString (int val)<br> 652*7c568831SAndroid Build Coastguard Worker</pre> 653*7c568831SAndroid Build Coastguard Worker<p>Converts a boolean to its string value.</p> 654*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 655*7c568831SAndroid Build Coastguard Worker<col align="left"> 656*7c568831SAndroid Build Coastguard Worker<tbody> 657*7c568831SAndroid Build Coastguard Worker<tr> 658*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>val</tt></i>:</span></td> 659*7c568831SAndroid Build Coastguard Worker<td>a boolean</td> 660*7c568831SAndroid Build Coastguard Worker</tr> 661*7c568831SAndroid Build Coastguard Worker<tr> 662*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 663*7c568831SAndroid Build Coastguard Worker<td>a newly allocated string.</td> 664*7c568831SAndroid Build Coastguard Worker</tr> 665*7c568831SAndroid Build Coastguard Worker</tbody> 666*7c568831SAndroid Build Coastguard Worker</table></div> 667*7c568831SAndroid Build Coastguard Worker</div> 668*7c568831SAndroid Build Coastguard Worker<hr> 669*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 670*7c568831SAndroid Build Coastguard Worker<h3> 671*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathCastNodeSetToBoolean"></a>xmlXPathCastNodeSetToBoolean ()</h3> 672*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlXPathCastNodeSetToBoolean (<a href="libxml2-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> ns)<br> 673*7c568831SAndroid Build Coastguard Worker</pre> 674*7c568831SAndroid Build Coastguard Worker<p>Converts a node-set to its boolean value</p> 675*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 676*7c568831SAndroid Build Coastguard Worker<col align="left"> 677*7c568831SAndroid Build Coastguard Worker<tbody> 678*7c568831SAndroid Build Coastguard Worker<tr> 679*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ns</tt></i>:</span></td> 680*7c568831SAndroid Build Coastguard Worker<td>a node-set</td> 681*7c568831SAndroid Build Coastguard Worker</tr> 682*7c568831SAndroid Build Coastguard Worker<tr> 683*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 684*7c568831SAndroid Build Coastguard Worker<td>the boolean value</td> 685*7c568831SAndroid Build Coastguard Worker</tr> 686*7c568831SAndroid Build Coastguard Worker</tbody> 687*7c568831SAndroid Build Coastguard Worker</table></div> 688*7c568831SAndroid Build Coastguard Worker</div> 689*7c568831SAndroid Build Coastguard Worker<hr> 690*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 691*7c568831SAndroid Build Coastguard Worker<h3> 692*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathCastNodeSetToNumber"></a>xmlXPathCastNodeSetToNumber ()</h3> 693*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">double xmlXPathCastNodeSetToNumber (<a href="libxml2-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> ns)<br> 694*7c568831SAndroid Build Coastguard Worker</pre> 695*7c568831SAndroid Build Coastguard Worker<p>Converts a node-set to its number value</p> 696*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 697*7c568831SAndroid Build Coastguard Worker<col align="left"> 698*7c568831SAndroid Build Coastguard Worker<tbody> 699*7c568831SAndroid Build Coastguard Worker<tr> 700*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ns</tt></i>:</span></td> 701*7c568831SAndroid Build Coastguard Worker<td>a node-set</td> 702*7c568831SAndroid Build Coastguard Worker</tr> 703*7c568831SAndroid Build Coastguard Worker<tr> 704*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 705*7c568831SAndroid Build Coastguard Worker<td>the number value</td> 706*7c568831SAndroid Build Coastguard Worker</tr> 707*7c568831SAndroid Build Coastguard Worker</tbody> 708*7c568831SAndroid Build Coastguard Worker</table></div> 709*7c568831SAndroid Build Coastguard Worker</div> 710*7c568831SAndroid Build Coastguard Worker<hr> 711*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 712*7c568831SAndroid Build Coastguard Worker<h3> 713*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathCastNodeSetToString"></a>xmlXPathCastNodeSetToString ()</h3> 714*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlXPathCastNodeSetToString (<a href="libxml2-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> ns)<br> 715*7c568831SAndroid Build Coastguard Worker</pre> 716*7c568831SAndroid Build Coastguard Worker<p>Converts a node-set to its string value.</p> 717*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 718*7c568831SAndroid Build Coastguard Worker<col align="left"> 719*7c568831SAndroid Build Coastguard Worker<tbody> 720*7c568831SAndroid Build Coastguard Worker<tr> 721*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ns</tt></i>:</span></td> 722*7c568831SAndroid Build Coastguard Worker<td>a node-set</td> 723*7c568831SAndroid Build Coastguard Worker</tr> 724*7c568831SAndroid Build Coastguard Worker<tr> 725*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 726*7c568831SAndroid Build Coastguard Worker<td>a newly allocated string.</td> 727*7c568831SAndroid Build Coastguard Worker</tr> 728*7c568831SAndroid Build Coastguard Worker</tbody> 729*7c568831SAndroid Build Coastguard Worker</table></div> 730*7c568831SAndroid Build Coastguard Worker</div> 731*7c568831SAndroid Build Coastguard Worker<hr> 732*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 733*7c568831SAndroid Build Coastguard Worker<h3> 734*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathCastNodeToNumber"></a>xmlXPathCastNodeToNumber ()</h3> 735*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">double xmlXPathCastNodeToNumber (<a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node)<br> 736*7c568831SAndroid Build Coastguard Worker</pre> 737*7c568831SAndroid Build Coastguard Worker<p>Converts a node to its number value</p> 738*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 739*7c568831SAndroid Build Coastguard Worker<col align="left"> 740*7c568831SAndroid Build Coastguard Worker<tbody> 741*7c568831SAndroid Build Coastguard Worker<tr> 742*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>node</tt></i>:</span></td> 743*7c568831SAndroid Build Coastguard Worker<td>a node</td> 744*7c568831SAndroid Build Coastguard Worker</tr> 745*7c568831SAndroid Build Coastguard Worker<tr> 746*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 747*7c568831SAndroid Build Coastguard Worker<td>the number value</td> 748*7c568831SAndroid Build Coastguard Worker</tr> 749*7c568831SAndroid Build Coastguard Worker</tbody> 750*7c568831SAndroid Build Coastguard Worker</table></div> 751*7c568831SAndroid Build Coastguard Worker</div> 752*7c568831SAndroid Build Coastguard Worker<hr> 753*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 754*7c568831SAndroid Build Coastguard Worker<h3> 755*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathCastNodeToString"></a>xmlXPathCastNodeToString ()</h3> 756*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlXPathCastNodeToString (<a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node)<br> 757*7c568831SAndroid Build Coastguard Worker</pre> 758*7c568831SAndroid Build Coastguard Worker<p>Converts a node to its string value.</p> 759*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 760*7c568831SAndroid Build Coastguard Worker<col align="left"> 761*7c568831SAndroid Build Coastguard Worker<tbody> 762*7c568831SAndroid Build Coastguard Worker<tr> 763*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>node</tt></i>:</span></td> 764*7c568831SAndroid Build Coastguard Worker<td>a node</td> 765*7c568831SAndroid Build Coastguard Worker</tr> 766*7c568831SAndroid Build Coastguard Worker<tr> 767*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 768*7c568831SAndroid Build Coastguard Worker<td>a newly allocated string.</td> 769*7c568831SAndroid Build Coastguard Worker</tr> 770*7c568831SAndroid Build Coastguard Worker</tbody> 771*7c568831SAndroid Build Coastguard Worker</table></div> 772*7c568831SAndroid Build Coastguard Worker</div> 773*7c568831SAndroid Build Coastguard Worker<hr> 774*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 775*7c568831SAndroid Build Coastguard Worker<h3> 776*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathCastNumberToBoolean"></a>xmlXPathCastNumberToBoolean ()</h3> 777*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlXPathCastNumberToBoolean (double val)<br> 778*7c568831SAndroid Build Coastguard Worker</pre> 779*7c568831SAndroid Build Coastguard Worker<p>Converts a number to its boolean value</p> 780*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 781*7c568831SAndroid Build Coastguard Worker<col align="left"> 782*7c568831SAndroid Build Coastguard Worker<tbody> 783*7c568831SAndroid Build Coastguard Worker<tr> 784*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>val</tt></i>:</span></td> 785*7c568831SAndroid Build Coastguard Worker<td>a number</td> 786*7c568831SAndroid Build Coastguard Worker</tr> 787*7c568831SAndroid Build Coastguard Worker<tr> 788*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 789*7c568831SAndroid Build Coastguard Worker<td>the boolean value</td> 790*7c568831SAndroid Build Coastguard Worker</tr> 791*7c568831SAndroid Build Coastguard Worker</tbody> 792*7c568831SAndroid Build Coastguard Worker</table></div> 793*7c568831SAndroid Build Coastguard Worker</div> 794*7c568831SAndroid Build Coastguard Worker<hr> 795*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 796*7c568831SAndroid Build Coastguard Worker<h3> 797*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathCastNumberToString"></a>xmlXPathCastNumberToString ()</h3> 798*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlXPathCastNumberToString (double val)<br> 799*7c568831SAndroid Build Coastguard Worker</pre> 800*7c568831SAndroid Build Coastguard Worker<p>Converts a number to its string value.</p> 801*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 802*7c568831SAndroid Build Coastguard Worker<col align="left"> 803*7c568831SAndroid Build Coastguard Worker<tbody> 804*7c568831SAndroid Build Coastguard Worker<tr> 805*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>val</tt></i>:</span></td> 806*7c568831SAndroid Build Coastguard Worker<td>a number</td> 807*7c568831SAndroid Build Coastguard Worker</tr> 808*7c568831SAndroid Build Coastguard Worker<tr> 809*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 810*7c568831SAndroid Build Coastguard Worker<td>a newly allocated string.</td> 811*7c568831SAndroid Build Coastguard Worker</tr> 812*7c568831SAndroid Build Coastguard Worker</tbody> 813*7c568831SAndroid Build Coastguard Worker</table></div> 814*7c568831SAndroid Build Coastguard Worker</div> 815*7c568831SAndroid Build Coastguard Worker<hr> 816*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 817*7c568831SAndroid Build Coastguard Worker<h3> 818*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathCastStringToBoolean"></a>xmlXPathCastStringToBoolean ()</h3> 819*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlXPathCastStringToBoolean (const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * val)<br> 820*7c568831SAndroid Build Coastguard Worker</pre> 821*7c568831SAndroid Build Coastguard Worker<p>Converts a string to its boolean value</p> 822*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 823*7c568831SAndroid Build Coastguard Worker<col align="left"> 824*7c568831SAndroid Build Coastguard Worker<tbody> 825*7c568831SAndroid Build Coastguard Worker<tr> 826*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>val</tt></i>:</span></td> 827*7c568831SAndroid Build Coastguard Worker<td>a string</td> 828*7c568831SAndroid Build Coastguard Worker</tr> 829*7c568831SAndroid Build Coastguard Worker<tr> 830*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 831*7c568831SAndroid Build Coastguard Worker<td>the boolean value</td> 832*7c568831SAndroid Build Coastguard Worker</tr> 833*7c568831SAndroid Build Coastguard Worker</tbody> 834*7c568831SAndroid Build Coastguard Worker</table></div> 835*7c568831SAndroid Build Coastguard Worker</div> 836*7c568831SAndroid Build Coastguard Worker<hr> 837*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 838*7c568831SAndroid Build Coastguard Worker<h3> 839*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathCastStringToNumber"></a>xmlXPathCastStringToNumber ()</h3> 840*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">double xmlXPathCastStringToNumber (const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * val)<br> 841*7c568831SAndroid Build Coastguard Worker</pre> 842*7c568831SAndroid Build Coastguard Worker<p>Converts a string to its number value</p> 843*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 844*7c568831SAndroid Build Coastguard Worker<col align="left"> 845*7c568831SAndroid Build Coastguard Worker<tbody> 846*7c568831SAndroid Build Coastguard Worker<tr> 847*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>val</tt></i>:</span></td> 848*7c568831SAndroid Build Coastguard Worker<td>a string</td> 849*7c568831SAndroid Build Coastguard Worker</tr> 850*7c568831SAndroid Build Coastguard Worker<tr> 851*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 852*7c568831SAndroid Build Coastguard Worker<td>the number value</td> 853*7c568831SAndroid Build Coastguard Worker</tr> 854*7c568831SAndroid Build Coastguard Worker</tbody> 855*7c568831SAndroid Build Coastguard Worker</table></div> 856*7c568831SAndroid Build Coastguard Worker</div> 857*7c568831SAndroid Build Coastguard Worker<hr> 858*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 859*7c568831SAndroid Build Coastguard Worker<h3> 860*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathCastToBoolean"></a>xmlXPathCastToBoolean ()</h3> 861*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlXPathCastToBoolean (<a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> val)<br> 862*7c568831SAndroid Build Coastguard Worker</pre> 863*7c568831SAndroid Build Coastguard Worker<p>Converts an XPath object to its boolean value</p> 864*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 865*7c568831SAndroid Build Coastguard Worker<col align="left"> 866*7c568831SAndroid Build Coastguard Worker<tbody> 867*7c568831SAndroid Build Coastguard Worker<tr> 868*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>val</tt></i>:</span></td> 869*7c568831SAndroid Build Coastguard Worker<td>an XPath object</td> 870*7c568831SAndroid Build Coastguard Worker</tr> 871*7c568831SAndroid Build Coastguard Worker<tr> 872*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 873*7c568831SAndroid Build Coastguard Worker<td>the boolean value</td> 874*7c568831SAndroid Build Coastguard Worker</tr> 875*7c568831SAndroid Build Coastguard Worker</tbody> 876*7c568831SAndroid Build Coastguard Worker</table></div> 877*7c568831SAndroid Build Coastguard Worker</div> 878*7c568831SAndroid Build Coastguard Worker<hr> 879*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 880*7c568831SAndroid Build Coastguard Worker<h3> 881*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathCastToNumber"></a>xmlXPathCastToNumber ()</h3> 882*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">double xmlXPathCastToNumber (<a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> val)<br> 883*7c568831SAndroid Build Coastguard Worker</pre> 884*7c568831SAndroid Build Coastguard Worker<p>Converts an XPath object to its number value</p> 885*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 886*7c568831SAndroid Build Coastguard Worker<col align="left"> 887*7c568831SAndroid Build Coastguard Worker<tbody> 888*7c568831SAndroid Build Coastguard Worker<tr> 889*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>val</tt></i>:</span></td> 890*7c568831SAndroid Build Coastguard Worker<td>an XPath object</td> 891*7c568831SAndroid Build Coastguard Worker</tr> 892*7c568831SAndroid Build Coastguard Worker<tr> 893*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 894*7c568831SAndroid Build Coastguard Worker<td>the number value</td> 895*7c568831SAndroid Build Coastguard Worker</tr> 896*7c568831SAndroid Build Coastguard Worker</tbody> 897*7c568831SAndroid Build Coastguard Worker</table></div> 898*7c568831SAndroid Build Coastguard Worker</div> 899*7c568831SAndroid Build Coastguard Worker<hr> 900*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 901*7c568831SAndroid Build Coastguard Worker<h3> 902*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathCastToString"></a>xmlXPathCastToString ()</h3> 903*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlXPathCastToString (<a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> val)<br> 904*7c568831SAndroid Build Coastguard Worker</pre> 905*7c568831SAndroid Build Coastguard Worker<p>Converts an existing object to its string() equivalent</p> 906*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 907*7c568831SAndroid Build Coastguard Worker<col align="left"> 908*7c568831SAndroid Build Coastguard Worker<tbody> 909*7c568831SAndroid Build Coastguard Worker<tr> 910*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>val</tt></i>:</span></td> 911*7c568831SAndroid Build Coastguard Worker<td>an XPath object</td> 912*7c568831SAndroid Build Coastguard Worker</tr> 913*7c568831SAndroid Build Coastguard Worker<tr> 914*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 915*7c568831SAndroid Build Coastguard Worker<td>the allocated string value of the object, NULL in case of error. It's up to the caller to free the string memory with xmlFree().</td> 916*7c568831SAndroid Build Coastguard Worker</tr> 917*7c568831SAndroid Build Coastguard Worker</tbody> 918*7c568831SAndroid Build Coastguard Worker</table></div> 919*7c568831SAndroid Build Coastguard Worker</div> 920*7c568831SAndroid Build Coastguard Worker<hr> 921*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 922*7c568831SAndroid Build Coastguard Worker<h3> 923*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathCmpNodes"></a>xmlXPathCmpNodes ()</h3> 924*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlXPathCmpNodes (<a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node1, <br> <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node2)<br> 925*7c568831SAndroid Build Coastguard Worker</pre> 926*7c568831SAndroid Build Coastguard Worker<p>Compare two nodes w.r.t document order</p> 927*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 928*7c568831SAndroid Build Coastguard Worker<col align="left"> 929*7c568831SAndroid Build Coastguard Worker<tbody> 930*7c568831SAndroid Build Coastguard Worker<tr> 931*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>node1</tt></i>:</span></td> 932*7c568831SAndroid Build Coastguard Worker<td>the first node</td> 933*7c568831SAndroid Build Coastguard Worker</tr> 934*7c568831SAndroid Build Coastguard Worker<tr> 935*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>node2</tt></i>:</span></td> 936*7c568831SAndroid Build Coastguard Worker<td>the second node</td> 937*7c568831SAndroid Build Coastguard Worker</tr> 938*7c568831SAndroid Build Coastguard Worker<tr> 939*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 940*7c568831SAndroid Build Coastguard Worker<td>-2 in case of error 1 if first point < second point, 0 if it's the same node, -1 otherwise</td> 941*7c568831SAndroid Build Coastguard Worker</tr> 942*7c568831SAndroid Build Coastguard Worker</tbody> 943*7c568831SAndroid Build Coastguard Worker</table></div> 944*7c568831SAndroid Build Coastguard Worker</div> 945*7c568831SAndroid Build Coastguard Worker<hr> 946*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 947*7c568831SAndroid Build Coastguard Worker<h3> 948*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathCompile"></a>xmlXPathCompile ()</h3> 949*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xpath.html#xmlXPathCompExprPtr">xmlXPathCompExprPtr</a> xmlXPathCompile (const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * str)<br> 950*7c568831SAndroid Build Coastguard Worker</pre> 951*7c568831SAndroid Build Coastguard Worker<p>Compile an XPath expression</p> 952*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 953*7c568831SAndroid Build Coastguard Worker<col align="left"> 954*7c568831SAndroid Build Coastguard Worker<tbody> 955*7c568831SAndroid Build Coastguard Worker<tr> 956*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>str</tt></i>:</span></td> 957*7c568831SAndroid Build Coastguard Worker<td>the XPath expression</td> 958*7c568831SAndroid Build Coastguard Worker</tr> 959*7c568831SAndroid Build Coastguard Worker<tr> 960*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 961*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xpath.html#xmlXPathCompExprPtr">xmlXPathCompExprPtr</a> resulting from the compilation or NULL. the caller has to free the object.</td> 962*7c568831SAndroid Build Coastguard Worker</tr> 963*7c568831SAndroid Build Coastguard Worker</tbody> 964*7c568831SAndroid Build Coastguard Worker</table></div> 965*7c568831SAndroid Build Coastguard Worker</div> 966*7c568831SAndroid Build Coastguard Worker<hr> 967*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 968*7c568831SAndroid Build Coastguard Worker<h3> 969*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathCompiledEval"></a>xmlXPathCompiledEval ()</h3> 970*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> xmlXPathCompiledEval (<a href="libxml2-xpath.html#xmlXPathCompExprPtr">xmlXPathCompExprPtr</a> comp, <br> <a href="libxml2-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctx)<br> 971*7c568831SAndroid Build Coastguard Worker</pre> 972*7c568831SAndroid Build Coastguard Worker<p>Evaluate the Precompiled XPath expression in the given context.</p> 973*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 974*7c568831SAndroid Build Coastguard Worker<col align="left"> 975*7c568831SAndroid Build Coastguard Worker<tbody> 976*7c568831SAndroid Build Coastguard Worker<tr> 977*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>comp</tt></i>:</span></td> 978*7c568831SAndroid Build Coastguard Worker<td>the compiled XPath expression</td> 979*7c568831SAndroid Build Coastguard Worker</tr> 980*7c568831SAndroid Build Coastguard Worker<tr> 981*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctx</tt></i>:</span></td> 982*7c568831SAndroid Build Coastguard Worker<td>the XPath context</td> 983*7c568831SAndroid Build Coastguard Worker</tr> 984*7c568831SAndroid Build Coastguard Worker<tr> 985*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 986*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> resulting from the evaluation or NULL. the caller has to free the object.</td> 987*7c568831SAndroid Build Coastguard Worker</tr> 988*7c568831SAndroid Build Coastguard Worker</tbody> 989*7c568831SAndroid Build Coastguard Worker</table></div> 990*7c568831SAndroid Build Coastguard Worker</div> 991*7c568831SAndroid Build Coastguard Worker<hr> 992*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 993*7c568831SAndroid Build Coastguard Worker<h3> 994*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathCompiledEvalToBoolean"></a>xmlXPathCompiledEvalToBoolean ()</h3> 995*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlXPathCompiledEvalToBoolean (<a href="libxml2-xpath.html#xmlXPathCompExprPtr">xmlXPathCompExprPtr</a> comp, <br> <a href="libxml2-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt)<br> 996*7c568831SAndroid Build Coastguard Worker</pre> 997*7c568831SAndroid Build Coastguard Worker<p>Applies the XPath boolean() function on the result of the given compiled expression.</p> 998*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 999*7c568831SAndroid Build Coastguard Worker<col align="left"> 1000*7c568831SAndroid Build Coastguard Worker<tbody> 1001*7c568831SAndroid Build Coastguard Worker<tr> 1002*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>comp</tt></i>:</span></td> 1003*7c568831SAndroid Build Coastguard Worker<td>the compiled XPath expression</td> 1004*7c568831SAndroid Build Coastguard Worker</tr> 1005*7c568831SAndroid Build Coastguard Worker<tr> 1006*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctxt</tt></i>:</span></td> 1007*7c568831SAndroid Build Coastguard Worker<td>the XPath context</td> 1008*7c568831SAndroid Build Coastguard Worker</tr> 1009*7c568831SAndroid Build Coastguard Worker<tr> 1010*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1011*7c568831SAndroid Build Coastguard Worker<td>1 if the expression evaluated to true, 0 if to false and -1 in API and internal errors.</td> 1012*7c568831SAndroid Build Coastguard Worker</tr> 1013*7c568831SAndroid Build Coastguard Worker</tbody> 1014*7c568831SAndroid Build Coastguard Worker</table></div> 1015*7c568831SAndroid Build Coastguard Worker</div> 1016*7c568831SAndroid Build Coastguard Worker<hr> 1017*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1018*7c568831SAndroid Build Coastguard Worker<h3> 1019*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathContextSetCache"></a>xmlXPathContextSetCache ()</h3> 1020*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlXPathContextSetCache (<a href="libxml2-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt, <br> int active, <br> int value, <br> int options)<br> 1021*7c568831SAndroid Build Coastguard Worker</pre> 1022*7c568831SAndroid Build Coastguard Worker<p>Creates/frees an object cache on the XPath context. If activates XPath objects (xmlXPathObject) will be cached internally to be reused. @options: 0: This will set the XPath object caching: @value: This will set the maximum number of XPath objects to be cached per slot There are two slots for node-set and misc objects. Use <0 for the default number (100). Other values for @options have currently no effect.</p> 1023*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1024*7c568831SAndroid Build Coastguard Worker<col align="left"> 1025*7c568831SAndroid Build Coastguard Worker<tbody> 1026*7c568831SAndroid Build Coastguard Worker<tr> 1027*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctxt</tt></i>:</span></td> 1028*7c568831SAndroid Build Coastguard Worker<td>the XPath context</td> 1029*7c568831SAndroid Build Coastguard Worker</tr> 1030*7c568831SAndroid Build Coastguard Worker<tr> 1031*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>active</tt></i>:</span></td> 1032*7c568831SAndroid Build Coastguard Worker<td>enables/disables (creates/frees) the cache</td> 1033*7c568831SAndroid Build Coastguard Worker</tr> 1034*7c568831SAndroid Build Coastguard Worker<tr> 1035*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>value</tt></i>:</span></td> 1036*7c568831SAndroid Build Coastguard Worker<td>a value with semantics dependent on @options</td> 1037*7c568831SAndroid Build Coastguard Worker</tr> 1038*7c568831SAndroid Build Coastguard Worker<tr> 1039*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>options</tt></i>:</span></td> 1040*7c568831SAndroid Build Coastguard Worker<td>options (currently only the value 0 is used)</td> 1041*7c568831SAndroid Build Coastguard Worker</tr> 1042*7c568831SAndroid Build Coastguard Worker<tr> 1043*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1044*7c568831SAndroid Build Coastguard Worker<td>0 if the setting succeeded, and -1 on API or internal errors.</td> 1045*7c568831SAndroid Build Coastguard Worker</tr> 1046*7c568831SAndroid Build Coastguard Worker</tbody> 1047*7c568831SAndroid Build Coastguard Worker</table></div> 1048*7c568831SAndroid Build Coastguard Worker</div> 1049*7c568831SAndroid Build Coastguard Worker<hr> 1050*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1051*7c568831SAndroid Build Coastguard Worker<h3> 1052*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathConvertBoolean"></a>xmlXPathConvertBoolean ()</h3> 1053*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> xmlXPathConvertBoolean (<a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> val)<br> 1054*7c568831SAndroid Build Coastguard Worker</pre> 1055*7c568831SAndroid Build Coastguard Worker<p>Converts an existing object to its boolean() equivalent</p> 1056*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1057*7c568831SAndroid Build Coastguard Worker<col align="left"> 1058*7c568831SAndroid Build Coastguard Worker<tbody> 1059*7c568831SAndroid Build Coastguard Worker<tr> 1060*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>val</tt></i>:</span></td> 1061*7c568831SAndroid Build Coastguard Worker<td>an XPath object</td> 1062*7c568831SAndroid Build Coastguard Worker</tr> 1063*7c568831SAndroid Build Coastguard Worker<tr> 1064*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1065*7c568831SAndroid Build Coastguard Worker<td>the new object, the old one is freed (or the operation is done directly on @val)</td> 1066*7c568831SAndroid Build Coastguard Worker</tr> 1067*7c568831SAndroid Build Coastguard Worker</tbody> 1068*7c568831SAndroid Build Coastguard Worker</table></div> 1069*7c568831SAndroid Build Coastguard Worker</div> 1070*7c568831SAndroid Build Coastguard Worker<hr> 1071*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1072*7c568831SAndroid Build Coastguard Worker<h3> 1073*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathConvertNumber"></a>xmlXPathConvertNumber ()</h3> 1074*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> xmlXPathConvertNumber (<a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> val)<br> 1075*7c568831SAndroid Build Coastguard Worker</pre> 1076*7c568831SAndroid Build Coastguard Worker<p>Converts an existing object to its number() equivalent</p> 1077*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1078*7c568831SAndroid Build Coastguard Worker<col align="left"> 1079*7c568831SAndroid Build Coastguard Worker<tbody> 1080*7c568831SAndroid Build Coastguard Worker<tr> 1081*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>val</tt></i>:</span></td> 1082*7c568831SAndroid Build Coastguard Worker<td>an XPath object</td> 1083*7c568831SAndroid Build Coastguard Worker</tr> 1084*7c568831SAndroid Build Coastguard Worker<tr> 1085*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1086*7c568831SAndroid Build Coastguard Worker<td>the new object, the old one is freed (or the operation is done directly on @val)</td> 1087*7c568831SAndroid Build Coastguard Worker</tr> 1088*7c568831SAndroid Build Coastguard Worker</tbody> 1089*7c568831SAndroid Build Coastguard Worker</table></div> 1090*7c568831SAndroid Build Coastguard Worker</div> 1091*7c568831SAndroid Build Coastguard Worker<hr> 1092*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1093*7c568831SAndroid Build Coastguard Worker<h3> 1094*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathConvertString"></a>xmlXPathConvertString ()</h3> 1095*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> xmlXPathConvertString (<a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> val)<br> 1096*7c568831SAndroid Build Coastguard Worker</pre> 1097*7c568831SAndroid Build Coastguard Worker<p>Converts an existing object to its string() equivalent</p> 1098*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1099*7c568831SAndroid Build Coastguard Worker<col align="left"> 1100*7c568831SAndroid Build Coastguard Worker<tbody> 1101*7c568831SAndroid Build Coastguard Worker<tr> 1102*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>val</tt></i>:</span></td> 1103*7c568831SAndroid Build Coastguard Worker<td>an XPath object</td> 1104*7c568831SAndroid Build Coastguard Worker</tr> 1105*7c568831SAndroid Build Coastguard Worker<tr> 1106*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1107*7c568831SAndroid Build Coastguard Worker<td>the new object, the old one is freed (or the operation is done directly on @val)</td> 1108*7c568831SAndroid Build Coastguard Worker</tr> 1109*7c568831SAndroid Build Coastguard Worker</tbody> 1110*7c568831SAndroid Build Coastguard Worker</table></div> 1111*7c568831SAndroid Build Coastguard Worker</div> 1112*7c568831SAndroid Build Coastguard Worker<hr> 1113*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1114*7c568831SAndroid Build Coastguard Worker<h3> 1115*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathCtxtCompile"></a>xmlXPathCtxtCompile ()</h3> 1116*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xpath.html#xmlXPathCompExprPtr">xmlXPathCompExprPtr</a> xmlXPathCtxtCompile (<a href="libxml2-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt, <br> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * str)<br> 1117*7c568831SAndroid Build Coastguard Worker</pre> 1118*7c568831SAndroid Build Coastguard Worker<p>Compile an XPath expression</p> 1119*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1120*7c568831SAndroid Build Coastguard Worker<col align="left"> 1121*7c568831SAndroid Build Coastguard Worker<tbody> 1122*7c568831SAndroid Build Coastguard Worker<tr> 1123*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctxt</tt></i>:</span></td> 1124*7c568831SAndroid Build Coastguard Worker<td>an XPath context</td> 1125*7c568831SAndroid Build Coastguard Worker</tr> 1126*7c568831SAndroid Build Coastguard Worker<tr> 1127*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>str</tt></i>:</span></td> 1128*7c568831SAndroid Build Coastguard Worker<td>the XPath expression</td> 1129*7c568831SAndroid Build Coastguard Worker</tr> 1130*7c568831SAndroid Build Coastguard Worker<tr> 1131*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1132*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xpath.html#xmlXPathCompExprPtr">xmlXPathCompExprPtr</a> resulting from the compilation or NULL. the caller has to free the object.</td> 1133*7c568831SAndroid Build Coastguard Worker</tr> 1134*7c568831SAndroid Build Coastguard Worker</tbody> 1135*7c568831SAndroid Build Coastguard Worker</table></div> 1136*7c568831SAndroid Build Coastguard Worker</div> 1137*7c568831SAndroid Build Coastguard Worker<hr> 1138*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1139*7c568831SAndroid Build Coastguard Worker<h3> 1140*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathEval"></a>xmlXPathEval ()</h3> 1141*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> xmlXPathEval (const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * str, <br> <a href="libxml2-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctx)<br> 1142*7c568831SAndroid Build Coastguard Worker</pre> 1143*7c568831SAndroid Build Coastguard Worker<p>Evaluate the XPath Location Path in the given context.</p> 1144*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1145*7c568831SAndroid Build Coastguard Worker<col align="left"> 1146*7c568831SAndroid Build Coastguard Worker<tbody> 1147*7c568831SAndroid Build Coastguard Worker<tr> 1148*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>str</tt></i>:</span></td> 1149*7c568831SAndroid Build Coastguard Worker<td>the XPath expression</td> 1150*7c568831SAndroid Build Coastguard Worker</tr> 1151*7c568831SAndroid Build Coastguard Worker<tr> 1152*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctx</tt></i>:</span></td> 1153*7c568831SAndroid Build Coastguard Worker<td>the XPath context</td> 1154*7c568831SAndroid Build Coastguard Worker</tr> 1155*7c568831SAndroid Build Coastguard Worker<tr> 1156*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1157*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> resulting from the evaluation or NULL. the caller has to free the object.</td> 1158*7c568831SAndroid Build Coastguard Worker</tr> 1159*7c568831SAndroid Build Coastguard Worker</tbody> 1160*7c568831SAndroid Build Coastguard Worker</table></div> 1161*7c568831SAndroid Build Coastguard Worker</div> 1162*7c568831SAndroid Build Coastguard Worker<hr> 1163*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1164*7c568831SAndroid Build Coastguard Worker<h3> 1165*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathEvalExpression"></a>xmlXPathEvalExpression ()</h3> 1166*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> xmlXPathEvalExpression (const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * str, <br> <a href="libxml2-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt)<br> 1167*7c568831SAndroid Build Coastguard Worker</pre> 1168*7c568831SAndroid Build Coastguard Worker<p>Alias for xmlXPathEval().</p> 1169*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1170*7c568831SAndroid Build Coastguard Worker<col align="left"> 1171*7c568831SAndroid Build Coastguard Worker<tbody> 1172*7c568831SAndroid Build Coastguard Worker<tr> 1173*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>str</tt></i>:</span></td> 1174*7c568831SAndroid Build Coastguard Worker<td>the XPath expression</td> 1175*7c568831SAndroid Build Coastguard Worker</tr> 1176*7c568831SAndroid Build Coastguard Worker<tr> 1177*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctxt</tt></i>:</span></td> 1178*7c568831SAndroid Build Coastguard Worker<td>the XPath context</td> 1179*7c568831SAndroid Build Coastguard Worker</tr> 1180*7c568831SAndroid Build Coastguard Worker<tr> 1181*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1182*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> resulting from the evaluation or NULL. the caller has to free the object.</td> 1183*7c568831SAndroid Build Coastguard Worker</tr> 1184*7c568831SAndroid Build Coastguard Worker</tbody> 1185*7c568831SAndroid Build Coastguard Worker</table></div> 1186*7c568831SAndroid Build Coastguard Worker</div> 1187*7c568831SAndroid Build Coastguard Worker<hr> 1188*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1189*7c568831SAndroid Build Coastguard Worker<h3> 1190*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathEvalPredicate"></a>xmlXPathEvalPredicate ()</h3> 1191*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlXPathEvalPredicate (<a href="libxml2-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt, <br> <a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> res)<br> 1192*7c568831SAndroid Build Coastguard Worker</pre> 1193*7c568831SAndroid Build Coastguard Worker<p>Evaluate a predicate result for the current node. A PredicateExpr is evaluated by evaluating the Expr and converting the result to a boolean. If the result is a number, the result will be converted to true if the number is equal to the position of the context node in the context node list (as returned by the position function) and will be converted to false otherwise; if the result is not a number, then the result will be converted as if by a call to the boolean function.</p> 1194*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1195*7c568831SAndroid Build Coastguard Worker<col align="left"> 1196*7c568831SAndroid Build Coastguard Worker<tbody> 1197*7c568831SAndroid Build Coastguard Worker<tr> 1198*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctxt</tt></i>:</span></td> 1199*7c568831SAndroid Build Coastguard Worker<td>the XPath context</td> 1200*7c568831SAndroid Build Coastguard Worker</tr> 1201*7c568831SAndroid Build Coastguard Worker<tr> 1202*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>res</tt></i>:</span></td> 1203*7c568831SAndroid Build Coastguard Worker<td>the Predicate Expression evaluation result</td> 1204*7c568831SAndroid Build Coastguard Worker</tr> 1205*7c568831SAndroid Build Coastguard Worker<tr> 1206*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1207*7c568831SAndroid Build Coastguard Worker<td>1 if predicate is true, 0 otherwise</td> 1208*7c568831SAndroid Build Coastguard Worker</tr> 1209*7c568831SAndroid Build Coastguard Worker</tbody> 1210*7c568831SAndroid Build Coastguard Worker</table></div> 1211*7c568831SAndroid Build Coastguard Worker</div> 1212*7c568831SAndroid Build Coastguard Worker<hr> 1213*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1214*7c568831SAndroid Build Coastguard Worker<h3> 1215*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathFreeCompExpr"></a>xmlXPathFreeCompExpr ()</h3> 1216*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">void xmlXPathFreeCompExpr (<a href="libxml2-xpath.html#xmlXPathCompExprPtr">xmlXPathCompExprPtr</a> comp)<br> 1217*7c568831SAndroid Build Coastguard Worker</pre> 1218*7c568831SAndroid Build Coastguard Worker<p>Free up the memory allocated by @comp</p> 1219*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1220*7c568831SAndroid Build Coastguard Worker<col align="left"> 1221*7c568831SAndroid Build Coastguard Worker<tbody><tr> 1222*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>comp</tt></i>:</span></td> 1223*7c568831SAndroid Build Coastguard Worker<td>an XPATH comp</td> 1224*7c568831SAndroid Build Coastguard Worker</tr></tbody> 1225*7c568831SAndroid Build Coastguard Worker</table></div> 1226*7c568831SAndroid Build Coastguard Worker</div> 1227*7c568831SAndroid Build Coastguard Worker<hr> 1228*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1229*7c568831SAndroid Build Coastguard Worker<h3> 1230*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathFreeContext"></a>xmlXPathFreeContext ()</h3> 1231*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">void xmlXPathFreeContext (<a href="libxml2-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt)<br> 1232*7c568831SAndroid Build Coastguard Worker</pre> 1233*7c568831SAndroid Build Coastguard Worker<p>Free up an <a href="libxml2-xpath.html#xmlXPathContext">xmlXPathContext</a></p> 1234*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1235*7c568831SAndroid Build Coastguard Worker<col align="left"> 1236*7c568831SAndroid Build Coastguard Worker<tbody><tr> 1237*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctxt</tt></i>:</span></td> 1238*7c568831SAndroid Build Coastguard Worker<td>the context to free</td> 1239*7c568831SAndroid Build Coastguard Worker</tr></tbody> 1240*7c568831SAndroid Build Coastguard Worker</table></div> 1241*7c568831SAndroid Build Coastguard Worker</div> 1242*7c568831SAndroid Build Coastguard Worker<hr> 1243*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1244*7c568831SAndroid Build Coastguard Worker<h3> 1245*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathFreeNodeSet"></a>xmlXPathFreeNodeSet ()</h3> 1246*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">void xmlXPathFreeNodeSet (<a href="libxml2-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> obj)<br> 1247*7c568831SAndroid Build Coastguard Worker</pre> 1248*7c568831SAndroid Build Coastguard Worker<p>Free the NodeSet compound (not the actual nodes !).</p> 1249*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1250*7c568831SAndroid Build Coastguard Worker<col align="left"> 1251*7c568831SAndroid Build Coastguard Worker<tbody><tr> 1252*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>obj</tt></i>:</span></td> 1253*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> to free</td> 1254*7c568831SAndroid Build Coastguard Worker</tr></tbody> 1255*7c568831SAndroid Build Coastguard Worker</table></div> 1256*7c568831SAndroid Build Coastguard Worker</div> 1257*7c568831SAndroid Build Coastguard Worker<hr> 1258*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1259*7c568831SAndroid Build Coastguard Worker<h3> 1260*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathFreeNodeSetList"></a>xmlXPathFreeNodeSetList ()</h3> 1261*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">void xmlXPathFreeNodeSetList (<a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> obj)<br> 1262*7c568831SAndroid Build Coastguard Worker</pre> 1263*7c568831SAndroid Build Coastguard Worker<p>Free up the <a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> @obj but don't deallocate the objects in the list contrary to xmlXPathFreeObject().</p> 1264*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1265*7c568831SAndroid Build Coastguard Worker<col align="left"> 1266*7c568831SAndroid Build Coastguard Worker<tbody><tr> 1267*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>obj</tt></i>:</span></td> 1268*7c568831SAndroid Build Coastguard Worker<td>an existing NodeSetList object</td> 1269*7c568831SAndroid Build Coastguard Worker</tr></tbody> 1270*7c568831SAndroid Build Coastguard Worker</table></div> 1271*7c568831SAndroid Build Coastguard Worker</div> 1272*7c568831SAndroid Build Coastguard Worker<hr> 1273*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1274*7c568831SAndroid Build Coastguard Worker<h3> 1275*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathFreeObject"></a>xmlXPathFreeObject ()</h3> 1276*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">void xmlXPathFreeObject (<a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> obj)<br> 1277*7c568831SAndroid Build Coastguard Worker</pre> 1278*7c568831SAndroid Build Coastguard Worker<p>Free up an <a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> object.</p> 1279*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1280*7c568831SAndroid Build Coastguard Worker<col align="left"> 1281*7c568831SAndroid Build Coastguard Worker<tbody><tr> 1282*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>obj</tt></i>:</span></td> 1283*7c568831SAndroid Build Coastguard Worker<td>the object to free</td> 1284*7c568831SAndroid Build Coastguard Worker</tr></tbody> 1285*7c568831SAndroid Build Coastguard Worker</table></div> 1286*7c568831SAndroid Build Coastguard Worker</div> 1287*7c568831SAndroid Build Coastguard Worker<hr> 1288*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1289*7c568831SAndroid Build Coastguard Worker<h3> 1290*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathInit"></a>xmlXPathInit ()</h3> 1291*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">void xmlXPathInit (void)<br> 1292*7c568831SAndroid Build Coastguard Worker</pre> 1293*7c568831SAndroid Build Coastguard Worker<p>DEPRECATED: Alias for <a href="libxml2-parser.html#xmlInitParser">xmlInitParser</a>.</p> 1294*7c568831SAndroid Build Coastguard Worker</div> 1295*7c568831SAndroid Build Coastguard Worker<hr> 1296*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1297*7c568831SAndroid Build Coastguard Worker<h3> 1298*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathIsInf"></a>xmlXPathIsInf ()</h3> 1299*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlXPathIsInf (double val)<br> 1300*7c568831SAndroid Build Coastguard Worker</pre> 1301*7c568831SAndroid Build Coastguard Worker<p>Checks whether a double is an infinity.</p> 1302*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1303*7c568831SAndroid Build Coastguard Worker<col align="left"> 1304*7c568831SAndroid Build Coastguard Worker<tbody> 1305*7c568831SAndroid Build Coastguard Worker<tr> 1306*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>val</tt></i>:</span></td> 1307*7c568831SAndroid Build Coastguard Worker<td>a double value</td> 1308*7c568831SAndroid Build Coastguard Worker</tr> 1309*7c568831SAndroid Build Coastguard Worker<tr> 1310*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1311*7c568831SAndroid Build Coastguard Worker<td>1 if the value is +Infinite, -1 if -Infinite, 0 otherwise</td> 1312*7c568831SAndroid Build Coastguard Worker</tr> 1313*7c568831SAndroid Build Coastguard Worker</tbody> 1314*7c568831SAndroid Build Coastguard Worker</table></div> 1315*7c568831SAndroid Build Coastguard Worker</div> 1316*7c568831SAndroid Build Coastguard Worker<hr> 1317*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1318*7c568831SAndroid Build Coastguard Worker<h3> 1319*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathIsNaN"></a>xmlXPathIsNaN ()</h3> 1320*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlXPathIsNaN (double val)<br> 1321*7c568831SAndroid Build Coastguard Worker</pre> 1322*7c568831SAndroid Build Coastguard Worker<p>Checks whether a double is a NaN.</p> 1323*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1324*7c568831SAndroid Build Coastguard Worker<col align="left"> 1325*7c568831SAndroid Build Coastguard Worker<tbody> 1326*7c568831SAndroid Build Coastguard Worker<tr> 1327*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>val</tt></i>:</span></td> 1328*7c568831SAndroid Build Coastguard Worker<td>a double value</td> 1329*7c568831SAndroid Build Coastguard Worker</tr> 1330*7c568831SAndroid Build Coastguard Worker<tr> 1331*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1332*7c568831SAndroid Build Coastguard Worker<td>1 if the value is a NaN, 0 otherwise</td> 1333*7c568831SAndroid Build Coastguard Worker</tr> 1334*7c568831SAndroid Build Coastguard Worker</tbody> 1335*7c568831SAndroid Build Coastguard Worker</table></div> 1336*7c568831SAndroid Build Coastguard Worker</div> 1337*7c568831SAndroid Build Coastguard Worker<hr> 1338*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1339*7c568831SAndroid Build Coastguard Worker<h3> 1340*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathNewContext"></a>xmlXPathNewContext ()</h3> 1341*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> xmlXPathNewContext (<a href="libxml2-tree.html#xmlDocPtr">xmlDocPtr</a> doc)<br> 1342*7c568831SAndroid Build Coastguard Worker</pre> 1343*7c568831SAndroid Build Coastguard Worker<p>Create a new <a href="libxml2-xpath.html#xmlXPathContext">xmlXPathContext</a></p> 1344*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1345*7c568831SAndroid Build Coastguard Worker<col align="left"> 1346*7c568831SAndroid Build Coastguard Worker<tbody> 1347*7c568831SAndroid Build Coastguard Worker<tr> 1348*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>doc</tt></i>:</span></td> 1349*7c568831SAndroid Build Coastguard Worker<td>the XML document</td> 1350*7c568831SAndroid Build Coastguard Worker</tr> 1351*7c568831SAndroid Build Coastguard Worker<tr> 1352*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1353*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xpath.html#xmlXPathContext">xmlXPathContext</a> just allocated. The caller will need to free it.</td> 1354*7c568831SAndroid Build Coastguard Worker</tr> 1355*7c568831SAndroid Build Coastguard Worker</tbody> 1356*7c568831SAndroid Build Coastguard Worker</table></div> 1357*7c568831SAndroid Build Coastguard Worker</div> 1358*7c568831SAndroid Build Coastguard Worker<hr> 1359*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1360*7c568831SAndroid Build Coastguard Worker<h3> 1361*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathNodeEval"></a>xmlXPathNodeEval ()</h3> 1362*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> xmlXPathNodeEval (<a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node, <br> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * str, <br> <a href="libxml2-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctx)<br> 1363*7c568831SAndroid Build Coastguard Worker</pre> 1364*7c568831SAndroid Build Coastguard Worker<p>Evaluate the XPath Location Path in the given context. The node 'node' is set as the context node. The context node is not restored.</p> 1365*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1366*7c568831SAndroid Build Coastguard Worker<col align="left"> 1367*7c568831SAndroid Build Coastguard Worker<tbody> 1368*7c568831SAndroid Build Coastguard Worker<tr> 1369*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>node</tt></i>:</span></td> 1370*7c568831SAndroid Build Coastguard Worker<td>the node to to use as the context node</td> 1371*7c568831SAndroid Build Coastguard Worker</tr> 1372*7c568831SAndroid Build Coastguard Worker<tr> 1373*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>str</tt></i>:</span></td> 1374*7c568831SAndroid Build Coastguard Worker<td>the XPath expression</td> 1375*7c568831SAndroid Build Coastguard Worker</tr> 1376*7c568831SAndroid Build Coastguard Worker<tr> 1377*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctx</tt></i>:</span></td> 1378*7c568831SAndroid Build Coastguard Worker<td>the XPath context</td> 1379*7c568831SAndroid Build Coastguard Worker</tr> 1380*7c568831SAndroid Build Coastguard Worker<tr> 1381*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1382*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> resulting from the evaluation or NULL. the caller has to free the object.</td> 1383*7c568831SAndroid Build Coastguard Worker</tr> 1384*7c568831SAndroid Build Coastguard Worker</tbody> 1385*7c568831SAndroid Build Coastguard Worker</table></div> 1386*7c568831SAndroid Build Coastguard Worker</div> 1387*7c568831SAndroid Build Coastguard Worker<hr> 1388*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1389*7c568831SAndroid Build Coastguard Worker<h3> 1390*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathNodeSetCreate"></a>xmlXPathNodeSetCreate ()</h3> 1391*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> xmlXPathNodeSetCreate (<a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> val)<br> 1392*7c568831SAndroid Build Coastguard Worker</pre> 1393*7c568831SAndroid Build Coastguard Worker<p>Create a new <a href="libxml2-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> of type double and of value @val</p> 1394*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1395*7c568831SAndroid Build Coastguard Worker<col align="left"> 1396*7c568831SAndroid Build Coastguard Worker<tbody> 1397*7c568831SAndroid Build Coastguard Worker<tr> 1398*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>val</tt></i>:</span></td> 1399*7c568831SAndroid Build Coastguard Worker<td>an initial xmlNodePtr, or NULL</td> 1400*7c568831SAndroid Build Coastguard Worker</tr> 1401*7c568831SAndroid Build Coastguard Worker<tr> 1402*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1403*7c568831SAndroid Build Coastguard Worker<td>the newly created object.</td> 1404*7c568831SAndroid Build Coastguard Worker</tr> 1405*7c568831SAndroid Build Coastguard Worker</tbody> 1406*7c568831SAndroid Build Coastguard Worker</table></div> 1407*7c568831SAndroid Build Coastguard Worker</div> 1408*7c568831SAndroid Build Coastguard Worker<hr> 1409*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1410*7c568831SAndroid Build Coastguard Worker<h3> 1411*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathObjectCopy"></a>xmlXPathObjectCopy ()</h3> 1412*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> xmlXPathObjectCopy (<a href="libxml2-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> val)<br> 1413*7c568831SAndroid Build Coastguard Worker</pre> 1414*7c568831SAndroid Build Coastguard Worker<p>allocate a new copy of a given object</p> 1415*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1416*7c568831SAndroid Build Coastguard Worker<col align="left"> 1417*7c568831SAndroid Build Coastguard Worker<tbody> 1418*7c568831SAndroid Build Coastguard Worker<tr> 1419*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>val</tt></i>:</span></td> 1420*7c568831SAndroid Build Coastguard Worker<td>the original object</td> 1421*7c568831SAndroid Build Coastguard Worker</tr> 1422*7c568831SAndroid Build Coastguard Worker<tr> 1423*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1424*7c568831SAndroid Build Coastguard Worker<td>the newly created object.</td> 1425*7c568831SAndroid Build Coastguard Worker</tr> 1426*7c568831SAndroid Build Coastguard Worker</tbody> 1427*7c568831SAndroid Build Coastguard Worker</table></div> 1428*7c568831SAndroid Build Coastguard Worker</div> 1429*7c568831SAndroid Build Coastguard Worker<hr> 1430*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1431*7c568831SAndroid Build Coastguard Worker<h3> 1432*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathOrderDocElems"></a>xmlXPathOrderDocElems ()</h3> 1433*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">long xmlXPathOrderDocElems (<a href="libxml2-tree.html#xmlDocPtr">xmlDocPtr</a> doc)<br> 1434*7c568831SAndroid Build Coastguard Worker</pre> 1435*7c568831SAndroid Build Coastguard Worker<p>Call this routine to speed up XPath computation on static documents. This stamps all the element nodes with the document order Like for line information, the order is kept in the element->content field, the value stored is actually - the node number (starting at -1) to be able to differentiate from line numbers.</p> 1436*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1437*7c568831SAndroid Build Coastguard Worker<col align="left"> 1438*7c568831SAndroid Build Coastguard Worker<tbody> 1439*7c568831SAndroid Build Coastguard Worker<tr> 1440*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>doc</tt></i>:</span></td> 1441*7c568831SAndroid Build Coastguard Worker<td>an input document</td> 1442*7c568831SAndroid Build Coastguard Worker</tr> 1443*7c568831SAndroid Build Coastguard Worker<tr> 1444*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1445*7c568831SAndroid Build Coastguard Worker<td>the number of elements found in the document or -1 in case of error.</td> 1446*7c568831SAndroid Build Coastguard Worker</tr> 1447*7c568831SAndroid Build Coastguard Worker</tbody> 1448*7c568831SAndroid Build Coastguard Worker</table></div> 1449*7c568831SAndroid Build Coastguard Worker</div> 1450*7c568831SAndroid Build Coastguard Worker<hr> 1451*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1452*7c568831SAndroid Build Coastguard Worker<h3> 1453*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathSetContextNode"></a>xmlXPathSetContextNode ()</h3> 1454*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlXPathSetContextNode (<a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node, <br> <a href="libxml2-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctx)<br> 1455*7c568831SAndroid Build Coastguard Worker</pre> 1456*7c568831SAndroid Build Coastguard Worker<p>Sets 'node' as the context node. The node must be in the same document as that associated with the context.</p> 1457*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1458*7c568831SAndroid Build Coastguard Worker<col align="left"> 1459*7c568831SAndroid Build Coastguard Worker<tbody> 1460*7c568831SAndroid Build Coastguard Worker<tr> 1461*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>node</tt></i>:</span></td> 1462*7c568831SAndroid Build Coastguard Worker<td>the node to to use as the context node</td> 1463*7c568831SAndroid Build Coastguard Worker</tr> 1464*7c568831SAndroid Build Coastguard Worker<tr> 1465*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctx</tt></i>:</span></td> 1466*7c568831SAndroid Build Coastguard Worker<td>the XPath context</td> 1467*7c568831SAndroid Build Coastguard Worker</tr> 1468*7c568831SAndroid Build Coastguard Worker<tr> 1469*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1470*7c568831SAndroid Build Coastguard Worker<td>-1 in case of error or 0 if successful</td> 1471*7c568831SAndroid Build Coastguard Worker</tr> 1472*7c568831SAndroid Build Coastguard Worker</tbody> 1473*7c568831SAndroid Build Coastguard Worker</table></div> 1474*7c568831SAndroid Build Coastguard Worker</div> 1475*7c568831SAndroid Build Coastguard Worker<hr> 1476*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1477*7c568831SAndroid Build Coastguard Worker<h3> 1478*7c568831SAndroid Build Coastguard Worker<a name="xmlXPathSetErrorHandler"></a>xmlXPathSetErrorHandler ()</h3> 1479*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">void xmlXPathSetErrorHandler (<a href="libxml2-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt, <br> <a href="libxml2-xmlerror.html#xmlStructuredErrorFunc">xmlStructuredErrorFunc</a> handler, <br> void * data)<br> 1480*7c568831SAndroid Build Coastguard Worker</pre> 1481*7c568831SAndroid Build Coastguard Worker<p>Register a callback function that will be called on errors and warnings. If handler is NULL, the error handler will be deactivated. Available since 2.13.0.</p> 1482*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1483*7c568831SAndroid Build Coastguard Worker<col align="left"> 1484*7c568831SAndroid Build Coastguard Worker<tbody> 1485*7c568831SAndroid Build Coastguard Worker<tr> 1486*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctxt</tt></i>:</span></td> 1487*7c568831SAndroid Build Coastguard Worker<td>the XPath context</td> 1488*7c568831SAndroid Build Coastguard Worker</tr> 1489*7c568831SAndroid Build Coastguard Worker<tr> 1490*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>handler</tt></i>:</span></td> 1491*7c568831SAndroid Build Coastguard Worker<td>error handler</td> 1492*7c568831SAndroid Build Coastguard Worker</tr> 1493*7c568831SAndroid Build Coastguard Worker<tr> 1494*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>data</tt></i>:</span></td> 1495*7c568831SAndroid Build Coastguard Worker<td>user data which will be passed to the handler</td> 1496*7c568831SAndroid Build Coastguard Worker</tr> 1497*7c568831SAndroid Build Coastguard Worker</tbody> 1498*7c568831SAndroid Build Coastguard Worker</table></div> 1499*7c568831SAndroid Build Coastguard Worker</div> 1500*7c568831SAndroid Build Coastguard Worker<hr> 1501*7c568831SAndroid Build Coastguard Worker</div> 1502*7c568831SAndroid Build Coastguard Worker</div> 1503*7c568831SAndroid Build Coastguard Worker</body> 1504*7c568831SAndroid Build Coastguard Worker</html> 1505