blob: 6c89066649ba26373a44de20cb3c03d5269fb685 [file] [log] [blame]
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001<HTML
2><HEAD
3><TITLE
4>xpath</TITLE
5><META
6NAME="GENERATOR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00007CONTENT="Modular DocBook HTML Stylesheet Version 1.33"><LINK
Daniel Veillard1566d3a1999-07-15 14:24:29 +00008REL="HOME"
9TITLE="Gnome XML Library Reference Manual"
10HREF="book1.html"><LINK
11REL="UP"
Daniel Veillard35008381999-10-25 13:15:52 +000012TITLE="Libxml Library Reference"
13HREF="libxml-lib.html"><LINK
Daniel Veillard1566d3a1999-07-15 14:24:29 +000014REL="PREVIOUS"
15TITLE="HTMLtree"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +000016HREF="gnome-xml-htmltree.html"><LINK
17REL="NEXT"
Daniel Veillard35008381999-10-25 13:15:52 +000018TITLE="nanohttp"
19HREF="gnome-xml-nanohttp.html"></HEAD
Daniel Veillard1566d3a1999-07-15 14:24:29 +000020><BODY
21BGCOLOR="#FFFFFF"
22TEXT="#000000"
23><DIV
24CLASS="NAVHEADER"
25><TABLE
26WIDTH="100%"
27BORDER="0"
28BGCOLOR="#000000"
29CELLPADDING="1"
30CELLSPACING="0"
31><TR
32><TH
33COLSPAN="4"
34ALIGN="center"
35><FONT
36COLOR="#FFFFFF"
37SIZE="5"
38>Gnome XML Library Reference Manual</FONT
39></TH
40></TR
41><TR
42><TD
43WIDTH="25%"
44BGCOLOR="#C00000"
45ALIGN="left"
46><A
47HREF="gnome-xml-htmltree.html"
48><FONT
49COLOR="#FFFFFF"
50SIZE="3"
51><B
52>&#60;&#60;&#60; Previous Page</B
53></FONT
54></A
55></TD
56><TD
57WIDTH="25%"
58BGCOLOR="#0000C0"
59ALIGN="center"
60><FONT
61COLOR="#FFFFFF"
62SIZE="3"
63><B
64><A
65HREF="book1.html"
66><FONT
67COLOR="#FFFFFF"
68SIZE="3"
69><B
70>Home</B
71></FONT
72></A
73></B
74></FONT
75></TD
76><TD
77WIDTH="25%"
78BGCOLOR="#00C000"
79ALIGN="center"
80><FONT
81COLOR="#FFFFFF"
82SIZE="3"
83><B
84><A
Daniel Veillard35008381999-10-25 13:15:52 +000085HREF="libxml-lib.html"
Daniel Veillard1566d3a1999-07-15 14:24:29 +000086><FONT
87COLOR="#FFFFFF"
88SIZE="3"
89><B
90>Up</B
91></FONT
92></A
93></B
94></FONT
95></TD
96><TD
97WIDTH="25%"
98BGCOLOR="#C00000"
99ALIGN="right"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000100><A
Daniel Veillard35008381999-10-25 13:15:52 +0000101HREF="gnome-xml-nanohttp.html"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000102><FONT
103COLOR="#FFFFFF"
104SIZE="3"
105><B
106>Next Page &#62;&#62;&#62;</B
107></FONT
108></A
109></TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000110></TR
111></TABLE
112></DIV
113><H1
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000114>xpath</H1
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000115><DIV
116CLASS="REFNAMEDIV"
117><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000118NAME="AEN10415"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000119></A
120><H2
121>Name</H2
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000122>xpath &#8212; </DIV
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000123><DIV
124CLASS="REFSYNOPSISDIV"
125><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000126NAME="AEN10418"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000127></A
128><H2
129>Synopsis</H2
130><TABLE
131BORDER="0"
132BGCOLOR="#D6E8FF"
133WIDTH="100%"
134CELLPADDING="6"
135><TR
136><TD
137><PRE
138CLASS="SYNOPSIS"
139>&#13;
140
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000141struct <A
142HREF="gnome-xml-xpath.html#XMLXPATHCONTEXT"
143>xmlXPathContext</A
144>;
145typedef <A
146HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
147>xmlXPathContextPtr</A
148>;
149struct <A
150HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXT"
151>xmlXPathParserContext</A
152>;
153typedef <A
154HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
155>xmlXPathParserContextPtr</A
156>;
Daniel Veillard7e99c632000-10-06 12:59:53 +0000157enum <A
158HREF="gnome-xml-xpath.html#XMLXPATHERROR"
159>xmlXPathError</A
160>;
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000161struct <A
162HREF="gnome-xml-xpath.html#XMLNODESET"
163>xmlNodeSet</A
164>;
165typedef <A
166HREF="gnome-xml-xpath.html#XMLNODESETPTR"
167>xmlNodeSetPtr</A
168>;
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000169enum <A
170HREF="gnome-xml-xpath.html#XMLXPATHOBJECTTYPE"
171>xmlXPathObjectType</A
172>;
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000173struct <A
174HREF="gnome-xml-xpath.html#XMLXPATHOBJECT"
175>xmlXPathObject</A
176>;
177typedef <A
178HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
179>xmlXPathObjectPtr</A
180>;
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000181int (<A
182HREF="gnome-xml-xpath.html#XMLXPATHCONVERTFUNC"
183>*xmlXPathConvertFunc</A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000184>) (<A
185HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
186>xmlXPathObjectPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000187> obj,
188 int type);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000189struct <A
190HREF="gnome-xml-xpath.html#XMLXPATHTYPE"
191>xmlXPathType</A
192>;
193typedef <A
194HREF="gnome-xml-xpath.html#XMLXPATHTYPEPTR"
195>xmlXPathTypePtr</A
196>;
197struct <A
198HREF="gnome-xml-xpath.html#XMLXPATHVARIABLE"
199>xmlXPathVariable</A
200>;
201typedef <A
202HREF="gnome-xml-xpath.html#XMLXPATHVARIABLEPTR"
203>xmlXPathVariablePtr</A
204>;
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000205void (<A
206HREF="gnome-xml-xpath.html#XMLXPATHEVALFUNC"
207>*xmlXPathEvalFunc</A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000208>) (<A
209HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
210>xmlXPathParserContextPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000211> ctxt,
212 int nargs);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000213struct <A
214HREF="gnome-xml-xpath.html#XMLXPATHFUNCT"
215>xmlXPathFunct</A
216>;
217typedef <A
218HREF="gnome-xml-xpath.html#XMLXPATHFUNCPTR"
219>xmlXPathFuncPtr</A
220>;
221<A
222HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
223>xmlXPathObjectPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000224> (<A
225HREF="gnome-xml-xpath.html#XMLXPATHAXISFUNC"
226>*xmlXPathAxisFunc</A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000227>) (<A
228HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
229>xmlXPathParserContextPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000230> ctxt,
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000231 <A
232HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
233>xmlXPathObjectPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000234> cur);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000235struct <A
236HREF="gnome-xml-xpath.html#XMLXPATHAXIS"
237>xmlXPathAxis</A
238>;
239typedef <A
240HREF="gnome-xml-xpath.html#XMLXPATHAXISPTR"
241>xmlXPathAxisPtr</A
242>;
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000243void (<A
244HREF="gnome-xml-xpath.html#XMLXPATHFUNCTION"
245>*xmlXPathFunction</A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000246>) (<A
247HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
248>xmlXPathParserContextPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000249> ctxt,
250 int nargs);
Daniel Veillard7e99c632000-10-06 12:59:53 +0000251#define <A
252HREF="gnome-xml-xpath.html#CHECK-ERROR"
253>CHECK_ERROR</A
254>
255#define <A
256HREF="gnome-xml-xpath.html#CHECK-ERROR0"
257>CHECK_ERROR0</A
258>
259#define <A
260HREF="gnome-xml-xpath.html#XP-ERROR"
261>XP_ERROR</A
262> (X)
263#define <A
264HREF="gnome-xml-xpath.html#XP-ERROR0"
265>XP_ERROR0</A
266> (X)
267#define <A
268HREF="gnome-xml-xpath.html#CHECK-TYPE"
269>CHECK_TYPE</A
270> (typeval)
271<A
272HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
273>xmlXPathObjectPtr</A
274> <A
275HREF="gnome-xml-xpath.html#VALUEPOP"
276>valuePop</A
277> (<A
278HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
279>xmlXPathParserContextPtr</A
280> ctxt);
281int <A
282HREF="gnome-xml-xpath.html#VALUEPUSH"
283>valuePush</A
284> (<A
285HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
286>xmlXPathParserContextPtr</A
287> ctxt,
288 <A
289HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
290>xmlXPathObjectPtr</A
291> value);
292<A
293HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
294>xmlXPathObjectPtr</A
295> <A
296HREF="gnome-xml-xpath.html#XMLXPATHNEWSTRING"
297>xmlXPathNewString</A
298> (const <A
299HREF="gnome-xml-tree.html#XMLCHAR"
300>xmlChar</A
301> *val);
302<A
303HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
304>xmlXPathObjectPtr</A
305> <A
306HREF="gnome-xml-xpath.html#XMLXPATHNEWNODESET"
307>xmlXPathNewNodeSet</A
308> (<A
309HREF="gnome-xml-tree.html#XMLNODEPTR"
310>xmlNodePtr</A
311> val);
312void <A
313HREF="gnome-xml-xpath.html#XMLXPATHNODESETADD"
314>xmlXPathNodeSetAdd</A
315> (<A
316HREF="gnome-xml-xpath.html#XMLNODESETPTR"
317>xmlNodeSetPtr</A
318> cur,
319 <A
320HREF="gnome-xml-tree.html#XMLNODEPTR"
321>xmlNodePtr</A
322> val);
323void <A
324HREF="gnome-xml-xpath.html#XMLXPATHIDFUNCTION"
325>xmlXPathIdFunction</A
326> (<A
327HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
328>xmlXPathParserContextPtr</A
329> ctxt,
330 int nargs);
331void <A
332HREF="gnome-xml-xpath.html#XMLXPATHROOT"
333>xmlXPathRoot</A
334> (<A
335HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
336>xmlXPathParserContextPtr</A
337> ctxt);
338void <A
339HREF="gnome-xml-xpath.html#XMLXPATHEVALEXPR"
340>xmlXPathEvalExpr</A
341> (<A
342HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
343>xmlXPathParserContextPtr</A
344> ctxt);
345void <A
346HREF="gnome-xml-xpath.html#XMLXPATHINIT"
347>xmlXPathInit</A
348> (void);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000349<A
350HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
351>xmlXPathContextPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000352> <A
353HREF="gnome-xml-xpath.html#XMLXPATHNEWCONTEXT"
354>xmlXPathNewContext</A
355> (<A
356HREF="gnome-xml-tree.html#XMLDOCPTR"
357>xmlDocPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000358> doc);
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000359void <A
360HREF="gnome-xml-xpath.html#XMLXPATHFREECONTEXT"
361>xmlXPathFreeContext</A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000362> (<A
363HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
364>xmlXPathContextPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000365> ctxt);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000366<A
367HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
368>xmlXPathObjectPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000369> <A
370HREF="gnome-xml-xpath.html#XMLXPATHEVAL"
371>xmlXPathEval</A
372> (const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000373HREF="gnome-xml-tree.html#XMLCHAR"
374>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000375> *str,
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000376 <A
377HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
378>xmlXPathContextPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000379> ctxt);
Daniel Veillard7e99c632000-10-06 12:59:53 +0000380<A
381HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
382>xmlXPathObjectPtr</A
383> <A
384HREF="gnome-xml-xpath.html#XMLXPATHEVALXPTREXPR"
385>xmlXPathEvalXPtrExpr</A
386> (const <A
387HREF="gnome-xml-tree.html#XMLCHAR"
388>xmlChar</A
389> *str,
390 <A
391HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
392>xmlXPathContextPtr</A
393> ctxt);
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000394void <A
395HREF="gnome-xml-xpath.html#XMLXPATHFREEOBJECT"
396>xmlXPathFreeObject</A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000397> (<A
398HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
399>xmlXPathObjectPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000400> obj);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000401<A
402HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
403>xmlXPathObjectPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000404> <A
405HREF="gnome-xml-xpath.html#XMLXPATHEVALEXPRESSION"
406>xmlXPathEvalExpression</A
407> (const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000408HREF="gnome-xml-tree.html#XMLCHAR"
409>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000410> *str,
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000411 <A
412HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
413>xmlXPathContextPtr</A
414> ctxt);
415<A
416HREF="gnome-xml-xpath.html#XMLNODESETPTR"
417>xmlNodeSetPtr</A
418> <A
419HREF="gnome-xml-xpath.html#XMLXPATHNODESETCREATE"
420>xmlXPathNodeSetCreate</A
421> (<A
422HREF="gnome-xml-tree.html#XMLNODEPTR"
423>xmlNodePtr</A
424> val);
425void <A
426HREF="gnome-xml-xpath.html#XMLXPATHFREENODESETLIST"
427>xmlXPathFreeNodeSetList</A
428> (<A
429HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
430>xmlXPathObjectPtr</A
431> obj);
432void <A
433HREF="gnome-xml-xpath.html#XMLXPATHFREENODESET"
434>xmlXPathFreeNodeSet</A
435> (<A
436HREF="gnome-xml-xpath.html#XMLNODESETPTR"
437>xmlNodeSetPtr</A
438> obj);</PRE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000439></TD
440></TR
441></TABLE
442></DIV
443><DIV
444CLASS="REFSECT1"
445><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000446NAME="AEN10502"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000447></A
448><H2
449>Description</H2
450><P
451></P
452></DIV
453><DIV
454CLASS="REFSECT1"
455><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000456NAME="AEN10505"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000457></A
458><H2
459>Details</H2
460><DIV
461CLASS="REFSECT2"
462><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000463NAME="AEN10507"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000464></A
465><H3
466><A
467NAME="XMLXPATHCONTEXT"
468></A
469>struct xmlXPathContext</H3
470><TABLE
471BORDER="0"
472BGCOLOR="#D6E8FF"
473WIDTH="100%"
474CELLPADDING="6"
475><TR
476><TD
477><PRE
478CLASS="PROGRAMLISTING"
479>struct xmlXPathContext {
480 xmlDocPtr doc; /* The current document */
481 xmlNodePtr node; /* The current node */
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000482
483 int nb_variables; /* number of defined variables */
484 int max_variables; /* max number of variables */
485 xmlXPathVariablePtr *variables; /* Array of defined variables */
486
487 int nb_types; /* number of defined types */
488 int max_types; /* max number of types */
489 xmlXPathTypePtr *types; /* Array of defined types */
490
491 int nb_funcs; /* number of defined funcs */
492 int max_funcs; /* max number of funcs */
493 xmlXPathFuncPtr *funcs; /* Array of defined funcs */
494
495 int nb_axis; /* number of defined axis */
496 int max_axis; /* max number of axis */
497 xmlXPathAxisPtr *axis; /* Array of defined axis */
498
499 /* Namespace traversal should be implemented with user */
500 xmlNsPtr *namespaces; /* The namespaces lookup */
501 int nsNr; /* the current Namespace index */
502 void *user; /* user defined extra info */
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000503
504 /* extra variables */
505 int contextSize; /* the context size */
506 int proximityPosition; /* the proximity position */
Daniel Veillard7e99c632000-10-06 12:59:53 +0000507
508 /* extra stuff for XPointer */
509 int xptr; /* it this an XPointer context */
510 xmlNodePtr here; /* for here() */
511 xmlNodePtr origin; /* for origin() */
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000512};</PRE
513></TD
514></TR
515></TABLE
516><P
517></P
518></DIV
519><HR><DIV
520CLASS="REFSECT2"
521><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000522NAME="AEN10512"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000523></A
524><H3
525><A
526NAME="XMLXPATHCONTEXTPTR"
527></A
528>xmlXPathContextPtr</H3
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000529><P
530></P
531></DIV
532><HR><DIV
533CLASS="REFSECT2"
534><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000535NAME="AEN10516"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000536></A
537><H3
538><A
539NAME="XMLXPATHPARSERCONTEXT"
540></A
541>struct xmlXPathParserContext</H3
542><TABLE
543BORDER="0"
544BGCOLOR="#D6E8FF"
545WIDTH="100%"
546CELLPADDING="6"
547><TR
548><TD
549><PRE
550CLASS="PROGRAMLISTING"
551>struct xmlXPathParserContext {
552 const xmlChar *cur; /* the current char being parsed */
553 const xmlChar *base; /* the full expression */
554
555 int error; /* error code */
556
557 xmlXPathContextPtr context; /* the evaluation context */
558 xmlXPathObjectPtr value; /* the current value */
559 int valueNr; /* number of values stacked */
560 int valueMax; /* max number of values stacked */
561 xmlXPathObjectPtr *valueTab; /* stack of values */
562};</PRE
563></TD
564></TR
565></TABLE
566><P
567></P
568></DIV
569><HR><DIV
570CLASS="REFSECT2"
571><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000572NAME="AEN10521"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000573></A
574><H3
575><A
576NAME="XMLXPATHPARSERCONTEXTPTR"
577></A
578>xmlXPathParserContextPtr</H3
Daniel Veillard7e99c632000-10-06 12:59:53 +0000579><P
580></P
581></DIV
582><HR><DIV
583CLASS="REFSECT2"
584><A
585NAME="AEN10525"
586></A
587><H3
588><A
589NAME="XMLXPATHERROR"
590></A
591>enum xmlXPathError</H3
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000592><TABLE
593BORDER="0"
594BGCOLOR="#D6E8FF"
595WIDTH="100%"
596CELLPADDING="6"
597><TR
598><TD
599><PRE
600CLASS="PROGRAMLISTING"
Daniel Veillard7e99c632000-10-06 12:59:53 +0000601>typedef enum {
602 XPATH_EXPRESSION_OK = 0,
603 XPATH_NUMBER_ERROR,
604 XPATH_UNFINISHED_LITERAL_ERROR,
605 XPATH_START_LITERAL_ERROR,
606 XPATH_VARIABLE_REF_ERROR,
607 XPATH_UNDEF_VARIABLE_ERROR,
608 XPATH_INVALID_PREDICATE_ERROR,
609 XPATH_EXPR_ERROR,
610 XPATH_UNCLOSED_ERROR,
611 XPATH_UNKNOWN_FUNC_ERROR,
612 XPATH_INVALID_OPERAND,
613 XPATH_INVALID_TYPE,
614 XPATH_INVALID_ARITY,
615 XPATH_INVALID_CTXT_SIZE,
616 XPATH_INVALID_CTXT_POSITION
617} xmlXPathError;</PRE
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000618></TD
619></TR
620></TABLE
621><P
Daniel Veillard7e99c632000-10-06 12:59:53 +0000622>Create a new xmlNodeSetPtr of type double and of value <TT
623CLASS="PARAMETER"
624><I
625>val</I
626></TT
627></P
628><P
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000629></P
630></DIV
631><HR><DIV
632CLASS="REFSECT2"
633><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000634NAME="AEN10532"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000635></A
636><H3
637><A
638NAME="XMLNODESET"
639></A
640>struct xmlNodeSet</H3
641><TABLE
642BORDER="0"
643BGCOLOR="#D6E8FF"
644WIDTH="100%"
645CELLPADDING="6"
646><TR
647><TD
648><PRE
649CLASS="PROGRAMLISTING"
650>struct xmlNodeSet {
651 int nodeNr; /* number of nodes in the set */
652 int nodeMax; /* size of the array as allocated */
653 xmlNodePtr *nodeTab; /* array of nodes in no particular order */
654};</PRE
655></TD
656></TR
657></TABLE
658><P
659></P
660></DIV
661><HR><DIV
662CLASS="REFSECT2"
663><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000664NAME="AEN10537"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000665></A
666><H3
667><A
668NAME="XMLNODESETPTR"
669></A
670>xmlNodeSetPtr</H3
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000671><P
672></P
673></DIV
674><HR><DIV
675CLASS="REFSECT2"
676><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000677NAME="AEN10541"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000678></A
679><H3
680><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000681NAME="XMLXPATHOBJECTTYPE"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000682></A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000683>enum xmlXPathObjectType</H3
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000684><TABLE
685BORDER="0"
686BGCOLOR="#D6E8FF"
687WIDTH="100%"
688CELLPADDING="6"
689><TR
690><TD
691><PRE
692CLASS="PROGRAMLISTING"
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000693>typedef enum {
694 XPATH_UNDEFINED = 0,
695 XPATH_NODESET = 1,
696 XPATH_BOOLEAN = 2,
697 XPATH_NUMBER = 3,
698 XPATH_STRING = 4,
Daniel Veillard7e99c632000-10-06 12:59:53 +0000699 XPATH_POINT = 5,
700 XPATH_RANGE = 6,
701 XPATH_LOCATIONSET = 7,
702 XPATH_USERS = 8
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000703} xmlXPathObjectType;</PRE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000704></TD
705></TR
706></TABLE
707><P
708></P
709></DIV
710><HR><DIV
711CLASS="REFSECT2"
712><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000713NAME="AEN10546"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000714></A
715><H3
716><A
717NAME="XMLXPATHOBJECT"
718></A
719>struct xmlXPathObject</H3
720><TABLE
721BORDER="0"
722BGCOLOR="#D6E8FF"
723WIDTH="100%"
724CELLPADDING="6"
725><TR
726><TD
727><PRE
728CLASS="PROGRAMLISTING"
729>struct xmlXPathObject {
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000730 xmlXPathObjectType type;
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000731 xmlNodeSetPtr nodesetval;
732 int boolval;
733 double floatval;
734 xmlChar *stringval;
735 void *user;
Daniel Veillard7e99c632000-10-06 12:59:53 +0000736 int index;
737 void *user2;
738 int index2;
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000739};</PRE
740></TD
741></TR
742></TABLE
743><P
744></P
745></DIV
746><HR><DIV
747CLASS="REFSECT2"
748><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000749NAME="AEN10551"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000750></A
751><H3
752><A
753NAME="XMLXPATHOBJECTPTR"
754></A
755>xmlXPathObjectPtr</H3
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000756><P
757></P
758></DIV
759><HR><DIV
760CLASS="REFSECT2"
761><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000762NAME="AEN10555"
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000763></A
764><H3
765><A
766NAME="XMLXPATHCONVERTFUNC"
767></A
768>xmlXPathConvertFunc ()</H3
769><TABLE
770BORDER="0"
771BGCOLOR="#D6E8FF"
772WIDTH="100%"
773CELLPADDING="6"
774><TR
775><TD
776><PRE
777CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000778>int (*xmlXPathConvertFunc) (<A
779HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
780>xmlXPathObjectPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000781> obj,
782 int type);</PRE
783></TD
784></TR
785></TABLE
786><P
787></P
788><DIV
789CLASS="INFORMALTABLE"
790><P
791></P
792><TABLE
793BORDER="0"
794WIDTH="100%"
795BGCOLOR="#FFD0D0"
796CELLSPACING="0"
797CELLPADDING="4"
798CLASS="CALSTABLE"
799><TR
800><TD
801WIDTH="20%"
802ALIGN="RIGHT"
803VALIGN="TOP"
804><TT
805CLASS="PARAMETER"
806><I
807>obj</I
808></TT
809>&nbsp;:</TD
810><TD
811WIDTH="80%"
812ALIGN="LEFT"
813VALIGN="TOP"
814>&nbsp;</TD
815></TR
816><TR
817><TD
818WIDTH="20%"
819ALIGN="RIGHT"
820VALIGN="TOP"
821><TT
822CLASS="PARAMETER"
823><I
824>type</I
825></TT
826>&nbsp;:</TD
827><TD
828WIDTH="80%"
829ALIGN="LEFT"
830VALIGN="TOP"
831>&nbsp;</TD
832></TR
833><TR
834><TD
835WIDTH="20%"
836ALIGN="RIGHT"
837VALIGN="TOP"
838><I
839CLASS="EMPHASIS"
840>Returns</I
841> :</TD
842><TD
843WIDTH="80%"
844ALIGN="LEFT"
845VALIGN="TOP"
846>&nbsp;</TD
847></TR
848></TABLE
849><P
850></P
851></DIV
852></DIV
853><HR><DIV
854CLASS="REFSECT2"
855><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000856NAME="AEN10578"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000857></A
858><H3
859><A
860NAME="XMLXPATHTYPE"
861></A
862>struct xmlXPathType</H3
863><TABLE
864BORDER="0"
865BGCOLOR="#D6E8FF"
866WIDTH="100%"
867CELLPADDING="6"
868><TR
869><TD
870><PRE
871CLASS="PROGRAMLISTING"
872>struct xmlXPathType {
873 const xmlChar *name; /* the type name */
874 xmlXPathConvertFunc func; /* the conversion function */
875};</PRE
876></TD
877></TR
878></TABLE
879><P
880></P
881></DIV
882><HR><DIV
883CLASS="REFSECT2"
884><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000885NAME="AEN10583"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000886></A
887><H3
888><A
889NAME="XMLXPATHTYPEPTR"
890></A
891>xmlXPathTypePtr</H3
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000892><P
893></P
894></DIV
895><HR><DIV
896CLASS="REFSECT2"
897><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000898NAME="AEN10587"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000899></A
900><H3
901><A
902NAME="XMLXPATHVARIABLE"
903></A
904>struct xmlXPathVariable</H3
905><TABLE
906BORDER="0"
907BGCOLOR="#D6E8FF"
908WIDTH="100%"
909CELLPADDING="6"
910><TR
911><TD
912><PRE
913CLASS="PROGRAMLISTING"
914>struct xmlXPathVariable {
915 const xmlChar *name; /* the variable name */
916 xmlXPathObjectPtr value; /* the value */
917};</PRE
918></TD
919></TR
920></TABLE
921><P
922></P
923></DIV
924><HR><DIV
925CLASS="REFSECT2"
926><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000927NAME="AEN10592"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000928></A
929><H3
930><A
931NAME="XMLXPATHVARIABLEPTR"
932></A
933>xmlXPathVariablePtr</H3
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000934><P
935></P
936></DIV
937><HR><DIV
938CLASS="REFSECT2"
939><A
Daniel Veillard7e99c632000-10-06 12:59:53 +0000940NAME="AEN10596"
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000941></A
942><H3
943><A
944NAME="XMLXPATHEVALFUNC"
945></A
946>xmlXPathEvalFunc ()</H3
947><TABLE
948BORDER="0"
949BGCOLOR="#D6E8FF"
950WIDTH="100%"
951CELLPADDING="6"
952><TR
953><TD
954><PRE
955CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000956>void (*xmlXPathEvalFunc) (<A
957HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
958>xmlXPathParserContextPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000959> ctxt,
960 int nargs);</PRE
961></TD
962></TR
963></TABLE
964><P
965></P
966><DIV
967CLASS="INFORMALTABLE"
968><P
969></P
970><TABLE
971BORDER="0"
972WIDTH="100%"
973BGCOLOR="#FFD0D0"
974CELLSPACING="0"
975CELLPADDING="4"
976CLASS="CALSTABLE"
977><TR
978><TD
979WIDTH="20%"
980ALIGN="RIGHT"
981VALIGN="TOP"
982><TT
983CLASS="PARAMETER"
984><I
985>ctxt</I
986></TT
987>&nbsp;:</TD
988><TD
989WIDTH="80%"
990ALIGN="LEFT"
991VALIGN="TOP"
992>&nbsp;</TD
993></TR
994><TR
995><TD
996WIDTH="20%"
997ALIGN="RIGHT"
998VALIGN="TOP"
999><TT
1000CLASS="PARAMETER"
1001><I
1002>nargs</I
1003></TT
1004>&nbsp;:</TD
1005><TD
1006WIDTH="80%"
1007ALIGN="LEFT"
1008VALIGN="TOP"
1009>&nbsp;</TD
1010></TR
1011></TABLE
1012><P
1013></P
1014></DIV
1015></DIV
1016><HR><DIV
1017CLASS="REFSECT2"
1018><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00001019NAME="AEN10615"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001020></A
1021><H3
1022><A
1023NAME="XMLXPATHFUNCT"
1024></A
1025>struct xmlXPathFunct</H3
1026><TABLE
1027BORDER="0"
1028BGCOLOR="#D6E8FF"
1029WIDTH="100%"
1030CELLPADDING="6"
1031><TR
1032><TD
1033><PRE
1034CLASS="PROGRAMLISTING"
1035>struct xmlXPathFunct {
1036 const xmlChar *name; /* the function name */
1037 xmlXPathEvalFunc func; /* the evaluation function */
1038};</PRE
1039></TD
1040></TR
1041></TABLE
1042><P
1043></P
1044></DIV
1045><HR><DIV
1046CLASS="REFSECT2"
1047><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00001048NAME="AEN10620"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001049></A
1050><H3
1051><A
1052NAME="XMLXPATHFUNCPTR"
1053></A
1054>xmlXPathFuncPtr</H3
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001055><P
1056></P
1057></DIV
1058><HR><DIV
1059CLASS="REFSECT2"
1060><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00001061NAME="AEN10624"
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001062></A
1063><H3
1064><A
1065NAME="XMLXPATHAXISFUNC"
1066></A
1067>xmlXPathAxisFunc ()</H3
1068><TABLE
1069BORDER="0"
1070BGCOLOR="#D6E8FF"
1071WIDTH="100%"
1072CELLPADDING="6"
1073><TR
1074><TD
1075><PRE
1076CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001077><A
1078HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
1079>xmlXPathObjectPtr</A
1080> (*xmlXPathAxisFunc) (<A
1081HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
1082>xmlXPathParserContextPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001083> ctxt,
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001084 <A
1085HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
1086>xmlXPathObjectPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001087> cur);</PRE
1088></TD
1089></TR
1090></TABLE
1091><P
1092></P
1093><DIV
1094CLASS="INFORMALTABLE"
1095><P
1096></P
1097><TABLE
1098BORDER="0"
1099WIDTH="100%"
1100BGCOLOR="#FFD0D0"
1101CELLSPACING="0"
1102CELLPADDING="4"
1103CLASS="CALSTABLE"
1104><TR
1105><TD
1106WIDTH="20%"
1107ALIGN="RIGHT"
1108VALIGN="TOP"
1109><TT
1110CLASS="PARAMETER"
1111><I
1112>ctxt</I
1113></TT
1114>&nbsp;:</TD
1115><TD
1116WIDTH="80%"
1117ALIGN="LEFT"
1118VALIGN="TOP"
1119>&nbsp;</TD
1120></TR
1121><TR
1122><TD
1123WIDTH="20%"
1124ALIGN="RIGHT"
1125VALIGN="TOP"
1126><TT
1127CLASS="PARAMETER"
1128><I
1129>cur</I
1130></TT
1131>&nbsp;:</TD
1132><TD
1133WIDTH="80%"
1134ALIGN="LEFT"
1135VALIGN="TOP"
1136>&nbsp;</TD
1137></TR
1138><TR
1139><TD
1140WIDTH="20%"
1141ALIGN="RIGHT"
1142VALIGN="TOP"
1143><I
1144CLASS="EMPHASIS"
1145>Returns</I
1146> :</TD
1147><TD
1148WIDTH="80%"
1149ALIGN="LEFT"
1150VALIGN="TOP"
1151>&nbsp;</TD
1152></TR
1153></TABLE
1154><P
1155></P
1156></DIV
1157></DIV
1158><HR><DIV
1159CLASS="REFSECT2"
1160><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00001161NAME="AEN10649"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001162></A
1163><H3
1164><A
1165NAME="XMLXPATHAXIS"
1166></A
1167>struct xmlXPathAxis</H3
1168><TABLE
1169BORDER="0"
1170BGCOLOR="#D6E8FF"
1171WIDTH="100%"
1172CELLPADDING="6"
1173><TR
1174><TD
1175><PRE
1176CLASS="PROGRAMLISTING"
1177>struct xmlXPathAxis {
1178 const xmlChar *name; /* the axis name */
1179 xmlXPathAxisFunc func; /* the search function */
1180};</PRE
1181></TD
1182></TR
1183></TABLE
1184><P
1185></P
1186></DIV
1187><HR><DIV
1188CLASS="REFSECT2"
1189><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00001190NAME="AEN10654"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001191></A
1192><H3
1193><A
1194NAME="XMLXPATHAXISPTR"
1195></A
1196>xmlXPathAxisPtr</H3
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001197><P
1198></P
1199></DIV
1200><HR><DIV
1201CLASS="REFSECT2"
1202><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00001203NAME="AEN10658"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001204></A
1205><H3
1206><A
1207NAME="XMLXPATHFUNCTION"
1208></A
1209>xmlXPathFunction ()</H3
1210><TABLE
1211BORDER="0"
1212BGCOLOR="#D6E8FF"
1213WIDTH="100%"
1214CELLPADDING="6"
1215><TR
1216><TD
1217><PRE
1218CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001219>void (*xmlXPathFunction) (<A
1220HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
1221>xmlXPathParserContextPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001222> ctxt,
1223 int nargs);</PRE
1224></TD
1225></TR
1226></TABLE
1227><P
1228></P
1229><DIV
1230CLASS="INFORMALTABLE"
1231><P
1232></P
1233><TABLE
1234BORDER="0"
1235WIDTH="100%"
1236BGCOLOR="#FFD0D0"
1237CELLSPACING="0"
1238CELLPADDING="4"
1239CLASS="CALSTABLE"
1240><TR
1241><TD
1242WIDTH="20%"
1243ALIGN="RIGHT"
1244VALIGN="TOP"
1245><TT
1246CLASS="PARAMETER"
1247><I
1248>ctxt</I
1249></TT
1250>&nbsp;:</TD
1251><TD
1252WIDTH="80%"
1253ALIGN="LEFT"
1254VALIGN="TOP"
1255>&nbsp;</TD
1256></TR
1257><TR
1258><TD
1259WIDTH="20%"
1260ALIGN="RIGHT"
1261VALIGN="TOP"
1262><TT
1263CLASS="PARAMETER"
1264><I
1265>nargs</I
1266></TT
1267>&nbsp;:</TD
1268><TD
1269WIDTH="80%"
1270ALIGN="LEFT"
1271VALIGN="TOP"
1272>&nbsp;</TD
1273></TR
1274></TABLE
1275><P
1276></P
1277></DIV
1278></DIV
1279><HR><DIV
1280CLASS="REFSECT2"
1281><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00001282NAME="AEN10677"
1283></A
1284><H3
1285><A
1286NAME="CHECK-ERROR"
1287></A
1288>CHECK_ERROR</H3
1289><TABLE
1290BORDER="0"
1291BGCOLOR="#D6E8FF"
1292WIDTH="100%"
1293CELLPADDING="6"
1294><TR
1295><TD
1296><PRE
1297CLASS="PROGRAMLISTING"
1298>#define CHECK_ERROR</PRE
1299></TD
1300></TR
1301></TABLE
1302><P
1303></P
1304></DIV
1305><HR><DIV
1306CLASS="REFSECT2"
1307><A
1308NAME="AEN10682"
1309></A
1310><H3
1311><A
1312NAME="CHECK-ERROR0"
1313></A
1314>CHECK_ERROR0</H3
1315><TABLE
1316BORDER="0"
1317BGCOLOR="#D6E8FF"
1318WIDTH="100%"
1319CELLPADDING="6"
1320><TR
1321><TD
1322><PRE
1323CLASS="PROGRAMLISTING"
1324>#define CHECK_ERROR0</PRE
1325></TD
1326></TR
1327></TABLE
1328><P
1329></P
1330></DIV
1331><HR><DIV
1332CLASS="REFSECT2"
1333><A
1334NAME="AEN10687"
1335></A
1336><H3
1337><A
1338NAME="XP-ERROR"
1339></A
1340>XP_ERROR()</H3
1341><TABLE
1342BORDER="0"
1343BGCOLOR="#D6E8FF"
1344WIDTH="100%"
1345CELLPADDING="6"
1346><TR
1347><TD
1348><PRE
1349CLASS="PROGRAMLISTING"
1350>#define XP_ERROR(X)</PRE
1351></TD
1352></TR
1353></TABLE
1354><P
1355></P
1356><DIV
1357CLASS="INFORMALTABLE"
1358><P
1359></P
1360><TABLE
1361BORDER="0"
1362WIDTH="100%"
1363BGCOLOR="#FFD0D0"
1364CELLSPACING="0"
1365CELLPADDING="4"
1366CLASS="CALSTABLE"
1367><TR
1368><TD
1369WIDTH="20%"
1370ALIGN="RIGHT"
1371VALIGN="TOP"
1372><TT
1373CLASS="PARAMETER"
1374><I
1375>X</I
1376></TT
1377>&nbsp;:</TD
1378><TD
1379WIDTH="80%"
1380ALIGN="LEFT"
1381VALIGN="TOP"
1382>&nbsp;</TD
1383></TR
1384></TABLE
1385><P
1386></P
1387></DIV
1388></DIV
1389><HR><DIV
1390CLASS="REFSECT2"
1391><A
1392NAME="AEN10701"
1393></A
1394><H3
1395><A
1396NAME="XP-ERROR0"
1397></A
1398>XP_ERROR0()</H3
1399><TABLE
1400BORDER="0"
1401BGCOLOR="#D6E8FF"
1402WIDTH="100%"
1403CELLPADDING="6"
1404><TR
1405><TD
1406><PRE
1407CLASS="PROGRAMLISTING"
1408>#define XP_ERROR0(X)</PRE
1409></TD
1410></TR
1411></TABLE
1412><P
1413></P
1414><DIV
1415CLASS="INFORMALTABLE"
1416><P
1417></P
1418><TABLE
1419BORDER="0"
1420WIDTH="100%"
1421BGCOLOR="#FFD0D0"
1422CELLSPACING="0"
1423CELLPADDING="4"
1424CLASS="CALSTABLE"
1425><TR
1426><TD
1427WIDTH="20%"
1428ALIGN="RIGHT"
1429VALIGN="TOP"
1430><TT
1431CLASS="PARAMETER"
1432><I
1433>X</I
1434></TT
1435>&nbsp;:</TD
1436><TD
1437WIDTH="80%"
1438ALIGN="LEFT"
1439VALIGN="TOP"
1440>&nbsp;</TD
1441></TR
1442></TABLE
1443><P
1444></P
1445></DIV
1446></DIV
1447><HR><DIV
1448CLASS="REFSECT2"
1449><A
1450NAME="AEN10715"
1451></A
1452><H3
1453><A
1454NAME="CHECK-TYPE"
1455></A
1456>CHECK_TYPE()</H3
1457><TABLE
1458BORDER="0"
1459BGCOLOR="#D6E8FF"
1460WIDTH="100%"
1461CELLPADDING="6"
1462><TR
1463><TD
1464><PRE
1465CLASS="PROGRAMLISTING"
1466>#define CHECK_TYPE(typeval)</PRE
1467></TD
1468></TR
1469></TABLE
1470><P
1471></P
1472><DIV
1473CLASS="INFORMALTABLE"
1474><P
1475></P
1476><TABLE
1477BORDER="0"
1478WIDTH="100%"
1479BGCOLOR="#FFD0D0"
1480CELLSPACING="0"
1481CELLPADDING="4"
1482CLASS="CALSTABLE"
1483><TR
1484><TD
1485WIDTH="20%"
1486ALIGN="RIGHT"
1487VALIGN="TOP"
1488><TT
1489CLASS="PARAMETER"
1490><I
1491>typeval</I
1492></TT
1493>&nbsp;:</TD
1494><TD
1495WIDTH="80%"
1496ALIGN="LEFT"
1497VALIGN="TOP"
1498>&nbsp;</TD
1499></TR
1500></TABLE
1501><P
1502></P
1503></DIV
1504></DIV
1505><HR><DIV
1506CLASS="REFSECT2"
1507><A
1508NAME="AEN10729"
1509></A
1510><H3
1511><A
1512NAME="VALUEPOP"
1513></A
1514>valuePop ()</H3
1515><TABLE
1516BORDER="0"
1517BGCOLOR="#D6E8FF"
1518WIDTH="100%"
1519CELLPADDING="6"
1520><TR
1521><TD
1522><PRE
1523CLASS="PROGRAMLISTING"
1524><A
1525HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
1526>xmlXPathObjectPtr</A
1527> valuePop (<A
1528HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
1529>xmlXPathParserContextPtr</A
1530> ctxt);</PRE
1531></TD
1532></TR
1533></TABLE
1534><P
1535></P
1536><DIV
1537CLASS="INFORMALTABLE"
1538><P
1539></P
1540><TABLE
1541BORDER="0"
1542WIDTH="100%"
1543BGCOLOR="#FFD0D0"
1544CELLSPACING="0"
1545CELLPADDING="4"
1546CLASS="CALSTABLE"
1547><TR
1548><TD
1549WIDTH="20%"
1550ALIGN="RIGHT"
1551VALIGN="TOP"
1552><TT
1553CLASS="PARAMETER"
1554><I
1555>ctxt</I
1556></TT
1557>&nbsp;:</TD
1558><TD
1559WIDTH="80%"
1560ALIGN="LEFT"
1561VALIGN="TOP"
1562>&nbsp;</TD
1563></TR
1564><TR
1565><TD
1566WIDTH="20%"
1567ALIGN="RIGHT"
1568VALIGN="TOP"
1569><I
1570CLASS="EMPHASIS"
1571>Returns</I
1572> :</TD
1573><TD
1574WIDTH="80%"
1575ALIGN="LEFT"
1576VALIGN="TOP"
1577>&nbsp;</TD
1578></TR
1579></TABLE
1580><P
1581></P
1582></DIV
1583></DIV
1584><HR><DIV
1585CLASS="REFSECT2"
1586><A
1587NAME="AEN10749"
1588></A
1589><H3
1590><A
1591NAME="VALUEPUSH"
1592></A
1593>valuePush ()</H3
1594><TABLE
1595BORDER="0"
1596BGCOLOR="#D6E8FF"
1597WIDTH="100%"
1598CELLPADDING="6"
1599><TR
1600><TD
1601><PRE
1602CLASS="PROGRAMLISTING"
1603>int valuePush (<A
1604HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
1605>xmlXPathParserContextPtr</A
1606> ctxt,
1607 <A
1608HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
1609>xmlXPathObjectPtr</A
1610> value);</PRE
1611></TD
1612></TR
1613></TABLE
1614><P
1615></P
1616><DIV
1617CLASS="INFORMALTABLE"
1618><P
1619></P
1620><TABLE
1621BORDER="0"
1622WIDTH="100%"
1623BGCOLOR="#FFD0D0"
1624CELLSPACING="0"
1625CELLPADDING="4"
1626CLASS="CALSTABLE"
1627><TR
1628><TD
1629WIDTH="20%"
1630ALIGN="RIGHT"
1631VALIGN="TOP"
1632><TT
1633CLASS="PARAMETER"
1634><I
1635>ctxt</I
1636></TT
1637>&nbsp;:</TD
1638><TD
1639WIDTH="80%"
1640ALIGN="LEFT"
1641VALIGN="TOP"
1642>&nbsp;</TD
1643></TR
1644><TR
1645><TD
1646WIDTH="20%"
1647ALIGN="RIGHT"
1648VALIGN="TOP"
1649><TT
1650CLASS="PARAMETER"
1651><I
1652>value</I
1653></TT
1654>&nbsp;:</TD
1655><TD
1656WIDTH="80%"
1657ALIGN="LEFT"
1658VALIGN="TOP"
1659>&nbsp;</TD
1660></TR
1661><TR
1662><TD
1663WIDTH="20%"
1664ALIGN="RIGHT"
1665VALIGN="TOP"
1666><I
1667CLASS="EMPHASIS"
1668>Returns</I
1669> :</TD
1670><TD
1671WIDTH="80%"
1672ALIGN="LEFT"
1673VALIGN="TOP"
1674>&nbsp;</TD
1675></TR
1676></TABLE
1677><P
1678></P
1679></DIV
1680></DIV
1681><HR><DIV
1682CLASS="REFSECT2"
1683><A
1684NAME="AEN10773"
1685></A
1686><H3
1687><A
1688NAME="XMLXPATHNEWSTRING"
1689></A
1690>xmlXPathNewString ()</H3
1691><TABLE
1692BORDER="0"
1693BGCOLOR="#D6E8FF"
1694WIDTH="100%"
1695CELLPADDING="6"
1696><TR
1697><TD
1698><PRE
1699CLASS="PROGRAMLISTING"
1700><A
1701HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
1702>xmlXPathObjectPtr</A
1703> xmlXPathNewString (const <A
1704HREF="gnome-xml-tree.html#XMLCHAR"
1705>xmlChar</A
1706> *val);</PRE
1707></TD
1708></TR
1709></TABLE
1710><P
1711>Create a new xmlXPathObjectPtr of type string and of value <TT
1712CLASS="PARAMETER"
1713><I
1714>val</I
1715></TT
1716></P
1717><P
1718></P
1719><DIV
1720CLASS="INFORMALTABLE"
1721><P
1722></P
1723><TABLE
1724BORDER="0"
1725WIDTH="100%"
1726BGCOLOR="#FFD0D0"
1727CELLSPACING="0"
1728CELLPADDING="4"
1729CLASS="CALSTABLE"
1730><TR
1731><TD
1732WIDTH="20%"
1733ALIGN="RIGHT"
1734VALIGN="TOP"
1735><TT
1736CLASS="PARAMETER"
1737><I
1738>val</I
1739></TT
1740>&nbsp;:</TD
1741><TD
1742WIDTH="80%"
1743ALIGN="LEFT"
1744VALIGN="TOP"
1745>&nbsp;</TD
1746></TR
1747><TR
1748><TD
1749WIDTH="20%"
1750ALIGN="RIGHT"
1751VALIGN="TOP"
1752><I
1753CLASS="EMPHASIS"
1754>Returns</I
1755> :</TD
1756><TD
1757WIDTH="80%"
1758ALIGN="LEFT"
1759VALIGN="TOP"
1760>&nbsp;</TD
1761></TR
1762></TABLE
1763><P
1764></P
1765></DIV
1766></DIV
1767><HR><DIV
1768CLASS="REFSECT2"
1769><A
1770NAME="AEN10795"
1771></A
1772><H3
1773><A
1774NAME="XMLXPATHNEWNODESET"
1775></A
1776>xmlXPathNewNodeSet ()</H3
1777><TABLE
1778BORDER="0"
1779BGCOLOR="#D6E8FF"
1780WIDTH="100%"
1781CELLPADDING="6"
1782><TR
1783><TD
1784><PRE
1785CLASS="PROGRAMLISTING"
1786><A
1787HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
1788>xmlXPathObjectPtr</A
1789> xmlXPathNewNodeSet (<A
1790HREF="gnome-xml-tree.html#XMLNODEPTR"
1791>xmlNodePtr</A
1792> val);</PRE
1793></TD
1794></TR
1795></TABLE
1796><P
1797>Create a new xmlXPathObjectPtr of type NodeSet and initialize
1798it with the single Node <TT
1799CLASS="PARAMETER"
1800><I
1801>val</I
1802></TT
1803></P
1804><P
1805></P
1806><DIV
1807CLASS="INFORMALTABLE"
1808><P
1809></P
1810><TABLE
1811BORDER="0"
1812WIDTH="100%"
1813BGCOLOR="#FFD0D0"
1814CELLSPACING="0"
1815CELLPADDING="4"
1816CLASS="CALSTABLE"
1817><TR
1818><TD
1819WIDTH="20%"
1820ALIGN="RIGHT"
1821VALIGN="TOP"
1822><TT
1823CLASS="PARAMETER"
1824><I
1825>val</I
1826></TT
1827>&nbsp;:</TD
1828><TD
1829WIDTH="80%"
1830ALIGN="LEFT"
1831VALIGN="TOP"
1832>&nbsp;</TD
1833></TR
1834><TR
1835><TD
1836WIDTH="20%"
1837ALIGN="RIGHT"
1838VALIGN="TOP"
1839><I
1840CLASS="EMPHASIS"
1841>Returns</I
1842> :</TD
1843><TD
1844WIDTH="80%"
1845ALIGN="LEFT"
1846VALIGN="TOP"
1847>&nbsp;</TD
1848></TR
1849></TABLE
1850><P
1851></P
1852></DIV
1853></DIV
1854><HR><DIV
1855CLASS="REFSECT2"
1856><A
1857NAME="AEN10817"
1858></A
1859><H3
1860><A
1861NAME="XMLXPATHNODESETADD"
1862></A
1863>xmlXPathNodeSetAdd ()</H3
1864><TABLE
1865BORDER="0"
1866BGCOLOR="#D6E8FF"
1867WIDTH="100%"
1868CELLPADDING="6"
1869><TR
1870><TD
1871><PRE
1872CLASS="PROGRAMLISTING"
1873>void xmlXPathNodeSetAdd (<A
1874HREF="gnome-xml-xpath.html#XMLNODESETPTR"
1875>xmlNodeSetPtr</A
1876> cur,
1877 <A
1878HREF="gnome-xml-tree.html#XMLNODEPTR"
1879>xmlNodePtr</A
1880> val);</PRE
1881></TD
1882></TR
1883></TABLE
1884><P
1885>add a new xmlNodePtr ot an existing NodeSet</P
1886><P
1887></P
1888><DIV
1889CLASS="INFORMALTABLE"
1890><P
1891></P
1892><TABLE
1893BORDER="0"
1894WIDTH="100%"
1895BGCOLOR="#FFD0D0"
1896CELLSPACING="0"
1897CELLPADDING="4"
1898CLASS="CALSTABLE"
1899><TR
1900><TD
1901WIDTH="20%"
1902ALIGN="RIGHT"
1903VALIGN="TOP"
1904><TT
1905CLASS="PARAMETER"
1906><I
1907>cur</I
1908></TT
1909>&nbsp;:</TD
1910><TD
1911WIDTH="80%"
1912ALIGN="LEFT"
1913VALIGN="TOP"
1914>&nbsp;</TD
1915></TR
1916><TR
1917><TD
1918WIDTH="20%"
1919ALIGN="RIGHT"
1920VALIGN="TOP"
1921><TT
1922CLASS="PARAMETER"
1923><I
1924>val</I
1925></TT
1926>&nbsp;:</TD
1927><TD
1928WIDTH="80%"
1929ALIGN="LEFT"
1930VALIGN="TOP"
1931>&nbsp;</TD
1932></TR
1933></TABLE
1934><P
1935></P
1936></DIV
1937></DIV
1938><HR><DIV
1939CLASS="REFSECT2"
1940><A
1941NAME="AEN10838"
1942></A
1943><H3
1944><A
1945NAME="XMLXPATHIDFUNCTION"
1946></A
1947>xmlXPathIdFunction ()</H3
1948><TABLE
1949BORDER="0"
1950BGCOLOR="#D6E8FF"
1951WIDTH="100%"
1952CELLPADDING="6"
1953><TR
1954><TD
1955><PRE
1956CLASS="PROGRAMLISTING"
1957>void xmlXPathIdFunction (<A
1958HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
1959>xmlXPathParserContextPtr</A
1960> ctxt,
1961 int nargs);</PRE
1962></TD
1963></TR
1964></TABLE
1965><P
1966>Implement the <GTKDOCLINK
1967HREF="ID"
1968>id</GTKDOCLINK
1969>() XPath function
1970The id function selects elements by their unique ID
1971(see [5.2.1 Unique IDs]). When the argument to id is of type node-set,
1972then the result is the union of the result of applying id to the
1973string value of each of the nodes in the argument node-set. When the
1974argument to id is of any other type, the argument is converted to a
1975string as if by a call to the string function; the string is split
1976into a whitespace-separated list of tokens (whitespace is any sequence
1977of characters matching the production S); the result is a node-set
1978containing the elements in the same document as the context node that
1979have a unique ID equal to any of the tokens in the list.</P
1980><P
1981></P
1982><DIV
1983CLASS="INFORMALTABLE"
1984><P
1985></P
1986><TABLE
1987BORDER="0"
1988WIDTH="100%"
1989BGCOLOR="#FFD0D0"
1990CELLSPACING="0"
1991CELLPADDING="4"
1992CLASS="CALSTABLE"
1993><TR
1994><TD
1995WIDTH="20%"
1996ALIGN="RIGHT"
1997VALIGN="TOP"
1998><TT
1999CLASS="PARAMETER"
2000><I
2001>ctxt</I
2002></TT
2003>&nbsp;:</TD
2004><TD
2005WIDTH="80%"
2006ALIGN="LEFT"
2007VALIGN="TOP"
2008>&nbsp;</TD
2009></TR
2010><TR
2011><TD
2012WIDTH="20%"
2013ALIGN="RIGHT"
2014VALIGN="TOP"
2015><TT
2016CLASS="PARAMETER"
2017><I
2018>nargs</I
2019></TT
2020>&nbsp;:</TD
2021><TD
2022WIDTH="80%"
2023ALIGN="LEFT"
2024VALIGN="TOP"
2025>&nbsp;</TD
2026></TR
2027></TABLE
2028><P
2029></P
2030></DIV
2031></DIV
2032><HR><DIV
2033CLASS="REFSECT2"
2034><A
2035NAME="AEN10859"
2036></A
2037><H3
2038><A
2039NAME="XMLXPATHROOT"
2040></A
2041>xmlXPathRoot ()</H3
2042><TABLE
2043BORDER="0"
2044BGCOLOR="#D6E8FF"
2045WIDTH="100%"
2046CELLPADDING="6"
2047><TR
2048><TD
2049><PRE
2050CLASS="PROGRAMLISTING"
2051>void xmlXPathRoot (<A
2052HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
2053>xmlXPathParserContextPtr</A
2054> ctxt);</PRE
2055></TD
2056></TR
2057></TABLE
2058><P
2059>Initialize the context to the root of the document</P
2060><P
2061></P
2062><DIV
2063CLASS="INFORMALTABLE"
2064><P
2065></P
2066><TABLE
2067BORDER="0"
2068WIDTH="100%"
2069BGCOLOR="#FFD0D0"
2070CELLSPACING="0"
2071CELLPADDING="4"
2072CLASS="CALSTABLE"
2073><TR
2074><TD
2075WIDTH="20%"
2076ALIGN="RIGHT"
2077VALIGN="TOP"
2078><TT
2079CLASS="PARAMETER"
2080><I
2081>ctxt</I
2082></TT
2083>&nbsp;:</TD
2084><TD
2085WIDTH="80%"
2086ALIGN="LEFT"
2087VALIGN="TOP"
2088>&nbsp;</TD
2089></TR
2090></TABLE
2091><P
2092></P
2093></DIV
2094></DIV
2095><HR><DIV
2096CLASS="REFSECT2"
2097><A
2098NAME="AEN10875"
2099></A
2100><H3
2101><A
2102NAME="XMLXPATHEVALEXPR"
2103></A
2104>xmlXPathEvalExpr ()</H3
2105><TABLE
2106BORDER="0"
2107BGCOLOR="#D6E8FF"
2108WIDTH="100%"
2109CELLPADDING="6"
2110><TR
2111><TD
2112><PRE
2113CLASS="PROGRAMLISTING"
2114>void xmlXPathEvalExpr (<A
2115HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
2116>xmlXPathParserContextPtr</A
2117> ctxt);</PRE
2118></TD
2119></TR
2120></TABLE
2121><P
2122>[14] Expr ::= OrExpr
2123[21] OrExpr ::= AndExpr
2124| OrExpr 'or' AndExpr </P
2125><P
2126>Parse and evaluate an expression, then push the result on the stack</P
2127><P
2128></P
2129><DIV
2130CLASS="INFORMALTABLE"
2131><P
2132></P
2133><TABLE
2134BORDER="0"
2135WIDTH="100%"
2136BGCOLOR="#FFD0D0"
2137CELLSPACING="0"
2138CELLPADDING="4"
2139CLASS="CALSTABLE"
2140><TR
2141><TD
2142WIDTH="20%"
2143ALIGN="RIGHT"
2144VALIGN="TOP"
2145><TT
2146CLASS="PARAMETER"
2147><I
2148>ctxt</I
2149></TT
2150>&nbsp;:</TD
2151><TD
2152WIDTH="80%"
2153ALIGN="LEFT"
2154VALIGN="TOP"
2155>&nbsp;</TD
2156></TR
2157></TABLE
2158><P
2159></P
2160></DIV
2161></DIV
2162><HR><DIV
2163CLASS="REFSECT2"
2164><A
2165NAME="AEN10892"
2166></A
2167><H3
2168><A
2169NAME="XMLXPATHINIT"
2170></A
2171>xmlXPathInit ()</H3
2172><TABLE
2173BORDER="0"
2174BGCOLOR="#D6E8FF"
2175WIDTH="100%"
2176CELLPADDING="6"
2177><TR
2178><TD
2179><PRE
2180CLASS="PROGRAMLISTING"
2181>void xmlXPathInit (void);</PRE
2182></TD
2183></TR
2184></TABLE
2185><P
2186>Initialize the XPath environment</P
2187><P
2188></P
2189></DIV
2190><HR><DIV
2191CLASS="REFSECT2"
2192><A
2193NAME="AEN10898"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002194></A
2195><H3
2196><A
2197NAME="XMLXPATHNEWCONTEXT"
2198></A
2199>xmlXPathNewContext ()</H3
2200><TABLE
2201BORDER="0"
2202BGCOLOR="#D6E8FF"
2203WIDTH="100%"
2204CELLPADDING="6"
2205><TR
2206><TD
2207><PRE
2208CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002209><A
2210HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
2211>xmlXPathContextPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002212> xmlXPathNewContext (<A
2213HREF="gnome-xml-tree.html#XMLDOCPTR"
2214>xmlDocPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +00002215> doc);</PRE
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002216></TD
2217></TR
2218></TABLE
2219><P
2220>Create a new xmlXPathContext</P
2221><P
2222></P
2223><DIV
2224CLASS="INFORMALTABLE"
2225><P
2226></P
2227><TABLE
2228BORDER="0"
2229WIDTH="100%"
2230BGCOLOR="#FFD0D0"
2231CELLSPACING="0"
2232CELLPADDING="4"
2233CLASS="CALSTABLE"
2234><TR
2235><TD
2236WIDTH="20%"
2237ALIGN="RIGHT"
2238VALIGN="TOP"
2239><TT
2240CLASS="PARAMETER"
2241><I
2242>doc</I
2243></TT
2244>&nbsp;:</TD
2245><TD
2246WIDTH="80%"
2247ALIGN="LEFT"
2248VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002249>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002250></TR
2251><TR
2252><TD
2253WIDTH="20%"
2254ALIGN="RIGHT"
2255VALIGN="TOP"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002256><I
2257CLASS="EMPHASIS"
2258>Returns</I
2259> :</TD
2260><TD
2261WIDTH="80%"
2262ALIGN="LEFT"
2263VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002264>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002265></TR
2266></TABLE
2267><P
2268></P
2269></DIV
2270></DIV
2271><HR><DIV
2272CLASS="REFSECT2"
2273><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00002274NAME="AEN10919"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002275></A
2276><H3
2277><A
2278NAME="XMLXPATHFREECONTEXT"
2279></A
2280>xmlXPathFreeContext ()</H3
2281><TABLE
2282BORDER="0"
2283BGCOLOR="#D6E8FF"
2284WIDTH="100%"
2285CELLPADDING="6"
2286><TR
2287><TD
2288><PRE
2289CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002290>void xmlXPathFreeContext (<A
2291HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
2292>xmlXPathContextPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002293> ctxt);</PRE
2294></TD
2295></TR
2296></TABLE
2297><P
2298>Free up an xmlXPathContext</P
2299><P
2300></P
2301><DIV
2302CLASS="INFORMALTABLE"
2303><P
2304></P
2305><TABLE
2306BORDER="0"
2307WIDTH="100%"
2308BGCOLOR="#FFD0D0"
2309CELLSPACING="0"
2310CELLPADDING="4"
2311CLASS="CALSTABLE"
2312><TR
2313><TD
2314WIDTH="20%"
2315ALIGN="RIGHT"
2316VALIGN="TOP"
2317><TT
2318CLASS="PARAMETER"
2319><I
2320>ctxt</I
2321></TT
2322>&nbsp;:</TD
2323><TD
2324WIDTH="80%"
2325ALIGN="LEFT"
2326VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002327>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002328></TR
2329></TABLE
2330><P
2331></P
2332></DIV
2333></DIV
2334><HR><DIV
2335CLASS="REFSECT2"
2336><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00002337NAME="AEN10935"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002338></A
2339><H3
2340><A
2341NAME="XMLXPATHEVAL"
2342></A
2343>xmlXPathEval ()</H3
2344><TABLE
2345BORDER="0"
2346BGCOLOR="#D6E8FF"
2347WIDTH="100%"
2348CELLPADDING="6"
2349><TR
2350><TD
2351><PRE
2352CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002353><A
2354HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
2355>xmlXPathObjectPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002356> xmlXPathEval (const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +00002357HREF="gnome-xml-tree.html#XMLCHAR"
2358>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002359> *str,
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002360 <A
2361HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
2362>xmlXPathContextPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002363> ctxt);</PRE
2364></TD
2365></TR
2366></TABLE
2367><P
2368>Evaluate the XPath Location Path in the given context.</P
2369><P
2370></P
2371><DIV
2372CLASS="INFORMALTABLE"
2373><P
2374></P
2375><TABLE
2376BORDER="0"
2377WIDTH="100%"
2378BGCOLOR="#FFD0D0"
2379CELLSPACING="0"
2380CELLPADDING="4"
2381CLASS="CALSTABLE"
2382><TR
2383><TD
2384WIDTH="20%"
2385ALIGN="RIGHT"
2386VALIGN="TOP"
2387><TT
2388CLASS="PARAMETER"
2389><I
2390>str</I
2391></TT
2392>&nbsp;:</TD
2393><TD
2394WIDTH="80%"
2395ALIGN="LEFT"
2396VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002397>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002398></TR
2399><TR
2400><TD
2401WIDTH="20%"
2402ALIGN="RIGHT"
2403VALIGN="TOP"
2404><TT
2405CLASS="PARAMETER"
2406><I
2407>ctxt</I
2408></TT
2409>&nbsp;:</TD
2410><TD
2411WIDTH="80%"
2412ALIGN="LEFT"
2413VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002414>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002415></TR
2416><TR
2417><TD
2418WIDTH="20%"
2419ALIGN="RIGHT"
2420VALIGN="TOP"
2421><I
2422CLASS="EMPHASIS"
2423>Returns</I
2424> :</TD
2425><TD
2426WIDTH="80%"
2427ALIGN="LEFT"
2428VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002429>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002430></TR
2431></TABLE
2432><P
2433></P
2434></DIV
2435></DIV
2436><HR><DIV
2437CLASS="REFSECT2"
2438><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00002439NAME="AEN10961"
2440></A
2441><H3
2442><A
2443NAME="XMLXPATHEVALXPTREXPR"
2444></A
2445>xmlXPathEvalXPtrExpr ()</H3
2446><TABLE
2447BORDER="0"
2448BGCOLOR="#D6E8FF"
2449WIDTH="100%"
2450CELLPADDING="6"
2451><TR
2452><TD
2453><PRE
2454CLASS="PROGRAMLISTING"
2455><A
2456HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
2457>xmlXPathObjectPtr</A
2458> xmlXPathEvalXPtrExpr (const <A
2459HREF="gnome-xml-tree.html#XMLCHAR"
2460>xmlChar</A
2461> *str,
2462 <A
2463HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
2464>xmlXPathContextPtr</A
2465> ctxt);</PRE
2466></TD
2467></TR
2468></TABLE
2469><P
2470>Evaluate the location set corresponding to this expression.</P
2471><P
2472></P
2473><DIV
2474CLASS="INFORMALTABLE"
2475><P
2476></P
2477><TABLE
2478BORDER="0"
2479WIDTH="100%"
2480BGCOLOR="#FFD0D0"
2481CELLSPACING="0"
2482CELLPADDING="4"
2483CLASS="CALSTABLE"
2484><TR
2485><TD
2486WIDTH="20%"
2487ALIGN="RIGHT"
2488VALIGN="TOP"
2489><TT
2490CLASS="PARAMETER"
2491><I
2492>str</I
2493></TT
2494>&nbsp;:</TD
2495><TD
2496WIDTH="80%"
2497ALIGN="LEFT"
2498VALIGN="TOP"
2499>&nbsp;</TD
2500></TR
2501><TR
2502><TD
2503WIDTH="20%"
2504ALIGN="RIGHT"
2505VALIGN="TOP"
2506><TT
2507CLASS="PARAMETER"
2508><I
2509>ctxt</I
2510></TT
2511>&nbsp;:</TD
2512><TD
2513WIDTH="80%"
2514ALIGN="LEFT"
2515VALIGN="TOP"
2516>&nbsp;</TD
2517></TR
2518><TR
2519><TD
2520WIDTH="20%"
2521ALIGN="RIGHT"
2522VALIGN="TOP"
2523><I
2524CLASS="EMPHASIS"
2525>Returns</I
2526> :</TD
2527><TD
2528WIDTH="80%"
2529ALIGN="LEFT"
2530VALIGN="TOP"
2531>&nbsp;</TD
2532></TR
2533></TABLE
2534><P
2535></P
2536></DIV
2537></DIV
2538><HR><DIV
2539CLASS="REFSECT2"
2540><A
2541NAME="AEN10987"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002542></A
2543><H3
2544><A
2545NAME="XMLXPATHFREEOBJECT"
2546></A
2547>xmlXPathFreeObject ()</H3
2548><TABLE
2549BORDER="0"
2550BGCOLOR="#D6E8FF"
2551WIDTH="100%"
2552CELLPADDING="6"
2553><TR
2554><TD
2555><PRE
2556CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002557>void xmlXPathFreeObject (<A
2558HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
2559>xmlXPathObjectPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002560> obj);</PRE
2561></TD
2562></TR
2563></TABLE
2564><P
2565>Free up an xmlXPathObjectPtr object.</P
2566><P
2567></P
2568><DIV
2569CLASS="INFORMALTABLE"
2570><P
2571></P
2572><TABLE
2573BORDER="0"
2574WIDTH="100%"
2575BGCOLOR="#FFD0D0"
2576CELLSPACING="0"
2577CELLPADDING="4"
2578CLASS="CALSTABLE"
2579><TR
2580><TD
2581WIDTH="20%"
2582ALIGN="RIGHT"
2583VALIGN="TOP"
2584><TT
2585CLASS="PARAMETER"
2586><I
2587>obj</I
2588></TT
2589>&nbsp;:</TD
2590><TD
2591WIDTH="80%"
2592ALIGN="LEFT"
2593VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002594>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002595></TR
2596></TABLE
2597><P
2598></P
2599></DIV
2600></DIV
2601><HR><DIV
2602CLASS="REFSECT2"
2603><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00002604NAME="AEN11003"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002605></A
2606><H3
2607><A
2608NAME="XMLXPATHEVALEXPRESSION"
2609></A
2610>xmlXPathEvalExpression ()</H3
2611><TABLE
2612BORDER="0"
2613BGCOLOR="#D6E8FF"
2614WIDTH="100%"
2615CELLPADDING="6"
2616><TR
2617><TD
2618><PRE
2619CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002620><A
2621HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
2622>xmlXPathObjectPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002623> xmlXPathEvalExpression (const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +00002624HREF="gnome-xml-tree.html#XMLCHAR"
2625>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002626> *str,
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002627 <A
2628HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
2629>xmlXPathContextPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002630> ctxt);</PRE
2631></TD
2632></TR
2633></TABLE
2634><P
2635>Evaluate the XPath expression in the given context.</P
2636><P
2637></P
2638><DIV
2639CLASS="INFORMALTABLE"
2640><P
2641></P
2642><TABLE
2643BORDER="0"
2644WIDTH="100%"
2645BGCOLOR="#FFD0D0"
2646CELLSPACING="0"
2647CELLPADDING="4"
2648CLASS="CALSTABLE"
2649><TR
2650><TD
2651WIDTH="20%"
2652ALIGN="RIGHT"
2653VALIGN="TOP"
2654><TT
2655CLASS="PARAMETER"
2656><I
2657>str</I
2658></TT
2659>&nbsp;:</TD
2660><TD
2661WIDTH="80%"
2662ALIGN="LEFT"
2663VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002664>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002665></TR
2666><TR
2667><TD
2668WIDTH="20%"
2669ALIGN="RIGHT"
2670VALIGN="TOP"
2671><TT
2672CLASS="PARAMETER"
2673><I
2674>ctxt</I
2675></TT
2676>&nbsp;:</TD
2677><TD
2678WIDTH="80%"
2679ALIGN="LEFT"
2680VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002681>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002682></TR
2683><TR
2684><TD
2685WIDTH="20%"
2686ALIGN="RIGHT"
2687VALIGN="TOP"
2688><I
2689CLASS="EMPHASIS"
2690>Returns</I
2691> :</TD
2692><TD
2693WIDTH="80%"
2694ALIGN="LEFT"
2695VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002696>&nbsp;</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002697></TR
2698></TABLE
2699><P
2700></P
2701></DIV
2702></DIV
2703><HR><DIV
2704CLASS="REFSECT2"
2705><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00002706NAME="AEN11029"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002707></A
2708><H3
2709><A
2710NAME="XMLXPATHNODESETCREATE"
2711></A
2712>xmlXPathNodeSetCreate ()</H3
2713><TABLE
2714BORDER="0"
2715BGCOLOR="#D6E8FF"
2716WIDTH="100%"
2717CELLPADDING="6"
2718><TR
2719><TD
2720><PRE
2721CLASS="PROGRAMLISTING"
2722><A
2723HREF="gnome-xml-xpath.html#XMLNODESETPTR"
2724>xmlNodeSetPtr</A
2725> xmlXPathNodeSetCreate (<A
2726HREF="gnome-xml-tree.html#XMLNODEPTR"
2727>xmlNodePtr</A
2728> val);</PRE
2729></TD
2730></TR
2731></TABLE
2732><P
2733>Create a new xmlNodeSetPtr of type double and of value <TT
2734CLASS="PARAMETER"
2735><I
2736>val</I
2737></TT
2738></P
2739><P
2740></P
2741><DIV
2742CLASS="INFORMALTABLE"
2743><P
2744></P
2745><TABLE
2746BORDER="0"
2747WIDTH="100%"
2748BGCOLOR="#FFD0D0"
2749CELLSPACING="0"
2750CELLPADDING="4"
2751CLASS="CALSTABLE"
2752><TR
2753><TD
2754WIDTH="20%"
2755ALIGN="RIGHT"
2756VALIGN="TOP"
2757><TT
2758CLASS="PARAMETER"
2759><I
2760>val</I
2761></TT
2762>&nbsp;:</TD
2763><TD
2764WIDTH="80%"
2765ALIGN="LEFT"
2766VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002767>&nbsp;</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002768></TR
2769><TR
2770><TD
2771WIDTH="20%"
2772ALIGN="RIGHT"
2773VALIGN="TOP"
2774><I
2775CLASS="EMPHASIS"
2776>Returns</I
2777> :</TD
2778><TD
2779WIDTH="80%"
2780ALIGN="LEFT"
2781VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002782>&nbsp;</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002783></TR
2784></TABLE
2785><P
2786></P
2787></DIV
2788></DIV
2789><HR><DIV
2790CLASS="REFSECT2"
2791><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00002792NAME="AEN11051"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002793></A
2794><H3
2795><A
2796NAME="XMLXPATHFREENODESETLIST"
2797></A
2798>xmlXPathFreeNodeSetList ()</H3
2799><TABLE
2800BORDER="0"
2801BGCOLOR="#D6E8FF"
2802WIDTH="100%"
2803CELLPADDING="6"
2804><TR
2805><TD
2806><PRE
2807CLASS="PROGRAMLISTING"
2808>void xmlXPathFreeNodeSetList (<A
2809HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
2810>xmlXPathObjectPtr</A
2811> obj);</PRE
2812></TD
2813></TR
2814></TABLE
2815><P
2816>Free up the xmlXPathObjectPtr <TT
2817CLASS="PARAMETER"
2818><I
2819>obj</I
2820></TT
2821> but don't deallocate the objects in
2822the list contrary to <A
2823HREF="gnome-xml-xpath.html#XMLXPATHFREEOBJECT"
2824>xmlXPathFreeObject</A
2825>().</P
2826><P
2827></P
2828><DIV
2829CLASS="INFORMALTABLE"
2830><P
2831></P
2832><TABLE
2833BORDER="0"
2834WIDTH="100%"
2835BGCOLOR="#FFD0D0"
2836CELLSPACING="0"
2837CELLPADDING="4"
2838CLASS="CALSTABLE"
2839><TR
2840><TD
2841WIDTH="20%"
2842ALIGN="RIGHT"
2843VALIGN="TOP"
2844><TT
2845CLASS="PARAMETER"
2846><I
2847>obj</I
2848></TT
2849>&nbsp;:</TD
2850><TD
2851WIDTH="80%"
2852ALIGN="LEFT"
2853VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002854>&nbsp;</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002855></TR
2856></TABLE
2857><P
2858></P
2859></DIV
2860></DIV
2861><HR><DIV
2862CLASS="REFSECT2"
2863><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00002864NAME="AEN11069"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002865></A
2866><H3
2867><A
2868NAME="XMLXPATHFREENODESET"
2869></A
2870>xmlXPathFreeNodeSet ()</H3
2871><TABLE
2872BORDER="0"
2873BGCOLOR="#D6E8FF"
2874WIDTH="100%"
2875CELLPADDING="6"
2876><TR
2877><TD
2878><PRE
2879CLASS="PROGRAMLISTING"
2880>void xmlXPathFreeNodeSet (<A
2881HREF="gnome-xml-xpath.html#XMLNODESETPTR"
2882>xmlNodeSetPtr</A
2883> obj);</PRE
2884></TD
2885></TR
2886></TABLE
2887><P
2888>Free the NodeSet compound (not the actual nodes !).</P
2889><P
2890></P
2891><DIV
2892CLASS="INFORMALTABLE"
2893><P
2894></P
2895><TABLE
2896BORDER="0"
2897WIDTH="100%"
2898BGCOLOR="#FFD0D0"
2899CELLSPACING="0"
2900CELLPADDING="4"
2901CLASS="CALSTABLE"
2902><TR
2903><TD
2904WIDTH="20%"
2905ALIGN="RIGHT"
2906VALIGN="TOP"
2907><TT
2908CLASS="PARAMETER"
2909><I
2910>obj</I
2911></TT
2912>&nbsp;:</TD
2913><TD
2914WIDTH="80%"
2915ALIGN="LEFT"
2916VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00002917>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002918></TR
2919></TABLE
2920><P
2921></P
2922></DIV
2923></DIV
2924></DIV
2925><DIV
2926CLASS="NAVFOOTER"
Daniel Veillard00fdf371999-10-08 09:40:39 +00002927><BR
2928CLEAR="all"><BR><TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002929WIDTH="100%"
2930BORDER="0"
2931BGCOLOR="#000000"
2932CELLPADDING="1"
2933CELLSPACING="0"
2934><TR
2935><TD
2936WIDTH="25%"
2937BGCOLOR="#C00000"
2938ALIGN="left"
2939><A
2940HREF="gnome-xml-htmltree.html"
2941><FONT
2942COLOR="#FFFFFF"
2943SIZE="3"
2944><B
2945>&#60;&#60;&#60; Previous Page</B
2946></FONT
2947></A
2948></TD
2949><TD
2950WIDTH="25%"
2951BGCOLOR="#0000C0"
2952ALIGN="center"
2953><FONT
2954COLOR="#FFFFFF"
2955SIZE="3"
2956><B
2957><A
2958HREF="book1.html"
2959><FONT
2960COLOR="#FFFFFF"
2961SIZE="3"
2962><B
2963>Home</B
2964></FONT
2965></A
2966></B
2967></FONT
2968></TD
2969><TD
2970WIDTH="25%"
2971BGCOLOR="#00C000"
2972ALIGN="center"
2973><FONT
2974COLOR="#FFFFFF"
2975SIZE="3"
2976><B
2977><A
Daniel Veillard35008381999-10-25 13:15:52 +00002978HREF="libxml-lib.html"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002979><FONT
2980COLOR="#FFFFFF"
2981SIZE="3"
2982><B
2983>Up</B
2984></FONT
2985></A
2986></B
2987></FONT
2988></TD
2989><TD
2990WIDTH="25%"
2991BGCOLOR="#C00000"
2992ALIGN="right"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00002993><A
Daniel Veillard35008381999-10-25 13:15:52 +00002994HREF="gnome-xml-nanohttp.html"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00002995><FONT
2996COLOR="#FFFFFF"
2997SIZE="3"
2998><B
2999>Next Page &#62;&#62;&#62;</B
3000></FONT
3001></A
3002></TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00003003></TR
3004><TR
3005><TD
3006COLSPAN="2"
3007ALIGN="left"
3008><FONT
3009COLOR="#FFFFFF"
3010SIZE="3"
3011><B
3012>HTMLtree</B
3013></FONT
3014></TD
3015><TD
3016COLSPAN="2"
3017ALIGN="right"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00003018><FONT
3019COLOR="#FFFFFF"
3020SIZE="3"
3021><B
Daniel Veillard35008381999-10-25 13:15:52 +00003022>nanohttp</B
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00003023></FONT
3024></TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00003025></TR
3026></TABLE
3027></DIV
3028></BODY
3029></HTML
3030>