xref: /aosp_15_r20/external/libxml2/doc/devhelp/libxml2-pattern.html (revision 7c5688314b92172186c154356a6374bf7684c3ca)
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>pattern: pattern expression handling</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-parserInternals.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-relaxng.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">pattern</span></h2>
20*7c568831SAndroid Build Coastguard Worker<p>pattern - pattern expression handling</p>
21*7c568831SAndroid Build Coastguard Worker<p>allows to compile and test pattern expressions for nodes either in a tree or based on a parser state. </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">typedef struct _xmlPattern <a href="#xmlPattern">xmlPattern</a>;
26*7c568831SAndroid Build Coastguard Workertypedef enum <a href="#xmlPatternFlags">xmlPatternFlags</a>;
27*7c568831SAndroid Build Coastguard Workertypedef <a href="libxml2-pattern.html#xmlPattern">xmlPattern</a> * <a href="#xmlPatternPtr">xmlPatternPtr</a>;
28*7c568831SAndroid Build Coastguard Workertypedef struct _xmlStreamCtxt <a href="#xmlStreamCtxt">xmlStreamCtxt</a>;
29*7c568831SAndroid Build Coastguard Workertypedef <a href="libxml2-pattern.html#xmlStreamCtxt">xmlStreamCtxt</a> * <a href="#xmlStreamCtxtPtr">xmlStreamCtxtPtr</a>;
30*7c568831SAndroid Build Coastguard Workervoid	<a href="#xmlFreePattern">xmlFreePattern</a>			(<a href="libxml2-pattern.html#xmlPatternPtr">xmlPatternPtr</a> comp);
31*7c568831SAndroid Build Coastguard Workervoid	<a href="#xmlFreePatternList">xmlFreePatternList</a>		(<a href="libxml2-pattern.html#xmlPatternPtr">xmlPatternPtr</a> comp);
32*7c568831SAndroid Build Coastguard Workervoid	<a href="#xmlFreeStreamCtxt">xmlFreeStreamCtxt</a>		(<a href="libxml2-pattern.html#xmlStreamCtxtPtr">xmlStreamCtxtPtr</a> stream);
33*7c568831SAndroid Build Coastguard Workerint	<a href="#xmlPatternCompileSafe">xmlPatternCompileSafe</a>		(const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * pattern, <br>					 <a href="libxml2-dict.html#xmlDict">xmlDict</a> * dict, <br>					 int flags, <br>					 const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> ** namespaces, <br>					 <a href="libxml2-pattern.html#xmlPatternPtr">xmlPatternPtr</a> * patternOut);
34*7c568831SAndroid Build Coastguard Workerint	<a href="#xmlPatternFromRoot">xmlPatternFromRoot</a>		(<a href="libxml2-pattern.html#xmlPatternPtr">xmlPatternPtr</a> comp);
35*7c568831SAndroid Build Coastguard Worker<a href="libxml2-pattern.html#xmlStreamCtxtPtr">xmlStreamCtxtPtr</a>	<a href="#xmlPatternGetStreamCtxt">xmlPatternGetStreamCtxt</a>	(<a href="libxml2-pattern.html#xmlPatternPtr">xmlPatternPtr</a> comp);
36*7c568831SAndroid Build Coastguard Workerint	<a href="#xmlPatternMatch">xmlPatternMatch</a>			(<a href="libxml2-pattern.html#xmlPatternPtr">xmlPatternPtr</a> comp, <br>					 <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node);
37*7c568831SAndroid Build Coastguard Workerint	<a href="#xmlPatternMaxDepth">xmlPatternMaxDepth</a>		(<a href="libxml2-pattern.html#xmlPatternPtr">xmlPatternPtr</a> comp);
38*7c568831SAndroid Build Coastguard Workerint	<a href="#xmlPatternMinDepth">xmlPatternMinDepth</a>		(<a href="libxml2-pattern.html#xmlPatternPtr">xmlPatternPtr</a> comp);
39*7c568831SAndroid Build Coastguard Workerint	<a href="#xmlPatternStreamable">xmlPatternStreamable</a>		(<a href="libxml2-pattern.html#xmlPatternPtr">xmlPatternPtr</a> comp);
40*7c568831SAndroid Build Coastguard Worker<a href="libxml2-pattern.html#xmlPatternPtr">xmlPatternPtr</a>	<a href="#xmlPatterncompile">xmlPatterncompile</a>	(const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * pattern, <br>					 <a href="libxml2-dict.html#xmlDict">xmlDict</a> * dict, <br>					 int flags, <br>					 const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> ** namespaces);
41*7c568831SAndroid Build Coastguard Workerint	<a href="#xmlStreamPop">xmlStreamPop</a>			(<a href="libxml2-pattern.html#xmlStreamCtxtPtr">xmlStreamCtxtPtr</a> stream);
42*7c568831SAndroid Build Coastguard Workerint	<a href="#xmlStreamPush">xmlStreamPush</a>			(<a href="libxml2-pattern.html#xmlStreamCtxtPtr">xmlStreamCtxtPtr</a> stream, <br>					 const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * name, <br>					 const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * ns);
43*7c568831SAndroid Build Coastguard Workerint	<a href="#xmlStreamPushAttr">xmlStreamPushAttr</a>		(<a href="libxml2-pattern.html#xmlStreamCtxtPtr">xmlStreamCtxtPtr</a> stream, <br>					 const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * name, <br>					 const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * ns);
44*7c568831SAndroid Build Coastguard Workerint	<a href="#xmlStreamPushNode">xmlStreamPushNode</a>		(<a href="libxml2-pattern.html#xmlStreamCtxtPtr">xmlStreamCtxtPtr</a> stream, <br>					 const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * name, <br>					 const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * ns, <br>					 int nodeType);
45*7c568831SAndroid Build Coastguard Workerint	<a href="#xmlStreamWantsAnyNode">xmlStreamWantsAnyNode</a>		(<a href="libxml2-pattern.html#xmlStreamCtxtPtr">xmlStreamCtxtPtr</a> streamCtxt);
46*7c568831SAndroid Build Coastguard Worker</pre>
47*7c568831SAndroid Build Coastguard Worker</div>
48*7c568831SAndroid Build Coastguard Worker<div class="refsect1" lang="en"><h2>Description</h2></div>
49*7c568831SAndroid Build Coastguard Worker<div class="refsect1" lang="en">
50*7c568831SAndroid Build Coastguard Worker<h2>Details</h2>
51*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
52*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
53*7c568831SAndroid Build Coastguard Worker<h3>
54*7c568831SAndroid Build Coastguard Worker<a name="xmlPattern">Structure </a>xmlPattern</h3>
55*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">struct _xmlPattern {
56*7c568831SAndroid Build Coastguard WorkerThe content of this structure is not made public by the API.
57*7c568831SAndroid Build Coastguard Worker} xmlPattern;
58*7c568831SAndroid Build Coastguard Worker</pre>
59*7c568831SAndroid Build Coastguard Worker<p></p>
60*7c568831SAndroid Build Coastguard Worker</div>
61*7c568831SAndroid Build Coastguard Worker<hr>
62*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
63*7c568831SAndroid Build Coastguard Worker<h3>
64*7c568831SAndroid Build Coastguard Worker<a name="xmlPatternFlags">Enum </a>xmlPatternFlags</h3>
65*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">enum <a href="#xmlPatternFlags">xmlPatternFlags</a> {
66*7c568831SAndroid Build Coastguard Worker    <a name="XML_PATTERN_DEFAULT">XML_PATTERN_DEFAULT</a> = 0 /* simple pattern match */
67*7c568831SAndroid Build Coastguard Worker    <a name="XML_PATTERN_XPATH">XML_PATTERN_XPATH</a> = 1 /* standard XPath pattern */
68*7c568831SAndroid Build Coastguard Worker    <a name="XML_PATTERN_XSSEL">XML_PATTERN_XSSEL</a> = 2 /* XPath subset for schema selector */
69*7c568831SAndroid Build Coastguard Worker    <a name="XML_PATTERN_XSFIELD">XML_PATTERN_XSFIELD</a> = 4 /*  XPath subset for schema field */
70*7c568831SAndroid Build Coastguard Worker};
71*7c568831SAndroid Build Coastguard Worker</pre>
72*7c568831SAndroid Build Coastguard Worker<p></p>
73*7c568831SAndroid Build Coastguard Worker</div>
74*7c568831SAndroid Build Coastguard Worker<hr>
75*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
76*7c568831SAndroid Build Coastguard Worker<h3>
77*7c568831SAndroid Build Coastguard Worker<a name="xmlPatternPtr">Typedef </a>xmlPatternPtr</h3>
78*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-pattern.html#xmlPattern">xmlPattern</a> * xmlPatternPtr;
79*7c568831SAndroid Build Coastguard Worker</pre>
80*7c568831SAndroid Build Coastguard Worker<p></p>
81*7c568831SAndroid Build Coastguard Worker</div>
82*7c568831SAndroid Build Coastguard Worker<hr>
83*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
84*7c568831SAndroid Build Coastguard Worker<h3>
85*7c568831SAndroid Build Coastguard Worker<a name="xmlStreamCtxt">Structure </a>xmlStreamCtxt</h3>
86*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">struct _xmlStreamCtxt {
87*7c568831SAndroid Build Coastguard WorkerThe content of this structure is not made public by the API.
88*7c568831SAndroid Build Coastguard Worker} xmlStreamCtxt;
89*7c568831SAndroid Build Coastguard Worker</pre>
90*7c568831SAndroid Build Coastguard Worker<p></p>
91*7c568831SAndroid Build Coastguard Worker</div>
92*7c568831SAndroid Build Coastguard Worker<hr>
93*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
94*7c568831SAndroid Build Coastguard Worker<h3>
95*7c568831SAndroid Build Coastguard Worker<a name="xmlStreamCtxtPtr">Typedef </a>xmlStreamCtxtPtr</h3>
96*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-pattern.html#xmlStreamCtxt">xmlStreamCtxt</a> * xmlStreamCtxtPtr;
97*7c568831SAndroid Build Coastguard Worker</pre>
98*7c568831SAndroid Build Coastguard Worker<p></p>
99*7c568831SAndroid Build Coastguard Worker</div>
100*7c568831SAndroid Build Coastguard Worker<hr>
101*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
102*7c568831SAndroid Build Coastguard Worker<h3>
103*7c568831SAndroid Build Coastguard Worker<a name="xmlFreePattern"></a>xmlFreePattern ()</h3>
104*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">void	xmlFreePattern			(<a href="libxml2-pattern.html#xmlPatternPtr">xmlPatternPtr</a> comp)<br>
105*7c568831SAndroid Build Coastguard Worker</pre>
106*7c568831SAndroid Build Coastguard Worker<p>Free up the memory allocated by @comp</p>
107*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
108*7c568831SAndroid Build Coastguard Worker<col align="left">
109*7c568831SAndroid Build Coastguard Worker<tbody><tr>
110*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>comp</tt></i>:</span></td>
111*7c568831SAndroid Build Coastguard Worker<td>an XSLT comp</td>
112*7c568831SAndroid Build Coastguard Worker</tr></tbody>
113*7c568831SAndroid Build Coastguard Worker</table></div>
114*7c568831SAndroid Build Coastguard Worker</div>
115*7c568831SAndroid Build Coastguard Worker<hr>
116*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
117*7c568831SAndroid Build Coastguard Worker<h3>
118*7c568831SAndroid Build Coastguard Worker<a name="xmlFreePatternList"></a>xmlFreePatternList ()</h3>
119*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">void	xmlFreePatternList		(<a href="libxml2-pattern.html#xmlPatternPtr">xmlPatternPtr</a> comp)<br>
120*7c568831SAndroid Build Coastguard Worker</pre>
121*7c568831SAndroid Build Coastguard Worker<p>Free up the memory allocated by all the elements of @comp</p>
122*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
123*7c568831SAndroid Build Coastguard Worker<col align="left">
124*7c568831SAndroid Build Coastguard Worker<tbody><tr>
125*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>comp</tt></i>:</span></td>
126*7c568831SAndroid Build Coastguard Worker<td>an XSLT comp list</td>
127*7c568831SAndroid Build Coastguard Worker</tr></tbody>
128*7c568831SAndroid Build Coastguard Worker</table></div>
129*7c568831SAndroid Build Coastguard Worker</div>
130*7c568831SAndroid Build Coastguard Worker<hr>
131*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
132*7c568831SAndroid Build Coastguard Worker<h3>
133*7c568831SAndroid Build Coastguard Worker<a name="xmlFreeStreamCtxt"></a>xmlFreeStreamCtxt ()</h3>
134*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">void	xmlFreeStreamCtxt		(<a href="libxml2-pattern.html#xmlStreamCtxtPtr">xmlStreamCtxtPtr</a> stream)<br>
135*7c568831SAndroid Build Coastguard Worker</pre>
136*7c568831SAndroid Build Coastguard Worker<p>Free the stream context</p>
137*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
138*7c568831SAndroid Build Coastguard Worker<col align="left">
139*7c568831SAndroid Build Coastguard Worker<tbody><tr>
140*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>stream</tt></i>:</span></td>
141*7c568831SAndroid Build Coastguard Worker<td>the stream context</td>
142*7c568831SAndroid Build Coastguard Worker</tr></tbody>
143*7c568831SAndroid Build Coastguard Worker</table></div>
144*7c568831SAndroid Build Coastguard Worker</div>
145*7c568831SAndroid Build Coastguard Worker<hr>
146*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
147*7c568831SAndroid Build Coastguard Worker<h3>
148*7c568831SAndroid Build Coastguard Worker<a name="xmlPatternCompileSafe"></a>xmlPatternCompileSafe ()</h3>
149*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int	xmlPatternCompileSafe		(const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * pattern, <br>					 <a href="libxml2-dict.html#xmlDict">xmlDict</a> * dict, <br>					 int flags, <br>					 const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> ** namespaces, <br>					 <a href="libxml2-pattern.html#xmlPatternPtr">xmlPatternPtr</a> * patternOut)<br>
150*7c568831SAndroid Build Coastguard Worker</pre>
151*7c568831SAndroid Build Coastguard Worker<p>Compile a pattern. Available since 2.13.0.</p>
152*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
153*7c568831SAndroid Build Coastguard Worker<col align="left">
154*7c568831SAndroid Build Coastguard Worker<tbody>
155*7c568831SAndroid Build Coastguard Worker<tr>
156*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>pattern</tt></i>:</span></td>
157*7c568831SAndroid Build Coastguard Worker<td>the pattern to compile</td>
158*7c568831SAndroid Build Coastguard Worker</tr>
159*7c568831SAndroid Build Coastguard Worker<tr>
160*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>dict</tt></i>:</span></td>
161*7c568831SAndroid Build Coastguard Worker<td>an optional dictionary for interned strings</td>
162*7c568831SAndroid Build Coastguard Worker</tr>
163*7c568831SAndroid Build Coastguard Worker<tr>
164*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>flags</tt></i>:</span></td>
165*7c568831SAndroid Build Coastguard Worker<td>compilation flags, see <a href="libxml2-pattern.html#xmlPatternFlags">xmlPatternFlags</a>
166*7c568831SAndroid Build Coastguard Worker</td>
167*7c568831SAndroid Build Coastguard Worker</tr>
168*7c568831SAndroid Build Coastguard Worker<tr>
169*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>namespaces</tt></i>:</span></td>
170*7c568831SAndroid Build Coastguard Worker<td>the prefix definitions, array of [URI, prefix] or NULL</td>
171*7c568831SAndroid Build Coastguard Worker</tr>
172*7c568831SAndroid Build Coastguard Worker<tr>
173*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>patternOut</tt></i>:</span></td>
174*7c568831SAndroid Build Coastguard Worker<td>output pattern</td>
175*7c568831SAndroid Build Coastguard Worker</tr>
176*7c568831SAndroid Build Coastguard Worker<tr>
177*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
178*7c568831SAndroid Build Coastguard Worker<td>0 on success, 1 on error, -1 if a memory allocation failed.</td>
179*7c568831SAndroid Build Coastguard Worker</tr>
180*7c568831SAndroid Build Coastguard Worker</tbody>
181*7c568831SAndroid Build Coastguard Worker</table></div>
182*7c568831SAndroid Build Coastguard Worker</div>
183*7c568831SAndroid Build Coastguard Worker<hr>
184*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
185*7c568831SAndroid Build Coastguard Worker<h3>
186*7c568831SAndroid Build Coastguard Worker<a name="xmlPatternFromRoot"></a>xmlPatternFromRoot ()</h3>
187*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int	xmlPatternFromRoot		(<a href="libxml2-pattern.html#xmlPatternPtr">xmlPatternPtr</a> comp)<br>
188*7c568831SAndroid Build Coastguard Worker</pre>
189*7c568831SAndroid Build Coastguard Worker<p>Check if the pattern must be looked at from the root.</p>
190*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
191*7c568831SAndroid Build Coastguard Worker<col align="left">
192*7c568831SAndroid Build Coastguard Worker<tbody>
193*7c568831SAndroid Build Coastguard Worker<tr>
194*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>comp</tt></i>:</span></td>
195*7c568831SAndroid Build Coastguard Worker<td>the precompiled pattern</td>
196*7c568831SAndroid Build Coastguard Worker</tr>
197*7c568831SAndroid Build Coastguard Worker<tr>
198*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
199*7c568831SAndroid Build Coastguard Worker<td>1 if true, 0 if false and -1 in case of error</td>
200*7c568831SAndroid Build Coastguard Worker</tr>
201*7c568831SAndroid Build Coastguard Worker</tbody>
202*7c568831SAndroid Build Coastguard Worker</table></div>
203*7c568831SAndroid Build Coastguard Worker</div>
204*7c568831SAndroid Build Coastguard Worker<hr>
205*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
206*7c568831SAndroid Build Coastguard Worker<h3>
207*7c568831SAndroid Build Coastguard Worker<a name="xmlPatternGetStreamCtxt"></a>xmlPatternGetStreamCtxt ()</h3>
208*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-pattern.html#xmlStreamCtxtPtr">xmlStreamCtxtPtr</a>	xmlPatternGetStreamCtxt	(<a href="libxml2-pattern.html#xmlPatternPtr">xmlPatternPtr</a> comp)<br>
209*7c568831SAndroid Build Coastguard Worker</pre>
210*7c568831SAndroid Build Coastguard Worker<p>Get a streaming context for that pattern Use <a href="libxml2-pattern.html#xmlFreeStreamCtxt">xmlFreeStreamCtxt</a> to free the context.</p>
211*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
212*7c568831SAndroid Build Coastguard Worker<col align="left">
213*7c568831SAndroid Build Coastguard Worker<tbody>
214*7c568831SAndroid Build Coastguard Worker<tr>
215*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>comp</tt></i>:</span></td>
216*7c568831SAndroid Build Coastguard Worker<td>the precompiled pattern</td>
217*7c568831SAndroid Build Coastguard Worker</tr>
218*7c568831SAndroid Build Coastguard Worker<tr>
219*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
220*7c568831SAndroid Build Coastguard Worker<td>a pointer to the context or NULL in case of failure</td>
221*7c568831SAndroid Build Coastguard Worker</tr>
222*7c568831SAndroid Build Coastguard Worker</tbody>
223*7c568831SAndroid Build Coastguard Worker</table></div>
224*7c568831SAndroid Build Coastguard Worker</div>
225*7c568831SAndroid Build Coastguard Worker<hr>
226*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
227*7c568831SAndroid Build Coastguard Worker<h3>
228*7c568831SAndroid Build Coastguard Worker<a name="xmlPatternMatch"></a>xmlPatternMatch ()</h3>
229*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int	xmlPatternMatch			(<a href="libxml2-pattern.html#xmlPatternPtr">xmlPatternPtr</a> comp, <br>					 <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> node)<br>
230*7c568831SAndroid Build Coastguard Worker</pre>
231*7c568831SAndroid Build Coastguard Worker<p>Test whether the node matches the pattern</p>
232*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
233*7c568831SAndroid Build Coastguard Worker<col align="left">
234*7c568831SAndroid Build Coastguard Worker<tbody>
235*7c568831SAndroid Build Coastguard Worker<tr>
236*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>comp</tt></i>:</span></td>
237*7c568831SAndroid Build Coastguard Worker<td>the precompiled pattern</td>
238*7c568831SAndroid Build Coastguard Worker</tr>
239*7c568831SAndroid Build Coastguard Worker<tr>
240*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>node</tt></i>:</span></td>
241*7c568831SAndroid Build Coastguard Worker<td>a node</td>
242*7c568831SAndroid Build Coastguard Worker</tr>
243*7c568831SAndroid Build Coastguard Worker<tr>
244*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
245*7c568831SAndroid Build Coastguard Worker<td>1 if it matches, 0 if it doesn't and -1 in case of failure</td>
246*7c568831SAndroid Build Coastguard Worker</tr>
247*7c568831SAndroid Build Coastguard Worker</tbody>
248*7c568831SAndroid Build Coastguard Worker</table></div>
249*7c568831SAndroid Build Coastguard Worker</div>
250*7c568831SAndroid Build Coastguard Worker<hr>
251*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
252*7c568831SAndroid Build Coastguard Worker<h3>
253*7c568831SAndroid Build Coastguard Worker<a name="xmlPatternMaxDepth"></a>xmlPatternMaxDepth ()</h3>
254*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int	xmlPatternMaxDepth		(<a href="libxml2-pattern.html#xmlPatternPtr">xmlPatternPtr</a> comp)<br>
255*7c568831SAndroid Build Coastguard Worker</pre>
256*7c568831SAndroid Build Coastguard Worker<p>Check the maximum depth reachable by a pattern</p>
257*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
258*7c568831SAndroid Build Coastguard Worker<col align="left">
259*7c568831SAndroid Build Coastguard Worker<tbody>
260*7c568831SAndroid Build Coastguard Worker<tr>
261*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>comp</tt></i>:</span></td>
262*7c568831SAndroid Build Coastguard Worker<td>the precompiled pattern</td>
263*7c568831SAndroid Build Coastguard Worker</tr>
264*7c568831SAndroid Build Coastguard Worker<tr>
265*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
266*7c568831SAndroid Build Coastguard Worker<td>-2 if no limit (using //), otherwise the depth, and -1 in case of error</td>
267*7c568831SAndroid Build Coastguard Worker</tr>
268*7c568831SAndroid Build Coastguard Worker</tbody>
269*7c568831SAndroid Build Coastguard Worker</table></div>
270*7c568831SAndroid Build Coastguard Worker</div>
271*7c568831SAndroid Build Coastguard Worker<hr>
272*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
273*7c568831SAndroid Build Coastguard Worker<h3>
274*7c568831SAndroid Build Coastguard Worker<a name="xmlPatternMinDepth"></a>xmlPatternMinDepth ()</h3>
275*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int	xmlPatternMinDepth		(<a href="libxml2-pattern.html#xmlPatternPtr">xmlPatternPtr</a> comp)<br>
276*7c568831SAndroid Build Coastguard Worker</pre>
277*7c568831SAndroid Build Coastguard Worker<p>Check the minimum depth reachable by a pattern, 0 mean the / or . are part of the set.</p>
278*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
279*7c568831SAndroid Build Coastguard Worker<col align="left">
280*7c568831SAndroid Build Coastguard Worker<tbody>
281*7c568831SAndroid Build Coastguard Worker<tr>
282*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>comp</tt></i>:</span></td>
283*7c568831SAndroid Build Coastguard Worker<td>the precompiled pattern</td>
284*7c568831SAndroid Build Coastguard Worker</tr>
285*7c568831SAndroid Build Coastguard Worker<tr>
286*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
287*7c568831SAndroid Build Coastguard Worker<td>-1 in case of error otherwise the depth,</td>
288*7c568831SAndroid Build Coastguard Worker</tr>
289*7c568831SAndroid Build Coastguard Worker</tbody>
290*7c568831SAndroid Build Coastguard Worker</table></div>
291*7c568831SAndroid Build Coastguard Worker</div>
292*7c568831SAndroid Build Coastguard Worker<hr>
293*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
294*7c568831SAndroid Build Coastguard Worker<h3>
295*7c568831SAndroid Build Coastguard Worker<a name="xmlPatternStreamable"></a>xmlPatternStreamable ()</h3>
296*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int	xmlPatternStreamable		(<a href="libxml2-pattern.html#xmlPatternPtr">xmlPatternPtr</a> comp)<br>
297*7c568831SAndroid Build Coastguard Worker</pre>
298*7c568831SAndroid Build Coastguard Worker<p>Check if the pattern is streamable i.e. xmlPatternGetStreamCtxt() should work.</p>
299*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
300*7c568831SAndroid Build Coastguard Worker<col align="left">
301*7c568831SAndroid Build Coastguard Worker<tbody>
302*7c568831SAndroid Build Coastguard Worker<tr>
303*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>comp</tt></i>:</span></td>
304*7c568831SAndroid Build Coastguard Worker<td>the precompiled pattern</td>
305*7c568831SAndroid Build Coastguard Worker</tr>
306*7c568831SAndroid Build Coastguard Worker<tr>
307*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
308*7c568831SAndroid Build Coastguard Worker<td>1 if streamable, 0 if not and -1 in case of error.</td>
309*7c568831SAndroid Build Coastguard Worker</tr>
310*7c568831SAndroid Build Coastguard Worker</tbody>
311*7c568831SAndroid Build Coastguard Worker</table></div>
312*7c568831SAndroid Build Coastguard Worker</div>
313*7c568831SAndroid Build Coastguard Worker<hr>
314*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
315*7c568831SAndroid Build Coastguard Worker<h3>
316*7c568831SAndroid Build Coastguard Worker<a name="xmlPatterncompile"></a>xmlPatterncompile ()</h3>
317*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-pattern.html#xmlPatternPtr">xmlPatternPtr</a>	xmlPatterncompile	(const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * pattern, <br>					 <a href="libxml2-dict.html#xmlDict">xmlDict</a> * dict, <br>					 int flags, <br>					 const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> ** namespaces)<br>
318*7c568831SAndroid Build Coastguard Worker</pre>
319*7c568831SAndroid Build Coastguard Worker<p>Compile a pattern.</p>
320*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
321*7c568831SAndroid Build Coastguard Worker<col align="left">
322*7c568831SAndroid Build Coastguard Worker<tbody>
323*7c568831SAndroid Build Coastguard Worker<tr>
324*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>pattern</tt></i>:</span></td>
325*7c568831SAndroid Build Coastguard Worker<td>the pattern to compile</td>
326*7c568831SAndroid Build Coastguard Worker</tr>
327*7c568831SAndroid Build Coastguard Worker<tr>
328*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>dict</tt></i>:</span></td>
329*7c568831SAndroid Build Coastguard Worker<td>an optional dictionary for interned strings</td>
330*7c568831SAndroid Build Coastguard Worker</tr>
331*7c568831SAndroid Build Coastguard Worker<tr>
332*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>flags</tt></i>:</span></td>
333*7c568831SAndroid Build Coastguard Worker<td>compilation flags, see <a href="libxml2-pattern.html#xmlPatternFlags">xmlPatternFlags</a>
334*7c568831SAndroid Build Coastguard Worker</td>
335*7c568831SAndroid Build Coastguard Worker</tr>
336*7c568831SAndroid Build Coastguard Worker<tr>
337*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>namespaces</tt></i>:</span></td>
338*7c568831SAndroid Build Coastguard Worker<td>the prefix definitions, array of [URI, prefix] or NULL</td>
339*7c568831SAndroid Build Coastguard Worker</tr>
340*7c568831SAndroid Build Coastguard Worker<tr>
341*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
342*7c568831SAndroid Build Coastguard Worker<td>the compiled form of the pattern or NULL in case of error</td>
343*7c568831SAndroid Build Coastguard Worker</tr>
344*7c568831SAndroid Build Coastguard Worker</tbody>
345*7c568831SAndroid Build Coastguard Worker</table></div>
346*7c568831SAndroid Build Coastguard Worker</div>
347*7c568831SAndroid Build Coastguard Worker<hr>
348*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
349*7c568831SAndroid Build Coastguard Worker<h3>
350*7c568831SAndroid Build Coastguard Worker<a name="xmlStreamPop"></a>xmlStreamPop ()</h3>
351*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int	xmlStreamPop			(<a href="libxml2-pattern.html#xmlStreamCtxtPtr">xmlStreamCtxtPtr</a> stream)<br>
352*7c568831SAndroid Build Coastguard Worker</pre>
353*7c568831SAndroid Build Coastguard Worker<p>push one level from the stream.</p>
354*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
355*7c568831SAndroid Build Coastguard Worker<col align="left">
356*7c568831SAndroid Build Coastguard Worker<tbody>
357*7c568831SAndroid Build Coastguard Worker<tr>
358*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>stream</tt></i>:</span></td>
359*7c568831SAndroid Build Coastguard Worker<td>the stream context</td>
360*7c568831SAndroid Build Coastguard Worker</tr>
361*7c568831SAndroid Build Coastguard Worker<tr>
362*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
363*7c568831SAndroid Build Coastguard Worker<td>-1 in case of error, 0 otherwise.</td>
364*7c568831SAndroid Build Coastguard Worker</tr>
365*7c568831SAndroid Build Coastguard Worker</tbody>
366*7c568831SAndroid Build Coastguard Worker</table></div>
367*7c568831SAndroid Build Coastguard Worker</div>
368*7c568831SAndroid Build Coastguard Worker<hr>
369*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
370*7c568831SAndroid Build Coastguard Worker<h3>
371*7c568831SAndroid Build Coastguard Worker<a name="xmlStreamPush"></a>xmlStreamPush ()</h3>
372*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int	xmlStreamPush			(<a href="libxml2-pattern.html#xmlStreamCtxtPtr">xmlStreamCtxtPtr</a> stream, <br>					 const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * name, <br>					 const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * ns)<br>
373*7c568831SAndroid Build Coastguard Worker</pre>
374*7c568831SAndroid Build Coastguard Worker<p>Push new data onto the stream. NOTE: if the call xmlPatterncompile() indicated a dictionary, then strings for name and ns will be expected to come from the dictionary. Both @name and @ns being NULL means the / i.e. the root of the document. This can also act as a reset. Otherwise the function will act as if it has been given an element-node.</p>
375*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
376*7c568831SAndroid Build Coastguard Worker<col align="left">
377*7c568831SAndroid Build Coastguard Worker<tbody>
378*7c568831SAndroid Build Coastguard Worker<tr>
379*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>stream</tt></i>:</span></td>
380*7c568831SAndroid Build Coastguard Worker<td>the stream context</td>
381*7c568831SAndroid Build Coastguard Worker</tr>
382*7c568831SAndroid Build Coastguard Worker<tr>
383*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>name</tt></i>:</span></td>
384*7c568831SAndroid Build Coastguard Worker<td>the current name</td>
385*7c568831SAndroid Build Coastguard Worker</tr>
386*7c568831SAndroid Build Coastguard Worker<tr>
387*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ns</tt></i>:</span></td>
388*7c568831SAndroid Build Coastguard Worker<td>the namespace name</td>
389*7c568831SAndroid Build Coastguard Worker</tr>
390*7c568831SAndroid Build Coastguard Worker<tr>
391*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
392*7c568831SAndroid Build Coastguard Worker<td>-1 in case of error, 1 if the current state in the stream is a match and 0 otherwise.</td>
393*7c568831SAndroid Build Coastguard Worker</tr>
394*7c568831SAndroid Build Coastguard Worker</tbody>
395*7c568831SAndroid Build Coastguard Worker</table></div>
396*7c568831SAndroid Build Coastguard Worker</div>
397*7c568831SAndroid Build Coastguard Worker<hr>
398*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
399*7c568831SAndroid Build Coastguard Worker<h3>
400*7c568831SAndroid Build Coastguard Worker<a name="xmlStreamPushAttr"></a>xmlStreamPushAttr ()</h3>
401*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int	xmlStreamPushAttr		(<a href="libxml2-pattern.html#xmlStreamCtxtPtr">xmlStreamCtxtPtr</a> stream, <br>					 const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * name, <br>					 const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * ns)<br>
402*7c568831SAndroid Build Coastguard Worker</pre>
403*7c568831SAndroid Build Coastguard Worker<p>Push new <a href="libxml2-SAX.html#attribute">attribute</a> data onto the stream. NOTE: if the call xmlPatterncompile() indicated a dictionary, then strings for name and ns will be expected to come from the dictionary. Both @name and @ns being NULL means the / i.e. the root of the document. This can also act as a reset. Otherwise the function will act as if it has been given an attribute-node.</p>
404*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
405*7c568831SAndroid Build Coastguard Worker<col align="left">
406*7c568831SAndroid Build Coastguard Worker<tbody>
407*7c568831SAndroid Build Coastguard Worker<tr>
408*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>stream</tt></i>:</span></td>
409*7c568831SAndroid Build Coastguard Worker<td>the stream context</td>
410*7c568831SAndroid Build Coastguard Worker</tr>
411*7c568831SAndroid Build Coastguard Worker<tr>
412*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>name</tt></i>:</span></td>
413*7c568831SAndroid Build Coastguard Worker<td>the current name</td>
414*7c568831SAndroid Build Coastguard Worker</tr>
415*7c568831SAndroid Build Coastguard Worker<tr>
416*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ns</tt></i>:</span></td>
417*7c568831SAndroid Build Coastguard Worker<td>the namespace name</td>
418*7c568831SAndroid Build Coastguard Worker</tr>
419*7c568831SAndroid Build Coastguard Worker<tr>
420*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
421*7c568831SAndroid Build Coastguard Worker<td>-1 in case of error, 1 if the current state in the stream is a match and 0 otherwise.</td>
422*7c568831SAndroid Build Coastguard Worker</tr>
423*7c568831SAndroid Build Coastguard Worker</tbody>
424*7c568831SAndroid Build Coastguard Worker</table></div>
425*7c568831SAndroid Build Coastguard Worker</div>
426*7c568831SAndroid Build Coastguard Worker<hr>
427*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
428*7c568831SAndroid Build Coastguard Worker<h3>
429*7c568831SAndroid Build Coastguard Worker<a name="xmlStreamPushNode"></a>xmlStreamPushNode ()</h3>
430*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int	xmlStreamPushNode		(<a href="libxml2-pattern.html#xmlStreamCtxtPtr">xmlStreamCtxtPtr</a> stream, <br>					 const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * name, <br>					 const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * ns, <br>					 int nodeType)<br>
431*7c568831SAndroid Build Coastguard Worker</pre>
432*7c568831SAndroid Build Coastguard Worker<p>Push new data onto the stream. NOTE: if the call xmlPatterncompile() indicated a dictionary, then strings for name and ns will be expected to come from the dictionary. Both @name and @ns being NULL means the / i.e. the root of the document. This can also act as a reset. Different from xmlStreamPush() this function can be fed with nodes of type: element-, attribute-, text-, cdata-section-, comment- and processing-instruction-node.</p>
433*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
434*7c568831SAndroid Build Coastguard Worker<col align="left">
435*7c568831SAndroid Build Coastguard Worker<tbody>
436*7c568831SAndroid Build Coastguard Worker<tr>
437*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>stream</tt></i>:</span></td>
438*7c568831SAndroid Build Coastguard Worker<td>the stream context</td>
439*7c568831SAndroid Build Coastguard Worker</tr>
440*7c568831SAndroid Build Coastguard Worker<tr>
441*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>name</tt></i>:</span></td>
442*7c568831SAndroid Build Coastguard Worker<td>the current name</td>
443*7c568831SAndroid Build Coastguard Worker</tr>
444*7c568831SAndroid Build Coastguard Worker<tr>
445*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ns</tt></i>:</span></td>
446*7c568831SAndroid Build Coastguard Worker<td>the namespace name</td>
447*7c568831SAndroid Build Coastguard Worker</tr>
448*7c568831SAndroid Build Coastguard Worker<tr>
449*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>nodeType</tt></i>:</span></td>
450*7c568831SAndroid Build Coastguard Worker<td>the type of the node being pushed</td>
451*7c568831SAndroid Build Coastguard Worker</tr>
452*7c568831SAndroid Build Coastguard Worker<tr>
453*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
454*7c568831SAndroid Build Coastguard Worker<td>-1 in case of error, 1 if the current state in the stream is a match and 0 otherwise.</td>
455*7c568831SAndroid Build Coastguard Worker</tr>
456*7c568831SAndroid Build Coastguard Worker</tbody>
457*7c568831SAndroid Build Coastguard Worker</table></div>
458*7c568831SAndroid Build Coastguard Worker</div>
459*7c568831SAndroid Build Coastguard Worker<hr>
460*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en">
461*7c568831SAndroid Build Coastguard Worker<h3>
462*7c568831SAndroid Build Coastguard Worker<a name="xmlStreamWantsAnyNode"></a>xmlStreamWantsAnyNode ()</h3>
463*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int	xmlStreamWantsAnyNode		(<a href="libxml2-pattern.html#xmlStreamCtxtPtr">xmlStreamCtxtPtr</a> streamCtxt)<br>
464*7c568831SAndroid Build Coastguard Worker</pre>
465*7c568831SAndroid Build Coastguard Worker<p>Query if the streaming pattern additionally needs to be fed with text-, cdata-section-, comment- and processing-instruction-nodes. If the result is 0 then only element-nodes and attribute-nodes need to be pushed.</p>
466*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0">
467*7c568831SAndroid Build Coastguard Worker<col align="left">
468*7c568831SAndroid Build Coastguard Worker<tbody>
469*7c568831SAndroid Build Coastguard Worker<tr>
470*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>streamCtxt</tt></i>:</span></td>
471*7c568831SAndroid Build Coastguard Worker<td>the stream context</td>
472*7c568831SAndroid Build Coastguard Worker</tr>
473*7c568831SAndroid Build Coastguard Worker<tr>
474*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td>
475*7c568831SAndroid Build Coastguard Worker<td>1 in case of need of nodes of the above described types, 0 otherwise. -1 on API errors.</td>
476*7c568831SAndroid Build Coastguard Worker</tr>
477*7c568831SAndroid Build Coastguard Worker</tbody>
478*7c568831SAndroid Build Coastguard Worker</table></div>
479*7c568831SAndroid Build Coastguard Worker</div>
480*7c568831SAndroid Build Coastguard Worker<hr>
481*7c568831SAndroid Build Coastguard Worker</div>
482*7c568831SAndroid Build Coastguard Worker</div>
483*7c568831SAndroid Build Coastguard Worker</body>
484*7c568831SAndroid Build Coastguard Worker</html>
485