libxml-xpath.html revision e356c280069914f0052891861a55fdfaff6dcf65
1<HTML
2><HEAD
3><TITLE
4>xpath</TITLE
5><META
6NAME="GENERATOR"
7CONTENT="Modular DocBook HTML Stylesheet Version 1.44"><LINK
8REL="HOME"
9TITLE="Gnome XML Library Reference Manual"
10HREF="book1.html"><LINK
11REL="UP"
12TITLE="Libxml Library Reference"
13HREF="libxml-lib.html"><LINK
14REL="PREVIOUS"
15TITLE="HTMLtree"
16HREF="libxml-htmltree.html"><LINK
17REL="NEXT"
18TITLE="xpathInternals"
19HREF="libxml-xpathinternals.html"></HEAD
20><BODY
21BGCOLOR="#FFFFFF"
22TEXT="#000000"
23LINK="#0000FF"
24VLINK="#840084"
25ALINK="#0000FF"
26><DIV
27CLASS="NAVHEADER"
28><TABLE
29WIDTH="100%"
30BORDER="0"
31BGCOLOR="#000000"
32CELLPADDING="1"
33CELLSPACING="0"
34><TR
35><TH
36COLSPAN="4"
37ALIGN="center"
38><FONT
39COLOR="#FFFFFF"
40SIZE="5"
41>Gnome XML Library Reference Manual</FONT
42></TH
43></TR
44><TR
45><TD
46WIDTH="25%"
47BGCOLOR="#C00000"
48ALIGN="left"
49><A
50HREF="libxml-htmltree.html"
51><FONT
52COLOR="#FFFFFF"
53SIZE="3"
54><B
55>&#60;&#60;&#60; Previous Page</B
56></FONT
57></A
58></TD
59><TD
60WIDTH="25%"
61BGCOLOR="#0000C0"
62ALIGN="center"
63><FONT
64COLOR="#FFFFFF"
65SIZE="3"
66><B
67><A
68HREF="book1.html"
69><FONT
70COLOR="#FFFFFF"
71SIZE="3"
72><B
73>Home</B
74></FONT
75></A
76></B
77></FONT
78></TD
79><TD
80WIDTH="25%"
81BGCOLOR="#00C000"
82ALIGN="center"
83><FONT
84COLOR="#FFFFFF"
85SIZE="3"
86><B
87><A
88HREF="libxml-lib.html"
89><FONT
90COLOR="#FFFFFF"
91SIZE="3"
92><B
93>Up</B
94></FONT
95></A
96></B
97></FONT
98></TD
99><TD
100WIDTH="25%"
101BGCOLOR="#C00000"
102ALIGN="right"
103><A
104HREF="libxml-xpathinternals.html"
105><FONT
106COLOR="#FFFFFF"
107SIZE="3"
108><B
109>Next Page &#62;&#62;&#62;</B
110></FONT
111></A
112></TD
113></TR
114></TABLE
115></DIV
116><H1
117><A
118NAME="LIBXML-XPATH"
119>xpath</A
120></H1
121><DIV
122CLASS="REFNAMEDIV"
123><A
124NAME="AEN10606"
125></A
126><H2
127>Name</H2
128>xpath&nbsp;--&nbsp;</DIV
129><DIV
130CLASS="REFSYNOPSISDIV"
131><A
132NAME="AEN10609"
133></A
134><H2
135>Synopsis</H2
136><TABLE
137BORDER="0"
138BGCOLOR="#D6E8FF"
139WIDTH="100%"
140CELLPADDING="6"
141><TR
142><TD
143><PRE
144CLASS="SYNOPSIS"
145>&#13;
146
147struct      <A
148HREF="libxml-xpath.html#XMLXPATHCONTEXT"
149>xmlXPathContext</A
150>;
151typedef     <A
152HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR"
153>xmlXPathContextPtr</A
154>;
155struct      <A
156HREF="libxml-xpath.html#XMLXPATHPARSERCONTEXT"
157>xmlXPathParserContext</A
158>;
159typedef     <A
160HREF="libxml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
161>xmlXPathParserContextPtr</A
162>;
163enum        <A
164HREF="libxml-xpath.html#XMLXPATHERROR"
165>xmlXPathError</A
166>;
167struct      <A
168HREF="libxml-xpath.html#XMLNODESET"
169>xmlNodeSet</A
170>;
171typedef     <A
172HREF="libxml-xpath.html#XMLNODESETPTR"
173>xmlNodeSetPtr</A
174>;
175enum        <A
176HREF="libxml-xpath.html#XMLXPATHOBJECTTYPE"
177>xmlXPathObjectType</A
178>;
179struct      <A
180HREF="libxml-xpath.html#XMLXPATHOBJECT"
181>xmlXPathObject</A
182>;
183<GTKDOCLINK
184HREF="TYPEDEF"
185>typedef</GTKDOCLINK
186>     <A
187HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
188>xmlXPathObjectPtr</A
189>               ();
190int         (<A
191HREF="libxml-xpath.html#XMLXPATHCONVERTFUNC"
192>*xmlXPathConvertFunc</A
193>)          (<A
194HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
195>xmlXPathObjectPtr</A
196> obj,
197                                             int type);
198struct      <A
199HREF="libxml-xpath.html#XMLXPATHTYPE"
200>xmlXPathType</A
201>;
202typedef     <A
203HREF="libxml-xpath.html#XMLXPATHTYPEPTR"
204>xmlXPathTypePtr</A
205>;
206struct      <A
207HREF="libxml-xpath.html#XMLXPATHVARIABLE"
208>xmlXPathVariable</A
209>;
210typedef     <A
211HREF="libxml-xpath.html#XMLXPATHVARIABLEPTR"
212>xmlXPathVariablePtr</A
213>;
214void        (<A
215HREF="libxml-xpath.html#XMLXPATHEVALFUNC"
216>*xmlXPathEvalFunc</A
217>)             (<A
218HREF="libxml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
219>xmlXPathParserContextPtr</A
220> ctxt,
221                                             int nargs);
222struct      <A
223HREF="libxml-xpath.html#XMLXPATHFUNCT"
224>xmlXPathFunct</A
225>;
226typedef     <A
227HREF="libxml-xpath.html#XMLXPATHFUNCPTR"
228>xmlXPathFuncPtr</A
229>;
230<A
231HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
232>xmlXPathObjectPtr</A
233> (<A
234HREF="libxml-xpath.html#XMLXPATHAXISFUNC"
235>*xmlXPathAxisFunc</A
236>)       (<A
237HREF="libxml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
238>xmlXPathParserContextPtr</A
239> ctxt,
240                                             <A
241HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
242>xmlXPathObjectPtr</A
243> cur);
244struct      <A
245HREF="libxml-xpath.html#XMLXPATHAXIS"
246>xmlXPathAxis</A
247>;
248typedef     <A
249HREF="libxml-xpath.html#XMLXPATHAXISPTR"
250>xmlXPathAxisPtr</A
251>;
252void        (<A
253HREF="libxml-xpath.html#XMLXPATHFUNCTION"
254>*xmlXPathFunction</A
255>)             (<A
256HREF="libxml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
257>xmlXPathParserContextPtr</A
258> ctxt,
259                                             int nargs);
260void        <A
261HREF="libxml-xpath.html#XMLXPATHINIT"
262>xmlXPathInit</A
263>                    (void);
264<A
265HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR"
266>xmlXPathContextPtr</A
267> <A
268HREF="libxml-xpath.html#XMLXPATHNEWCONTEXT"
269>xmlXPathNewContext</A
270>       (<A
271HREF="libxml-tree.html#XMLDOCPTR"
272>xmlDocPtr</A
273> doc);
274void        <A
275HREF="libxml-xpath.html#XMLXPATHFREECONTEXT"
276>xmlXPathFreeContext</A
277>             (<A
278HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR"
279>xmlXPathContextPtr</A
280> ctxt);
281<A
282HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
283>xmlXPathObjectPtr</A
284> <A
285HREF="libxml-xpath.html#XMLXPATHEVAL"
286>xmlXPathEval</A
287>              (const <A
288HREF="libxml-tree.html#XMLCHAR"
289>xmlChar</A
290> *str,
291                                             <A
292HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR"
293>xmlXPathContextPtr</A
294> ctxt);
295<A
296HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
297>xmlXPathObjectPtr</A
298> <A
299HREF="libxml-xpath.html#XMLXPATHEVALXPTREXPR"
300>xmlXPathEvalXPtrExpr</A
301>      (const <A
302HREF="libxml-tree.html#XMLCHAR"
303>xmlChar</A
304> *str,
305                                             <A
306HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR"
307>xmlXPathContextPtr</A
308> ctxt);
309void        <A
310HREF="libxml-xpath.html#XMLXPATHFREEOBJECT"
311>xmlXPathFreeObject</A
312>              (<A
313HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
314>xmlXPathObjectPtr</A
315> obj);
316<A
317HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
318>xmlXPathObjectPtr</A
319> <A
320HREF="libxml-xpath.html#XMLXPATHEVALEXPRESSION"
321>xmlXPathEvalExpression</A
322>    (const <A
323HREF="libxml-tree.html#XMLCHAR"
324>xmlChar</A
325> *str,
326                                             <A
327HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR"
328>xmlXPathContextPtr</A
329> ctxt);
330<A
331HREF="libxml-xpath.html#XMLNODESETPTR"
332>xmlNodeSetPtr</A
333> <A
334HREF="libxml-xpath.html#XMLXPATHNODESETCREATE"
335>xmlXPathNodeSetCreate</A
336>         (<A
337HREF="libxml-tree.html#XMLNODEPTR"
338>xmlNodePtr</A
339> val);
340void        <A
341HREF="libxml-xpath.html#XMLXPATHFREENODESETLIST"
342>xmlXPathFreeNodeSetList</A
343>         (<A
344HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
345>xmlXPathObjectPtr</A
346> obj);
347void        <A
348HREF="libxml-xpath.html#XMLXPATHFREENODESET"
349>xmlXPathFreeNodeSet</A
350>             (<A
351HREF="libxml-xpath.html#XMLNODESETPTR"
352>xmlNodeSetPtr</A
353> obj);
354<A
355HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
356>xmlXPathObjectPtr</A
357> <A
358HREF="libxml-xpath.html#XMLXPATHOBJECTCOPY"
359>xmlXPathObjectCopy</A
360>        (<A
361HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
362>xmlXPathObjectPtr</A
363> val);
364int         <A
365HREF="libxml-xpath.html#XMLXPATHCMPNODES"
366>xmlXPathCmpNodes</A
367>                (<A
368HREF="libxml-tree.html#XMLNODEPTR"
369>xmlNodePtr</A
370> node1,
371                                             <A
372HREF="libxml-tree.html#XMLNODEPTR"
373>xmlNodePtr</A
374> node2);</PRE
375></TD
376></TR
377></TABLE
378></DIV
379><DIV
380CLASS="REFSECT1"
381><A
382NAME="AEN10674"
383></A
384><H2
385>Description</H2
386><P
387></P
388></DIV
389><DIV
390CLASS="REFSECT1"
391><A
392NAME="AEN10677"
393></A
394><H2
395>Details</H2
396><DIV
397CLASS="REFSECT2"
398><A
399NAME="AEN10679"
400></A
401><H3
402><A
403NAME="XMLXPATHCONTEXT"
404></A
405>struct xmlXPathContext</H3
406><TABLE
407BORDER="0"
408BGCOLOR="#D6E8FF"
409WIDTH="100%"
410CELLPADDING="6"
411><TR
412><TD
413><PRE
414CLASS="PROGRAMLISTING"
415>struct xmlXPathContext {
416    xmlDocPtr doc;			/* The current document */
417    xmlNodePtr node;			/* The current node */
418
419    int nb_variables_unused;		/* unused (hash table) */
420    int max_variables_unused;		/* unused (hash table) */
421    xmlHashTablePtr varHash;		/* Hash table of defined variables */
422
423    int nb_types;			/* number of defined types */
424    int max_types;			/* max number of types */
425    xmlXPathTypePtr types;		/* Array of defined types */
426
427    int nb_funcs_unused;		/* unused (hash table) */
428    int max_funcs_unused;		/* unused (hash table) */
429    xmlHashTablePtr funcHash;		/* Hash table of defined funcs */
430
431    int nb_axis;			/* number of defined axis */
432    int max_axis;			/* max number of axis */
433    xmlXPathAxisPtr axis;		/* Array of defined axis */
434
435    /* the namespace nodes of the context node */
436    xmlNsPtr *namespaces;		/* Array of namespaces */
437    int nsNr;				/* number of namespace in scope */
438    void *user;				/* function to free */
439
440    /* extra variables */
441    int contextSize;			/* the context size */
442    int proximityPosition;		/* the proximity position */
443
444    /* extra stuff for XPointer */
445    int xptr;				/* it this an XPointer context */
446    xmlNodePtr here;			/* for here() */
447    xmlNodePtr origin;			/* for origin() */
448
449    /* the set of namespace declarations in scope for the expression */
450    xmlHashTablePtr nsHash;		/* The namespaces hash table */
451    void *varLookupFunc;		/* variable lookup func */
452    void *varLookupData;		/* variable lookup data */
453
454    /* Possibility to link in an extra item */
455    void *extra;                        /* needed for XSLT */
456};</PRE
457></TD
458></TR
459></TABLE
460><P
461></P
462></DIV
463><HR><DIV
464CLASS="REFSECT2"
465><A
466NAME="AEN10684"
467></A
468><H3
469><A
470NAME="XMLXPATHCONTEXTPTR"
471></A
472>xmlXPathContextPtr</H3
473><TABLE
474BORDER="0"
475BGCOLOR="#D6E8FF"
476WIDTH="100%"
477CELLPADDING="6"
478><TR
479><TD
480><PRE
481CLASS="PROGRAMLISTING"
482>typedef xmlXPathContext *xmlXPathContextPtr;</PRE
483></TD
484></TR
485></TABLE
486><P
487></P
488></DIV
489><HR><DIV
490CLASS="REFSECT2"
491><A
492NAME="AEN10689"
493></A
494><H3
495><A
496NAME="XMLXPATHPARSERCONTEXT"
497></A
498>struct xmlXPathParserContext</H3
499><TABLE
500BORDER="0"
501BGCOLOR="#D6E8FF"
502WIDTH="100%"
503CELLPADDING="6"
504><TR
505><TD
506><PRE
507CLASS="PROGRAMLISTING"
508>struct xmlXPathParserContext {
509    const xmlChar *cur;			/* the current char being parsed */
510    const xmlChar *base;			/* the full expression */
511
512    int error;				/* error code */
513
514    xmlXPathContextPtr  context;	/* the evaluation context */
515    xmlXPathObjectPtr     value;	/* the current value */
516    int                 valueNr;	/* number of values stacked */
517    int                valueMax;	/* max number of values stacked */
518    xmlXPathObjectPtr *valueTab;	/* stack of values */
519};</PRE
520></TD
521></TR
522></TABLE
523><P
524></P
525></DIV
526><HR><DIV
527CLASS="REFSECT2"
528><A
529NAME="AEN10694"
530></A
531><H3
532><A
533NAME="XMLXPATHPARSERCONTEXTPTR"
534></A
535>xmlXPathParserContextPtr</H3
536><TABLE
537BORDER="0"
538BGCOLOR="#D6E8FF"
539WIDTH="100%"
540CELLPADDING="6"
541><TR
542><TD
543><PRE
544CLASS="PROGRAMLISTING"
545>typedef xmlXPathParserContext *xmlXPathParserContextPtr;</PRE
546></TD
547></TR
548></TABLE
549><P
550></P
551></DIV
552><HR><DIV
553CLASS="REFSECT2"
554><A
555NAME="AEN10699"
556></A
557><H3
558><A
559NAME="XMLXPATHERROR"
560></A
561>enum xmlXPathError</H3
562><TABLE
563BORDER="0"
564BGCOLOR="#D6E8FF"
565WIDTH="100%"
566CELLPADDING="6"
567><TR
568><TD
569><PRE
570CLASS="PROGRAMLISTING"
571>typedef enum {
572    XPATH_EXPRESSION_OK = 0,
573    XPATH_NUMBER_ERROR,
574    XPATH_UNFINISHED_LITERAL_ERROR,
575    XPATH_START_LITERAL_ERROR,
576    XPATH_VARIABLE_REF_ERROR,
577    XPATH_UNDEF_VARIABLE_ERROR,
578    XPATH_INVALID_PREDICATE_ERROR,
579    XPATH_EXPR_ERROR,
580    XPATH_UNCLOSED_ERROR,
581    XPATH_UNKNOWN_FUNC_ERROR,
582    XPATH_INVALID_OPERAND,
583    XPATH_INVALID_TYPE,
584    XPATH_INVALID_ARITY,
585    XPATH_INVALID_CTXT_SIZE,
586    XPATH_INVALID_CTXT_POSITION,
587    XPATH_MEMORY_ERROR,
588    XPTR_SYNTAX_ERROR,
589    XPTR_RESOURCE_ERROR,
590    XPTR_SUB_RESOURCE_ERROR,
591    XPATH_UNDEF_PREFIX_ERROR
592} xmlXPathError;</PRE
593></TD
594></TR
595></TABLE
596><P
597>Create a new xmlNodeSetPtr of type double and of value <TT
598CLASS="PARAMETER"
599><I
600>val</I
601></TT
602></P
603><P
604></P
605></DIV
606><HR><DIV
607CLASS="REFSECT2"
608><A
609NAME="AEN10706"
610></A
611><H3
612><A
613NAME="XMLNODESET"
614></A
615>struct xmlNodeSet</H3
616><TABLE
617BORDER="0"
618BGCOLOR="#D6E8FF"
619WIDTH="100%"
620CELLPADDING="6"
621><TR
622><TD
623><PRE
624CLASS="PROGRAMLISTING"
625>struct xmlNodeSet {
626    int nodeNr;			/* number of nodes in the set */
627    int nodeMax;		/* size of the array as allocated */
628    xmlNodePtr *nodeTab;	/* array of nodes in no particular order */
629};</PRE
630></TD
631></TR
632></TABLE
633><P
634></P
635></DIV
636><HR><DIV
637CLASS="REFSECT2"
638><A
639NAME="AEN10711"
640></A
641><H3
642><A
643NAME="XMLNODESETPTR"
644></A
645>xmlNodeSetPtr</H3
646><TABLE
647BORDER="0"
648BGCOLOR="#D6E8FF"
649WIDTH="100%"
650CELLPADDING="6"
651><TR
652><TD
653><PRE
654CLASS="PROGRAMLISTING"
655>typedef xmlNodeSet *xmlNodeSetPtr;</PRE
656></TD
657></TR
658></TABLE
659><P
660></P
661></DIV
662><HR><DIV
663CLASS="REFSECT2"
664><A
665NAME="AEN10716"
666></A
667><H3
668><A
669NAME="XMLXPATHOBJECTTYPE"
670></A
671>enum xmlXPathObjectType</H3
672><TABLE
673BORDER="0"
674BGCOLOR="#D6E8FF"
675WIDTH="100%"
676CELLPADDING="6"
677><TR
678><TD
679><PRE
680CLASS="PROGRAMLISTING"
681>typedef enum {
682    XPATH_UNDEFINED = 0,
683    XPATH_NODESET = 1,
684    XPATH_BOOLEAN = 2,
685    XPATH_NUMBER = 3,
686    XPATH_STRING = 4,
687    XPATH_POINT = 5,
688    XPATH_RANGE = 6,
689    XPATH_LOCATIONSET = 7,
690    XPATH_USERS = 8,
691    XPATH_XSLT_TREE = 9  /* An XSLT value tree, non modifiable */
692} xmlXPathObjectType;</PRE
693></TD
694></TR
695></TABLE
696><P
697></P
698></DIV
699><HR><DIV
700CLASS="REFSECT2"
701><A
702NAME="AEN10721"
703></A
704><H3
705><A
706NAME="XMLXPATHOBJECT"
707></A
708>struct xmlXPathObject</H3
709><TABLE
710BORDER="0"
711BGCOLOR="#D6E8FF"
712WIDTH="100%"
713CELLPADDING="6"
714><TR
715><TD
716><PRE
717CLASS="PROGRAMLISTING"
718>struct xmlXPathObject {
719    xmlXPathObjectType type;
720    xmlNodeSetPtr nodesetval;
721    int boolval;
722    double floatval;
723    xmlChar *stringval;
724    void *user;
725    int index;
726    void *user2;
727    int index2;
728};</PRE
729></TD
730></TR
731></TABLE
732><P
733></P
734></DIV
735><HR><DIV
736CLASS="REFSECT2"
737><A
738NAME="AEN10726"
739></A
740><H3
741><A
742NAME="XMLXPATHOBJECTPTR"
743></A
744>xmlXPathObjectPtr ()</H3
745><TABLE
746BORDER="0"
747BGCOLOR="#D6E8FF"
748WIDTH="100%"
749CELLPADDING="6"
750><TR
751><TD
752><PRE
753CLASS="PROGRAMLISTING"
754><GTKDOCLINK
755HREF="TYPEDEF"
756>typedef</GTKDOCLINK
757>     xmlXPathObjectPtr               ();</PRE
758></TD
759></TR
760></TABLE
761><P
762></P
763><DIV
764CLASS="INFORMALTABLE"
765><P
766></P
767><TABLE
768BORDER="0"
769WIDTH="100%"
770BGCOLOR="#FFD0D0"
771CELLSPACING="0"
772CELLPADDING="4"
773CLASS="CALSTABLE"
774><TR
775><TD
776WIDTH="20%"
777ALIGN="RIGHT"
778VALIGN="TOP"
779><I
780CLASS="EMPHASIS"
781>Returns</I
782> :</TD
783><TD
784WIDTH="80%"
785ALIGN="LEFT"
786VALIGN="TOP"
787>&#13;</TD
788></TR
789></TABLE
790><P
791></P
792></DIV
793></DIV
794><HR><DIV
795CLASS="REFSECT2"
796><A
797NAME="AEN10741"
798></A
799><H3
800><A
801NAME="XMLXPATHCONVERTFUNC"
802></A
803>xmlXPathConvertFunc ()</H3
804><TABLE
805BORDER="0"
806BGCOLOR="#D6E8FF"
807WIDTH="100%"
808CELLPADDING="6"
809><TR
810><TD
811><PRE
812CLASS="PROGRAMLISTING"
813>int         (*xmlXPathConvertFunc)          (<A
814HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
815>xmlXPathObjectPtr</A
816> obj,
817                                             int type);</PRE
818></TD
819></TR
820></TABLE
821><P
822></P
823><DIV
824CLASS="INFORMALTABLE"
825><P
826></P
827><TABLE
828BORDER="0"
829WIDTH="100%"
830BGCOLOR="#FFD0D0"
831CELLSPACING="0"
832CELLPADDING="4"
833CLASS="CALSTABLE"
834><TR
835><TD
836WIDTH="20%"
837ALIGN="RIGHT"
838VALIGN="TOP"
839><TT
840CLASS="PARAMETER"
841><I
842>obj</I
843></TT
844>&nbsp;:</TD
845><TD
846WIDTH="80%"
847ALIGN="LEFT"
848VALIGN="TOP"
849>&nbsp;</TD
850></TR
851><TR
852><TD
853WIDTH="20%"
854ALIGN="RIGHT"
855VALIGN="TOP"
856><TT
857CLASS="PARAMETER"
858><I
859>type</I
860></TT
861>&nbsp;:</TD
862><TD
863WIDTH="80%"
864ALIGN="LEFT"
865VALIGN="TOP"
866>&nbsp;</TD
867></TR
868><TR
869><TD
870WIDTH="20%"
871ALIGN="RIGHT"
872VALIGN="TOP"
873><I
874CLASS="EMPHASIS"
875>Returns</I
876> :</TD
877><TD
878WIDTH="80%"
879ALIGN="LEFT"
880VALIGN="TOP"
881>&#13;</TD
882></TR
883></TABLE
884><P
885></P
886></DIV
887></DIV
888><HR><DIV
889CLASS="REFSECT2"
890><A
891NAME="AEN10764"
892></A
893><H3
894><A
895NAME="XMLXPATHTYPE"
896></A
897>struct xmlXPathType</H3
898><TABLE
899BORDER="0"
900BGCOLOR="#D6E8FF"
901WIDTH="100%"
902CELLPADDING="6"
903><TR
904><TD
905><PRE
906CLASS="PROGRAMLISTING"
907>struct xmlXPathType {
908    const xmlChar         *name;		/* the type name */
909    xmlXPathConvertFunc func;		/* the conversion function */
910};</PRE
911></TD
912></TR
913></TABLE
914><P
915></P
916></DIV
917><HR><DIV
918CLASS="REFSECT2"
919><A
920NAME="AEN10769"
921></A
922><H3
923><A
924NAME="XMLXPATHTYPEPTR"
925></A
926>xmlXPathTypePtr</H3
927><TABLE
928BORDER="0"
929BGCOLOR="#D6E8FF"
930WIDTH="100%"
931CELLPADDING="6"
932><TR
933><TD
934><PRE
935CLASS="PROGRAMLISTING"
936>typedef xmlXPathType *xmlXPathTypePtr;</PRE
937></TD
938></TR
939></TABLE
940><P
941></P
942></DIV
943><HR><DIV
944CLASS="REFSECT2"
945><A
946NAME="AEN10774"
947></A
948><H3
949><A
950NAME="XMLXPATHVARIABLE"
951></A
952>struct xmlXPathVariable</H3
953><TABLE
954BORDER="0"
955BGCOLOR="#D6E8FF"
956WIDTH="100%"
957CELLPADDING="6"
958><TR
959><TD
960><PRE
961CLASS="PROGRAMLISTING"
962>struct xmlXPathVariable {
963    const xmlChar       *name;		/* the variable name */
964    xmlXPathObjectPtr value;		/* the value */
965};</PRE
966></TD
967></TR
968></TABLE
969><P
970></P
971></DIV
972><HR><DIV
973CLASS="REFSECT2"
974><A
975NAME="AEN10779"
976></A
977><H3
978><A
979NAME="XMLXPATHVARIABLEPTR"
980></A
981>xmlXPathVariablePtr</H3
982><TABLE
983BORDER="0"
984BGCOLOR="#D6E8FF"
985WIDTH="100%"
986CELLPADDING="6"
987><TR
988><TD
989><PRE
990CLASS="PROGRAMLISTING"
991>typedef xmlXPathVariable *xmlXPathVariablePtr;</PRE
992></TD
993></TR
994></TABLE
995><P
996></P
997></DIV
998><HR><DIV
999CLASS="REFSECT2"
1000><A
1001NAME="AEN10784"
1002></A
1003><H3
1004><A
1005NAME="XMLXPATHEVALFUNC"
1006></A
1007>xmlXPathEvalFunc ()</H3
1008><TABLE
1009BORDER="0"
1010BGCOLOR="#D6E8FF"
1011WIDTH="100%"
1012CELLPADDING="6"
1013><TR
1014><TD
1015><PRE
1016CLASS="PROGRAMLISTING"
1017>void        (*xmlXPathEvalFunc)             (<A
1018HREF="libxml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
1019>xmlXPathParserContextPtr</A
1020> ctxt,
1021                                             int nargs);</PRE
1022></TD
1023></TR
1024></TABLE
1025><P
1026></P
1027><DIV
1028CLASS="INFORMALTABLE"
1029><P
1030></P
1031><TABLE
1032BORDER="0"
1033WIDTH="100%"
1034BGCOLOR="#FFD0D0"
1035CELLSPACING="0"
1036CELLPADDING="4"
1037CLASS="CALSTABLE"
1038><TR
1039><TD
1040WIDTH="20%"
1041ALIGN="RIGHT"
1042VALIGN="TOP"
1043><TT
1044CLASS="PARAMETER"
1045><I
1046>ctxt</I
1047></TT
1048>&nbsp;:</TD
1049><TD
1050WIDTH="80%"
1051ALIGN="LEFT"
1052VALIGN="TOP"
1053>&nbsp;</TD
1054></TR
1055><TR
1056><TD
1057WIDTH="20%"
1058ALIGN="RIGHT"
1059VALIGN="TOP"
1060><TT
1061CLASS="PARAMETER"
1062><I
1063>nargs</I
1064></TT
1065>&nbsp;:</TD
1066><TD
1067WIDTH="80%"
1068ALIGN="LEFT"
1069VALIGN="TOP"
1070>&#13;</TD
1071></TR
1072></TABLE
1073><P
1074></P
1075></DIV
1076></DIV
1077><HR><DIV
1078CLASS="REFSECT2"
1079><A
1080NAME="AEN10803"
1081></A
1082><H3
1083><A
1084NAME="XMLXPATHFUNCT"
1085></A
1086>struct xmlXPathFunct</H3
1087><TABLE
1088BORDER="0"
1089BGCOLOR="#D6E8FF"
1090WIDTH="100%"
1091CELLPADDING="6"
1092><TR
1093><TD
1094><PRE
1095CLASS="PROGRAMLISTING"
1096>struct xmlXPathFunct {
1097    const xmlChar      *name;		/* the function name */
1098    xmlXPathEvalFunc func;		/* the evaluation function */
1099};</PRE
1100></TD
1101></TR
1102></TABLE
1103><P
1104></P
1105></DIV
1106><HR><DIV
1107CLASS="REFSECT2"
1108><A
1109NAME="AEN10808"
1110></A
1111><H3
1112><A
1113NAME="XMLXPATHFUNCPTR"
1114></A
1115>xmlXPathFuncPtr</H3
1116><TABLE
1117BORDER="0"
1118BGCOLOR="#D6E8FF"
1119WIDTH="100%"
1120CELLPADDING="6"
1121><TR
1122><TD
1123><PRE
1124CLASS="PROGRAMLISTING"
1125>typedef xmlXPathFunct *xmlXPathFuncPtr;</PRE
1126></TD
1127></TR
1128></TABLE
1129><P
1130></P
1131></DIV
1132><HR><DIV
1133CLASS="REFSECT2"
1134><A
1135NAME="AEN10813"
1136></A
1137><H3
1138><A
1139NAME="XMLXPATHAXISFUNC"
1140></A
1141>xmlXPathAxisFunc ()</H3
1142><TABLE
1143BORDER="0"
1144BGCOLOR="#D6E8FF"
1145WIDTH="100%"
1146CELLPADDING="6"
1147><TR
1148><TD
1149><PRE
1150CLASS="PROGRAMLISTING"
1151><A
1152HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
1153>xmlXPathObjectPtr</A
1154> (*xmlXPathAxisFunc)       (<A
1155HREF="libxml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
1156>xmlXPathParserContextPtr</A
1157> ctxt,
1158                                             <A
1159HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
1160>xmlXPathObjectPtr</A
1161> cur);</PRE
1162></TD
1163></TR
1164></TABLE
1165><P
1166></P
1167><DIV
1168CLASS="INFORMALTABLE"
1169><P
1170></P
1171><TABLE
1172BORDER="0"
1173WIDTH="100%"
1174BGCOLOR="#FFD0D0"
1175CELLSPACING="0"
1176CELLPADDING="4"
1177CLASS="CALSTABLE"
1178><TR
1179><TD
1180WIDTH="20%"
1181ALIGN="RIGHT"
1182VALIGN="TOP"
1183><TT
1184CLASS="PARAMETER"
1185><I
1186>ctxt</I
1187></TT
1188>&nbsp;:</TD
1189><TD
1190WIDTH="80%"
1191ALIGN="LEFT"
1192VALIGN="TOP"
1193>&nbsp;</TD
1194></TR
1195><TR
1196><TD
1197WIDTH="20%"
1198ALIGN="RIGHT"
1199VALIGN="TOP"
1200><TT
1201CLASS="PARAMETER"
1202><I
1203>cur</I
1204></TT
1205>&nbsp;:</TD
1206><TD
1207WIDTH="80%"
1208ALIGN="LEFT"
1209VALIGN="TOP"
1210>&nbsp;</TD
1211></TR
1212><TR
1213><TD
1214WIDTH="20%"
1215ALIGN="RIGHT"
1216VALIGN="TOP"
1217><I
1218CLASS="EMPHASIS"
1219>Returns</I
1220> :</TD
1221><TD
1222WIDTH="80%"
1223ALIGN="LEFT"
1224VALIGN="TOP"
1225>&#13;</TD
1226></TR
1227></TABLE
1228><P
1229></P
1230></DIV
1231></DIV
1232><HR><DIV
1233CLASS="REFSECT2"
1234><A
1235NAME="AEN10838"
1236></A
1237><H3
1238><A
1239NAME="XMLXPATHAXIS"
1240></A
1241>struct xmlXPathAxis</H3
1242><TABLE
1243BORDER="0"
1244BGCOLOR="#D6E8FF"
1245WIDTH="100%"
1246CELLPADDING="6"
1247><TR
1248><TD
1249><PRE
1250CLASS="PROGRAMLISTING"
1251>struct xmlXPathAxis {
1252    const xmlChar      *name;		/* the axis name */
1253    xmlXPathAxisFunc func;		/* the search function */
1254};</PRE
1255></TD
1256></TR
1257></TABLE
1258><P
1259></P
1260></DIV
1261><HR><DIV
1262CLASS="REFSECT2"
1263><A
1264NAME="AEN10843"
1265></A
1266><H3
1267><A
1268NAME="XMLXPATHAXISPTR"
1269></A
1270>xmlXPathAxisPtr</H3
1271><TABLE
1272BORDER="0"
1273BGCOLOR="#D6E8FF"
1274WIDTH="100%"
1275CELLPADDING="6"
1276><TR
1277><TD
1278><PRE
1279CLASS="PROGRAMLISTING"
1280>typedef xmlXPathAxis *xmlXPathAxisPtr;</PRE
1281></TD
1282></TR
1283></TABLE
1284><P
1285></P
1286></DIV
1287><HR><DIV
1288CLASS="REFSECT2"
1289><A
1290NAME="AEN10848"
1291></A
1292><H3
1293><A
1294NAME="XMLXPATHFUNCTION"
1295></A
1296>xmlXPathFunction ()</H3
1297><TABLE
1298BORDER="0"
1299BGCOLOR="#D6E8FF"
1300WIDTH="100%"
1301CELLPADDING="6"
1302><TR
1303><TD
1304><PRE
1305CLASS="PROGRAMLISTING"
1306>void        (*xmlXPathFunction)             (<A
1307HREF="libxml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
1308>xmlXPathParserContextPtr</A
1309> ctxt,
1310                                             int nargs);</PRE
1311></TD
1312></TR
1313></TABLE
1314><P
1315></P
1316><DIV
1317CLASS="INFORMALTABLE"
1318><P
1319></P
1320><TABLE
1321BORDER="0"
1322WIDTH="100%"
1323BGCOLOR="#FFD0D0"
1324CELLSPACING="0"
1325CELLPADDING="4"
1326CLASS="CALSTABLE"
1327><TR
1328><TD
1329WIDTH="20%"
1330ALIGN="RIGHT"
1331VALIGN="TOP"
1332><TT
1333CLASS="PARAMETER"
1334><I
1335>ctxt</I
1336></TT
1337>&nbsp;:</TD
1338><TD
1339WIDTH="80%"
1340ALIGN="LEFT"
1341VALIGN="TOP"
1342>&nbsp;</TD
1343></TR
1344><TR
1345><TD
1346WIDTH="20%"
1347ALIGN="RIGHT"
1348VALIGN="TOP"
1349><TT
1350CLASS="PARAMETER"
1351><I
1352>nargs</I
1353></TT
1354>&nbsp;:</TD
1355><TD
1356WIDTH="80%"
1357ALIGN="LEFT"
1358VALIGN="TOP"
1359>&#13;</TD
1360></TR
1361></TABLE
1362><P
1363></P
1364></DIV
1365></DIV
1366><HR><DIV
1367CLASS="REFSECT2"
1368><A
1369NAME="AEN10867"
1370></A
1371><H3
1372><A
1373NAME="XMLXPATHINIT"
1374></A
1375>xmlXPathInit ()</H3
1376><TABLE
1377BORDER="0"
1378BGCOLOR="#D6E8FF"
1379WIDTH="100%"
1380CELLPADDING="6"
1381><TR
1382><TD
1383><PRE
1384CLASS="PROGRAMLISTING"
1385>void        xmlXPathInit                    (void);</PRE
1386></TD
1387></TR
1388></TABLE
1389><P
1390>Initialize the XPath environment</P
1391><P
1392></P
1393></DIV
1394><HR><DIV
1395CLASS="REFSECT2"
1396><A
1397NAME="AEN10873"
1398></A
1399><H3
1400><A
1401NAME="XMLXPATHNEWCONTEXT"
1402></A
1403>xmlXPathNewContext ()</H3
1404><TABLE
1405BORDER="0"
1406BGCOLOR="#D6E8FF"
1407WIDTH="100%"
1408CELLPADDING="6"
1409><TR
1410><TD
1411><PRE
1412CLASS="PROGRAMLISTING"
1413><A
1414HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR"
1415>xmlXPathContextPtr</A
1416> xmlXPathNewContext       (<A
1417HREF="libxml-tree.html#XMLDOCPTR"
1418>xmlDocPtr</A
1419> doc);</PRE
1420></TD
1421></TR
1422></TABLE
1423><P
1424>Create a new xmlXPathContext</P
1425><P
1426></P
1427><DIV
1428CLASS="INFORMALTABLE"
1429><P
1430></P
1431><TABLE
1432BORDER="0"
1433WIDTH="100%"
1434BGCOLOR="#FFD0D0"
1435CELLSPACING="0"
1436CELLPADDING="4"
1437CLASS="CALSTABLE"
1438><TR
1439><TD
1440WIDTH="20%"
1441ALIGN="RIGHT"
1442VALIGN="TOP"
1443><TT
1444CLASS="PARAMETER"
1445><I
1446>doc</I
1447></TT
1448>&nbsp;:</TD
1449><TD
1450WIDTH="80%"
1451ALIGN="LEFT"
1452VALIGN="TOP"
1453>  the XML document</TD
1454></TR
1455><TR
1456><TD
1457WIDTH="20%"
1458ALIGN="RIGHT"
1459VALIGN="TOP"
1460><I
1461CLASS="EMPHASIS"
1462>Returns</I
1463> :</TD
1464><TD
1465WIDTH="80%"
1466ALIGN="LEFT"
1467VALIGN="TOP"
1468>the xmlXPathContext just allocated.</TD
1469></TR
1470></TABLE
1471><P
1472></P
1473></DIV
1474></DIV
1475><HR><DIV
1476CLASS="REFSECT2"
1477><A
1478NAME="AEN10894"
1479></A
1480><H3
1481><A
1482NAME="XMLXPATHFREECONTEXT"
1483></A
1484>xmlXPathFreeContext ()</H3
1485><TABLE
1486BORDER="0"
1487BGCOLOR="#D6E8FF"
1488WIDTH="100%"
1489CELLPADDING="6"
1490><TR
1491><TD
1492><PRE
1493CLASS="PROGRAMLISTING"
1494>void        xmlXPathFreeContext             (<A
1495HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR"
1496>xmlXPathContextPtr</A
1497> ctxt);</PRE
1498></TD
1499></TR
1500></TABLE
1501><P
1502>Free up an xmlXPathContext</P
1503><P
1504></P
1505><DIV
1506CLASS="INFORMALTABLE"
1507><P
1508></P
1509><TABLE
1510BORDER="0"
1511WIDTH="100%"
1512BGCOLOR="#FFD0D0"
1513CELLSPACING="0"
1514CELLPADDING="4"
1515CLASS="CALSTABLE"
1516><TR
1517><TD
1518WIDTH="20%"
1519ALIGN="RIGHT"
1520VALIGN="TOP"
1521><TT
1522CLASS="PARAMETER"
1523><I
1524>ctxt</I
1525></TT
1526>&nbsp;:</TD
1527><TD
1528WIDTH="80%"
1529ALIGN="LEFT"
1530VALIGN="TOP"
1531>  the context to free</TD
1532></TR
1533></TABLE
1534><P
1535></P
1536></DIV
1537></DIV
1538><HR><DIV
1539CLASS="REFSECT2"
1540><A
1541NAME="AEN10910"
1542></A
1543><H3
1544><A
1545NAME="XMLXPATHEVAL"
1546></A
1547>xmlXPathEval ()</H3
1548><TABLE
1549BORDER="0"
1550BGCOLOR="#D6E8FF"
1551WIDTH="100%"
1552CELLPADDING="6"
1553><TR
1554><TD
1555><PRE
1556CLASS="PROGRAMLISTING"
1557><A
1558HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
1559>xmlXPathObjectPtr</A
1560> xmlXPathEval              (const <A
1561HREF="libxml-tree.html#XMLCHAR"
1562>xmlChar</A
1563> *str,
1564                                             <A
1565HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR"
1566>xmlXPathContextPtr</A
1567> ctxt);</PRE
1568></TD
1569></TR
1570></TABLE
1571><P
1572>Evaluate the XPath Location Path in the given context.</P
1573><P
1574></P
1575><DIV
1576CLASS="INFORMALTABLE"
1577><P
1578></P
1579><TABLE
1580BORDER="0"
1581WIDTH="100%"
1582BGCOLOR="#FFD0D0"
1583CELLSPACING="0"
1584CELLPADDING="4"
1585CLASS="CALSTABLE"
1586><TR
1587><TD
1588WIDTH="20%"
1589ALIGN="RIGHT"
1590VALIGN="TOP"
1591><TT
1592CLASS="PARAMETER"
1593><I
1594>str</I
1595></TT
1596>&nbsp;:</TD
1597><TD
1598WIDTH="80%"
1599ALIGN="LEFT"
1600VALIGN="TOP"
1601>  the XPath expression</TD
1602></TR
1603><TR
1604><TD
1605WIDTH="20%"
1606ALIGN="RIGHT"
1607VALIGN="TOP"
1608><TT
1609CLASS="PARAMETER"
1610><I
1611>ctxt</I
1612></TT
1613>&nbsp;:</TD
1614><TD
1615WIDTH="80%"
1616ALIGN="LEFT"
1617VALIGN="TOP"
1618>&nbsp;</TD
1619></TR
1620><TR
1621><TD
1622WIDTH="20%"
1623ALIGN="RIGHT"
1624VALIGN="TOP"
1625><I
1626CLASS="EMPHASIS"
1627>Returns</I
1628> :</TD
1629><TD
1630WIDTH="80%"
1631ALIGN="LEFT"
1632VALIGN="TOP"
1633>the xmlXPathObjectPtr resulting from the eveluation or NULL.
1634the caller has to free the object.</TD
1635></TR
1636></TABLE
1637><P
1638></P
1639></DIV
1640></DIV
1641><HR><DIV
1642CLASS="REFSECT2"
1643><A
1644NAME="AEN10936"
1645></A
1646><H3
1647><A
1648NAME="XMLXPATHEVALXPTREXPR"
1649></A
1650>xmlXPathEvalXPtrExpr ()</H3
1651><TABLE
1652BORDER="0"
1653BGCOLOR="#D6E8FF"
1654WIDTH="100%"
1655CELLPADDING="6"
1656><TR
1657><TD
1658><PRE
1659CLASS="PROGRAMLISTING"
1660><A
1661HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
1662>xmlXPathObjectPtr</A
1663> xmlXPathEvalXPtrExpr      (const <A
1664HREF="libxml-tree.html#XMLCHAR"
1665>xmlChar</A
1666> *str,
1667                                             <A
1668HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR"
1669>xmlXPathContextPtr</A
1670> ctxt);</PRE
1671></TD
1672></TR
1673></TABLE
1674><P
1675></P
1676><DIV
1677CLASS="INFORMALTABLE"
1678><P
1679></P
1680><TABLE
1681BORDER="0"
1682WIDTH="100%"
1683BGCOLOR="#FFD0D0"
1684CELLSPACING="0"
1685CELLPADDING="4"
1686CLASS="CALSTABLE"
1687><TR
1688><TD
1689WIDTH="20%"
1690ALIGN="RIGHT"
1691VALIGN="TOP"
1692><TT
1693CLASS="PARAMETER"
1694><I
1695>str</I
1696></TT
1697>&nbsp;:</TD
1698><TD
1699WIDTH="80%"
1700ALIGN="LEFT"
1701VALIGN="TOP"
1702>&nbsp;</TD
1703></TR
1704><TR
1705><TD
1706WIDTH="20%"
1707ALIGN="RIGHT"
1708VALIGN="TOP"
1709><TT
1710CLASS="PARAMETER"
1711><I
1712>ctxt</I
1713></TT
1714>&nbsp;:</TD
1715><TD
1716WIDTH="80%"
1717ALIGN="LEFT"
1718VALIGN="TOP"
1719>&nbsp;</TD
1720></TR
1721><TR
1722><TD
1723WIDTH="20%"
1724ALIGN="RIGHT"
1725VALIGN="TOP"
1726><I
1727CLASS="EMPHASIS"
1728>Returns</I
1729> :</TD
1730><TD
1731WIDTH="80%"
1732ALIGN="LEFT"
1733VALIGN="TOP"
1734>&#13;</TD
1735></TR
1736></TABLE
1737><P
1738></P
1739></DIV
1740></DIV
1741><HR><DIV
1742CLASS="REFSECT2"
1743><A
1744NAME="AEN10961"
1745></A
1746><H3
1747><A
1748NAME="XMLXPATHFREEOBJECT"
1749></A
1750>xmlXPathFreeObject ()</H3
1751><TABLE
1752BORDER="0"
1753BGCOLOR="#D6E8FF"
1754WIDTH="100%"
1755CELLPADDING="6"
1756><TR
1757><TD
1758><PRE
1759CLASS="PROGRAMLISTING"
1760>void        xmlXPathFreeObject              (<A
1761HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
1762>xmlXPathObjectPtr</A
1763> obj);</PRE
1764></TD
1765></TR
1766></TABLE
1767><P
1768>Free up an xmlXPathObjectPtr object.</P
1769><P
1770></P
1771><DIV
1772CLASS="INFORMALTABLE"
1773><P
1774></P
1775><TABLE
1776BORDER="0"
1777WIDTH="100%"
1778BGCOLOR="#FFD0D0"
1779CELLSPACING="0"
1780CELLPADDING="4"
1781CLASS="CALSTABLE"
1782><TR
1783><TD
1784WIDTH="20%"
1785ALIGN="RIGHT"
1786VALIGN="TOP"
1787><TT
1788CLASS="PARAMETER"
1789><I
1790>obj</I
1791></TT
1792>&nbsp;:</TD
1793><TD
1794WIDTH="80%"
1795ALIGN="LEFT"
1796VALIGN="TOP"
1797>  the object to free</TD
1798></TR
1799></TABLE
1800><P
1801></P
1802></DIV
1803></DIV
1804><HR><DIV
1805CLASS="REFSECT2"
1806><A
1807NAME="AEN10977"
1808></A
1809><H3
1810><A
1811NAME="XMLXPATHEVALEXPRESSION"
1812></A
1813>xmlXPathEvalExpression ()</H3
1814><TABLE
1815BORDER="0"
1816BGCOLOR="#D6E8FF"
1817WIDTH="100%"
1818CELLPADDING="6"
1819><TR
1820><TD
1821><PRE
1822CLASS="PROGRAMLISTING"
1823><A
1824HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
1825>xmlXPathObjectPtr</A
1826> xmlXPathEvalExpression    (const <A
1827HREF="libxml-tree.html#XMLCHAR"
1828>xmlChar</A
1829> *str,
1830                                             <A
1831HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR"
1832>xmlXPathContextPtr</A
1833> ctxt);</PRE
1834></TD
1835></TR
1836></TABLE
1837><P
1838>Evaluate the XPath expression in the given context.</P
1839><P
1840></P
1841><DIV
1842CLASS="INFORMALTABLE"
1843><P
1844></P
1845><TABLE
1846BORDER="0"
1847WIDTH="100%"
1848BGCOLOR="#FFD0D0"
1849CELLSPACING="0"
1850CELLPADDING="4"
1851CLASS="CALSTABLE"
1852><TR
1853><TD
1854WIDTH="20%"
1855ALIGN="RIGHT"
1856VALIGN="TOP"
1857><TT
1858CLASS="PARAMETER"
1859><I
1860>str</I
1861></TT
1862>&nbsp;:</TD
1863><TD
1864WIDTH="80%"
1865ALIGN="LEFT"
1866VALIGN="TOP"
1867>  the XPath expression</TD
1868></TR
1869><TR
1870><TD
1871WIDTH="20%"
1872ALIGN="RIGHT"
1873VALIGN="TOP"
1874><TT
1875CLASS="PARAMETER"
1876><I
1877>ctxt</I
1878></TT
1879>&nbsp;:</TD
1880><TD
1881WIDTH="80%"
1882ALIGN="LEFT"
1883VALIGN="TOP"
1884>  the XPath context</TD
1885></TR
1886><TR
1887><TD
1888WIDTH="20%"
1889ALIGN="RIGHT"
1890VALIGN="TOP"
1891><I
1892CLASS="EMPHASIS"
1893>Returns</I
1894> :</TD
1895><TD
1896WIDTH="80%"
1897ALIGN="LEFT"
1898VALIGN="TOP"
1899>the xmlXPathObjectPtr resulting from the evaluation or NULL.
1900the caller has to free the object.</TD
1901></TR
1902></TABLE
1903><P
1904></P
1905></DIV
1906></DIV
1907><HR><DIV
1908CLASS="REFSECT2"
1909><A
1910NAME="AEN11003"
1911></A
1912><H3
1913><A
1914NAME="XMLXPATHNODESETCREATE"
1915></A
1916>xmlXPathNodeSetCreate ()</H3
1917><TABLE
1918BORDER="0"
1919BGCOLOR="#D6E8FF"
1920WIDTH="100%"
1921CELLPADDING="6"
1922><TR
1923><TD
1924><PRE
1925CLASS="PROGRAMLISTING"
1926><A
1927HREF="libxml-xpath.html#XMLNODESETPTR"
1928>xmlNodeSetPtr</A
1929> xmlXPathNodeSetCreate         (<A
1930HREF="libxml-tree.html#XMLNODEPTR"
1931>xmlNodePtr</A
1932> val);</PRE
1933></TD
1934></TR
1935></TABLE
1936><P
1937>Create a new xmlNodeSetPtr of type double and of value <TT
1938CLASS="PARAMETER"
1939><I
1940>val</I
1941></TT
1942></P
1943><P
1944></P
1945><DIV
1946CLASS="INFORMALTABLE"
1947><P
1948></P
1949><TABLE
1950BORDER="0"
1951WIDTH="100%"
1952BGCOLOR="#FFD0D0"
1953CELLSPACING="0"
1954CELLPADDING="4"
1955CLASS="CALSTABLE"
1956><TR
1957><TD
1958WIDTH="20%"
1959ALIGN="RIGHT"
1960VALIGN="TOP"
1961><TT
1962CLASS="PARAMETER"
1963><I
1964>val</I
1965></TT
1966>&nbsp;:</TD
1967><TD
1968WIDTH="80%"
1969ALIGN="LEFT"
1970VALIGN="TOP"
1971>  an initial xmlNodePtr, or NULL</TD
1972></TR
1973><TR
1974><TD
1975WIDTH="20%"
1976ALIGN="RIGHT"
1977VALIGN="TOP"
1978><I
1979CLASS="EMPHASIS"
1980>Returns</I
1981> :</TD
1982><TD
1983WIDTH="80%"
1984ALIGN="LEFT"
1985VALIGN="TOP"
1986>the newly created object.</TD
1987></TR
1988></TABLE
1989><P
1990></P
1991></DIV
1992></DIV
1993><HR><DIV
1994CLASS="REFSECT2"
1995><A
1996NAME="AEN11025"
1997></A
1998><H3
1999><A
2000NAME="XMLXPATHFREENODESETLIST"
2001></A
2002>xmlXPathFreeNodeSetList ()</H3
2003><TABLE
2004BORDER="0"
2005BGCOLOR="#D6E8FF"
2006WIDTH="100%"
2007CELLPADDING="6"
2008><TR
2009><TD
2010><PRE
2011CLASS="PROGRAMLISTING"
2012>void        xmlXPathFreeNodeSetList         (<A
2013HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
2014>xmlXPathObjectPtr</A
2015> obj);</PRE
2016></TD
2017></TR
2018></TABLE
2019><P
2020>Free up the xmlXPathObjectPtr <TT
2021CLASS="PARAMETER"
2022><I
2023>obj</I
2024></TT
2025> but don't deallocate the objects in
2026the list contrary to <A
2027HREF="libxml-xpath.html#XMLXPATHFREEOBJECT"
2028>xmlXPathFreeObject</A
2029>().</P
2030><P
2031></P
2032><DIV
2033CLASS="INFORMALTABLE"
2034><P
2035></P
2036><TABLE
2037BORDER="0"
2038WIDTH="100%"
2039BGCOLOR="#FFD0D0"
2040CELLSPACING="0"
2041CELLPADDING="4"
2042CLASS="CALSTABLE"
2043><TR
2044><TD
2045WIDTH="20%"
2046ALIGN="RIGHT"
2047VALIGN="TOP"
2048><TT
2049CLASS="PARAMETER"
2050><I
2051>obj</I
2052></TT
2053>&nbsp;:</TD
2054><TD
2055WIDTH="80%"
2056ALIGN="LEFT"
2057VALIGN="TOP"
2058>  an existing NodeSetList object</TD
2059></TR
2060></TABLE
2061><P
2062></P
2063></DIV
2064></DIV
2065><HR><DIV
2066CLASS="REFSECT2"
2067><A
2068NAME="AEN11043"
2069></A
2070><H3
2071><A
2072NAME="XMLXPATHFREENODESET"
2073></A
2074>xmlXPathFreeNodeSet ()</H3
2075><TABLE
2076BORDER="0"
2077BGCOLOR="#D6E8FF"
2078WIDTH="100%"
2079CELLPADDING="6"
2080><TR
2081><TD
2082><PRE
2083CLASS="PROGRAMLISTING"
2084>void        xmlXPathFreeNodeSet             (<A
2085HREF="libxml-xpath.html#XMLNODESETPTR"
2086>xmlNodeSetPtr</A
2087> obj);</PRE
2088></TD
2089></TR
2090></TABLE
2091><P
2092>Free the NodeSet compound (not the actual nodes !).</P
2093><P
2094></P
2095><DIV
2096CLASS="INFORMALTABLE"
2097><P
2098></P
2099><TABLE
2100BORDER="0"
2101WIDTH="100%"
2102BGCOLOR="#FFD0D0"
2103CELLSPACING="0"
2104CELLPADDING="4"
2105CLASS="CALSTABLE"
2106><TR
2107><TD
2108WIDTH="20%"
2109ALIGN="RIGHT"
2110VALIGN="TOP"
2111><TT
2112CLASS="PARAMETER"
2113><I
2114>obj</I
2115></TT
2116>&nbsp;:</TD
2117><TD
2118WIDTH="80%"
2119ALIGN="LEFT"
2120VALIGN="TOP"
2121>  the xmlNodeSetPtr to free</TD
2122></TR
2123></TABLE
2124><P
2125></P
2126></DIV
2127></DIV
2128><HR><DIV
2129CLASS="REFSECT2"
2130><A
2131NAME="AEN11059"
2132></A
2133><H3
2134><A
2135NAME="XMLXPATHOBJECTCOPY"
2136></A
2137>xmlXPathObjectCopy ()</H3
2138><TABLE
2139BORDER="0"
2140BGCOLOR="#D6E8FF"
2141WIDTH="100%"
2142CELLPADDING="6"
2143><TR
2144><TD
2145><PRE
2146CLASS="PROGRAMLISTING"
2147><A
2148HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
2149>xmlXPathObjectPtr</A
2150> xmlXPathObjectCopy        (<A
2151HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
2152>xmlXPathObjectPtr</A
2153> val);</PRE
2154></TD
2155></TR
2156></TABLE
2157><P
2158>allocate a new copy of a given object</P
2159><P
2160></P
2161><DIV
2162CLASS="INFORMALTABLE"
2163><P
2164></P
2165><TABLE
2166BORDER="0"
2167WIDTH="100%"
2168BGCOLOR="#FFD0D0"
2169CELLSPACING="0"
2170CELLPADDING="4"
2171CLASS="CALSTABLE"
2172><TR
2173><TD
2174WIDTH="20%"
2175ALIGN="RIGHT"
2176VALIGN="TOP"
2177><TT
2178CLASS="PARAMETER"
2179><I
2180>val</I
2181></TT
2182>&nbsp;:</TD
2183><TD
2184WIDTH="80%"
2185ALIGN="LEFT"
2186VALIGN="TOP"
2187>  the original object</TD
2188></TR
2189><TR
2190><TD
2191WIDTH="20%"
2192ALIGN="RIGHT"
2193VALIGN="TOP"
2194><I
2195CLASS="EMPHASIS"
2196>Returns</I
2197> :</TD
2198><TD
2199WIDTH="80%"
2200ALIGN="LEFT"
2201VALIGN="TOP"
2202>the newly created object.</TD
2203></TR
2204></TABLE
2205><P
2206></P
2207></DIV
2208></DIV
2209><HR><DIV
2210CLASS="REFSECT2"
2211><A
2212NAME="AEN11080"
2213></A
2214><H3
2215><A
2216NAME="XMLXPATHCMPNODES"
2217></A
2218>xmlXPathCmpNodes ()</H3
2219><TABLE
2220BORDER="0"
2221BGCOLOR="#D6E8FF"
2222WIDTH="100%"
2223CELLPADDING="6"
2224><TR
2225><TD
2226><PRE
2227CLASS="PROGRAMLISTING"
2228>int         xmlXPathCmpNodes                (<A
2229HREF="libxml-tree.html#XMLNODEPTR"
2230>xmlNodePtr</A
2231> node1,
2232                                             <A
2233HREF="libxml-tree.html#XMLNODEPTR"
2234>xmlNodePtr</A
2235> node2);</PRE
2236></TD
2237></TR
2238></TABLE
2239><P
2240>Compare two nodes w.r.t document order</P
2241><P
2242></P
2243><DIV
2244CLASS="INFORMALTABLE"
2245><P
2246></P
2247><TABLE
2248BORDER="0"
2249WIDTH="100%"
2250BGCOLOR="#FFD0D0"
2251CELLSPACING="0"
2252CELLPADDING="4"
2253CLASS="CALSTABLE"
2254><TR
2255><TD
2256WIDTH="20%"
2257ALIGN="RIGHT"
2258VALIGN="TOP"
2259><TT
2260CLASS="PARAMETER"
2261><I
2262>node1</I
2263></TT
2264>&nbsp;:</TD
2265><TD
2266WIDTH="80%"
2267ALIGN="LEFT"
2268VALIGN="TOP"
2269>  the first node</TD
2270></TR
2271><TR
2272><TD
2273WIDTH="20%"
2274ALIGN="RIGHT"
2275VALIGN="TOP"
2276><TT
2277CLASS="PARAMETER"
2278><I
2279>node2</I
2280></TT
2281>&nbsp;:</TD
2282><TD
2283WIDTH="80%"
2284ALIGN="LEFT"
2285VALIGN="TOP"
2286>  the second node</TD
2287></TR
2288><TR
2289><TD
2290WIDTH="20%"
2291ALIGN="RIGHT"
2292VALIGN="TOP"
2293><I
2294CLASS="EMPHASIS"
2295>Returns</I
2296> :</TD
2297><TD
2298WIDTH="80%"
2299ALIGN="LEFT"
2300VALIGN="TOP"
2301>-2 in case of error 1 if first point &lt; second point, 0 if
2302that's the same node, -1 otherwise</TD
2303></TR
2304></TABLE
2305><P
2306></P
2307></DIV
2308></DIV
2309></DIV
2310><DIV
2311CLASS="NAVFOOTER"
2312><BR
2313CLEAR="all"><BR><TABLE
2314WIDTH="100%"
2315BORDER="0"
2316BGCOLOR="#000000"
2317CELLPADDING="1"
2318CELLSPACING="0"
2319><TR
2320><TD
2321WIDTH="25%"
2322BGCOLOR="#C00000"
2323ALIGN="left"
2324><A
2325HREF="libxml-htmltree.html"
2326><FONT
2327COLOR="#FFFFFF"
2328SIZE="3"
2329><B
2330>&#60;&#60;&#60; Previous Page</B
2331></FONT
2332></A
2333></TD
2334><TD
2335WIDTH="25%"
2336BGCOLOR="#0000C0"
2337ALIGN="center"
2338><FONT
2339COLOR="#FFFFFF"
2340SIZE="3"
2341><B
2342><A
2343HREF="book1.html"
2344><FONT
2345COLOR="#FFFFFF"
2346SIZE="3"
2347><B
2348>Home</B
2349></FONT
2350></A
2351></B
2352></FONT
2353></TD
2354><TD
2355WIDTH="25%"
2356BGCOLOR="#00C000"
2357ALIGN="center"
2358><FONT
2359COLOR="#FFFFFF"
2360SIZE="3"
2361><B
2362><A
2363HREF="libxml-lib.html"
2364><FONT
2365COLOR="#FFFFFF"
2366SIZE="3"
2367><B
2368>Up</B
2369></FONT
2370></A
2371></B
2372></FONT
2373></TD
2374><TD
2375WIDTH="25%"
2376BGCOLOR="#C00000"
2377ALIGN="right"
2378><A
2379HREF="libxml-xpathinternals.html"
2380><FONT
2381COLOR="#FFFFFF"
2382SIZE="3"
2383><B
2384>Next Page &#62;&#62;&#62;</B
2385></FONT
2386></A
2387></TD
2388></TR
2389><TR
2390><TD
2391COLSPAN="2"
2392ALIGN="left"
2393><FONT
2394COLOR="#FFFFFF"
2395SIZE="3"
2396><B
2397>HTMLtree</B
2398></FONT
2399></TD
2400><TD
2401COLSPAN="2"
2402ALIGN="right"
2403><FONT
2404COLOR="#FFFFFF"
2405SIZE="3"
2406><B
2407>xpathInternals</B
2408></FONT
2409></TD
2410></TR
2411></TABLE
2412></DIV
2413></BODY
2414></HTML
2415>