blob: 14c262608535c19010a87989ede6548d78707725 [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 Veillard3f6f7f62000-06-30 17:58:25 +0000118NAME="AEN9741"
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 Veillard3f6f7f62000-06-30 17:58:25 +0000126NAME="AEN9744"
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>;
157struct <A
158HREF="gnome-xml-xpath.html#XMLNODESET"
159>xmlNodeSet</A
160>;
161typedef <A
162HREF="gnome-xml-xpath.html#XMLNODESETPTR"
163>xmlNodeSetPtr</A
164>;
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000165#define <A
166HREF="gnome-xml-xpath.html#XPATH-UNDEFINED"
167>XPATH_UNDEFINED</A
168>
169#define <A
170HREF="gnome-xml-xpath.html#XPATH-NODESET"
171>XPATH_NODESET</A
172>
173#define <A
174HREF="gnome-xml-xpath.html#XPATH-BOOLEAN"
175>XPATH_BOOLEAN</A
176>
177#define <A
178HREF="gnome-xml-xpath.html#XPATH-NUMBER"
179>XPATH_NUMBER</A
180>
181#define <A
182HREF="gnome-xml-xpath.html#XPATH-STRING"
183>XPATH_STRING</A
184>
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000185#define <A
186HREF="gnome-xml-xpath.html#XPATH-USERS"
187>XPATH_USERS</A
188>
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000189struct <A
190HREF="gnome-xml-xpath.html#XMLXPATHOBJECT"
191>xmlXPathObject</A
192>;
193typedef <A
194HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
195>xmlXPathObjectPtr</A
196>;
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000197int (<A
198HREF="gnome-xml-xpath.html#XMLXPATHCONVERTFUNC"
199>*xmlXPathConvertFunc</A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000200>) (<A
201HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
202>xmlXPathObjectPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000203> obj,
204 int type);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000205struct <A
206HREF="gnome-xml-xpath.html#XMLXPATHTYPE"
207>xmlXPathType</A
208>;
209typedef <A
210HREF="gnome-xml-xpath.html#XMLXPATHTYPEPTR"
211>xmlXPathTypePtr</A
212>;
213struct <A
214HREF="gnome-xml-xpath.html#XMLXPATHVARIABLE"
215>xmlXPathVariable</A
216>;
217typedef <A
218HREF="gnome-xml-xpath.html#XMLXPATHVARIABLEPTR"
219>xmlXPathVariablePtr</A
220>;
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000221void (<A
222HREF="gnome-xml-xpath.html#XMLXPATHEVALFUNC"
223>*xmlXPathEvalFunc</A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000224>) (<A
225HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
226>xmlXPathParserContextPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000227> ctxt,
228 int nargs);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000229struct <A
230HREF="gnome-xml-xpath.html#XMLXPATHFUNCT"
231>xmlXPathFunct</A
232>;
233typedef <A
234HREF="gnome-xml-xpath.html#XMLXPATHFUNCPTR"
235>xmlXPathFuncPtr</A
236>;
237<A
238HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
239>xmlXPathObjectPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000240> (<A
241HREF="gnome-xml-xpath.html#XMLXPATHAXISFUNC"
242>*xmlXPathAxisFunc</A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000243>) (<A
244HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
245>xmlXPathParserContextPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000246> ctxt,
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000247 <A
248HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
249>xmlXPathObjectPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000250> cur);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000251struct <A
252HREF="gnome-xml-xpath.html#XMLXPATHAXIS"
253>xmlXPathAxis</A
254>;
255typedef <A
256HREF="gnome-xml-xpath.html#XMLXPATHAXISPTR"
257>xmlXPathAxisPtr</A
258>;
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000259void (<A
260HREF="gnome-xml-xpath.html#XMLXPATHFUNCTION"
261>*xmlXPathFunction</A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000262>) (<A
263HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
264>xmlXPathParserContextPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000265> ctxt,
266 int nargs);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000267<A
268HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
269>xmlXPathContextPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000270> <A
271HREF="gnome-xml-xpath.html#XMLXPATHNEWCONTEXT"
272>xmlXPathNewContext</A
273> (<A
274HREF="gnome-xml-tree.html#XMLDOCPTR"
275>xmlDocPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000276> doc);
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000277void <A
278HREF="gnome-xml-xpath.html#XMLXPATHFREECONTEXT"
279>xmlXPathFreeContext</A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000280> (<A
281HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
282>xmlXPathContextPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000283> ctxt);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000284<A
285HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
286>xmlXPathObjectPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000287> <A
288HREF="gnome-xml-xpath.html#XMLXPATHEVAL"
289>xmlXPathEval</A
290> (const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000291HREF="gnome-xml-tree.html#XMLCHAR"
292>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000293> *str,
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000294 <A
295HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
296>xmlXPathContextPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000297> ctxt);
298void <A
299HREF="gnome-xml-xpath.html#XMLXPATHFREEOBJECT"
300>xmlXPathFreeObject</A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000301> (<A
302HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
303>xmlXPathObjectPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000304> obj);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000305<A
306HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
307>xmlXPathObjectPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000308> <A
309HREF="gnome-xml-xpath.html#XMLXPATHEVALEXPRESSION"
310>xmlXPathEvalExpression</A
311> (const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000312HREF="gnome-xml-tree.html#XMLCHAR"
313>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000314> *str,
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000315 <A
316HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
317>xmlXPathContextPtr</A
318> ctxt);
319<A
320HREF="gnome-xml-xpath.html#XMLNODESETPTR"
321>xmlNodeSetPtr</A
322> <A
323HREF="gnome-xml-xpath.html#XMLXPATHNODESETCREATE"
324>xmlXPathNodeSetCreate</A
325> (<A
326HREF="gnome-xml-tree.html#XMLNODEPTR"
327>xmlNodePtr</A
328> val);
329void <A
330HREF="gnome-xml-xpath.html#XMLXPATHFREENODESETLIST"
331>xmlXPathFreeNodeSetList</A
332> (<A
333HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
334>xmlXPathObjectPtr</A
335> obj);
336void <A
337HREF="gnome-xml-xpath.html#XMLXPATHFREENODESET"
338>xmlXPathFreeNodeSet</A
339> (<A
340HREF="gnome-xml-xpath.html#XMLNODESETPTR"
341>xmlNodeSetPtr</A
342> obj);</PRE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000343></TD
344></TR
345></TABLE
346></DIV
347><DIV
348CLASS="REFSECT1"
349><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000350NAME="AEN9801"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000351></A
352><H2
353>Description</H2
354><P
355></P
356></DIV
357><DIV
358CLASS="REFSECT1"
359><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000360NAME="AEN9804"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000361></A
362><H2
363>Details</H2
364><DIV
365CLASS="REFSECT2"
366><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000367NAME="AEN9806"
368></A
369><H3
370><A
371NAME="XMLXPATHCONTEXT"
372></A
373>struct xmlXPathContext</H3
374><TABLE
375BORDER="0"
376BGCOLOR="#D6E8FF"
377WIDTH="100%"
378CELLPADDING="6"
379><TR
380><TD
381><PRE
382CLASS="PROGRAMLISTING"
383>struct xmlXPathContext {
384 xmlDocPtr doc; /* The current document */
385 xmlNodePtr node; /* The current node */
386 xmlNodeSetPtr nodelist; /* The current node list */
387
388 int nb_variables; /* number of defined variables */
389 int max_variables; /* max number of variables */
390 xmlXPathVariablePtr *variables; /* Array of defined variables */
391
392 int nb_types; /* number of defined types */
393 int max_types; /* max number of types */
394 xmlXPathTypePtr *types; /* Array of defined types */
395
396 int nb_funcs; /* number of defined funcs */
397 int max_funcs; /* max number of funcs */
398 xmlXPathFuncPtr *funcs; /* Array of defined funcs */
399
400 int nb_axis; /* number of defined axis */
401 int max_axis; /* max number of axis */
402 xmlXPathAxisPtr *axis; /* Array of defined axis */
403
404 /* Namespace traversal should be implemented with user */
405 xmlNsPtr *namespaces; /* The namespaces lookup */
406 int nsNr; /* the current Namespace index */
407 void *user; /* user defined extra info */
408};</PRE
409></TD
410></TR
411></TABLE
412><P
413></P
414></DIV
415><HR><DIV
416CLASS="REFSECT2"
417><A
418NAME="AEN9811"
419></A
420><H3
421><A
422NAME="XMLXPATHCONTEXTPTR"
423></A
424>xmlXPathContextPtr</H3
425><TABLE
426BORDER="0"
427BGCOLOR="#D6E8FF"
428WIDTH="100%"
429CELLPADDING="6"
430><TR
431><TD
432><PRE
433CLASS="PROGRAMLISTING"
434>typedef xmlXPathContext *xmlXPathContextPtr;</PRE
435></TD
436></TR
437></TABLE
438><P
439></P
440></DIV
441><HR><DIV
442CLASS="REFSECT2"
443><A
444NAME="AEN9816"
445></A
446><H3
447><A
448NAME="XMLXPATHPARSERCONTEXT"
449></A
450>struct xmlXPathParserContext</H3
451><TABLE
452BORDER="0"
453BGCOLOR="#D6E8FF"
454WIDTH="100%"
455CELLPADDING="6"
456><TR
457><TD
458><PRE
459CLASS="PROGRAMLISTING"
460>struct xmlXPathParserContext {
461 const xmlChar *cur; /* the current char being parsed */
462 const xmlChar *base; /* the full expression */
463
464 int error; /* error code */
465
466 xmlXPathContextPtr context; /* the evaluation context */
467 xmlXPathObjectPtr value; /* the current value */
468 int valueNr; /* number of values stacked */
469 int valueMax; /* max number of values stacked */
470 xmlXPathObjectPtr *valueTab; /* stack of values */
471};</PRE
472></TD
473></TR
474></TABLE
475><P
476></P
477></DIV
478><HR><DIV
479CLASS="REFSECT2"
480><A
481NAME="AEN9821"
482></A
483><H3
484><A
485NAME="XMLXPATHPARSERCONTEXTPTR"
486></A
487>xmlXPathParserContextPtr</H3
488><TABLE
489BORDER="0"
490BGCOLOR="#D6E8FF"
491WIDTH="100%"
492CELLPADDING="6"
493><TR
494><TD
495><PRE
496CLASS="PROGRAMLISTING"
497>typedef xmlXPathParserContext *xmlXPathParserContextPtr;</PRE
498></TD
499></TR
500></TABLE
501><P
502></P
503></DIV
504><HR><DIV
505CLASS="REFSECT2"
506><A
507NAME="AEN9826"
508></A
509><H3
510><A
511NAME="XMLNODESET"
512></A
513>struct xmlNodeSet</H3
514><TABLE
515BORDER="0"
516BGCOLOR="#D6E8FF"
517WIDTH="100%"
518CELLPADDING="6"
519><TR
520><TD
521><PRE
522CLASS="PROGRAMLISTING"
523>struct xmlNodeSet {
524 int nodeNr; /* number of nodes in the set */
525 int nodeMax; /* size of the array as allocated */
526 xmlNodePtr *nodeTab; /* array of nodes in no particular order */
527};</PRE
528></TD
529></TR
530></TABLE
531><P
532></P
533></DIV
534><HR><DIV
535CLASS="REFSECT2"
536><A
537NAME="AEN9831"
538></A
539><H3
540><A
541NAME="XMLNODESETPTR"
542></A
543>xmlNodeSetPtr</H3
544><TABLE
545BORDER="0"
546BGCOLOR="#D6E8FF"
547WIDTH="100%"
548CELLPADDING="6"
549><TR
550><TD
551><PRE
552CLASS="PROGRAMLISTING"
553>typedef xmlNodeSet *xmlNodeSetPtr;</PRE
554></TD
555></TR
556></TABLE
557><P
558></P
559></DIV
560><HR><DIV
561CLASS="REFSECT2"
562><A
563NAME="AEN9836"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000564></A
565><H3
566><A
567NAME="XPATH-UNDEFINED"
568></A
569>XPATH_UNDEFINED</H3
570><TABLE
571BORDER="0"
572BGCOLOR="#D6E8FF"
573WIDTH="100%"
574CELLPADDING="6"
575><TR
576><TD
577><PRE
578CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000579>#define XPATH_UNDEFINED 0</PRE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000580></TD
581></TR
582></TABLE
583><P
584></P
585></DIV
586><HR><DIV
587CLASS="REFSECT2"
588><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000589NAME="AEN9841"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000590></A
591><H3
592><A
593NAME="XPATH-NODESET"
594></A
595>XPATH_NODESET</H3
596><TABLE
597BORDER="0"
598BGCOLOR="#D6E8FF"
599WIDTH="100%"
600CELLPADDING="6"
601><TR
602><TD
603><PRE
604CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000605>#define XPATH_NODESET 1</PRE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000606></TD
607></TR
608></TABLE
609><P
610></P
611></DIV
612><HR><DIV
613CLASS="REFSECT2"
614><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000615NAME="AEN9846"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000616></A
617><H3
618><A
619NAME="XPATH-BOOLEAN"
620></A
621>XPATH_BOOLEAN</H3
622><TABLE
623BORDER="0"
624BGCOLOR="#D6E8FF"
625WIDTH="100%"
626CELLPADDING="6"
627><TR
628><TD
629><PRE
630CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000631>#define XPATH_BOOLEAN 2</PRE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000632></TD
633></TR
634></TABLE
635><P
636></P
637></DIV
638><HR><DIV
639CLASS="REFSECT2"
640><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000641NAME="AEN9851"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000642></A
643><H3
644><A
645NAME="XPATH-NUMBER"
646></A
647>XPATH_NUMBER</H3
648><TABLE
649BORDER="0"
650BGCOLOR="#D6E8FF"
651WIDTH="100%"
652CELLPADDING="6"
653><TR
654><TD
655><PRE
656CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000657>#define XPATH_NUMBER 3</PRE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000658></TD
659></TR
660></TABLE
661><P
662></P
663></DIV
664><HR><DIV
665CLASS="REFSECT2"
666><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000667NAME="AEN9856"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000668></A
669><H3
670><A
671NAME="XPATH-STRING"
672></A
673>XPATH_STRING</H3
674><TABLE
675BORDER="0"
676BGCOLOR="#D6E8FF"
677WIDTH="100%"
678CELLPADDING="6"
679><TR
680><TD
681><PRE
682CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000683>#define XPATH_STRING 4</PRE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000684></TD
685></TR
686></TABLE
687><P
688></P
689></DIV
690><HR><DIV
691CLASS="REFSECT2"
692><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000693NAME="AEN9861"
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000694></A
695><H3
696><A
697NAME="XPATH-USERS"
698></A
699>XPATH_USERS</H3
700><TABLE
701BORDER="0"
702BGCOLOR="#D6E8FF"
703WIDTH="100%"
704CELLPADDING="6"
705><TR
706><TD
707><PRE
708CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000709>#define XPATH_USERS 5</PRE
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000710></TD
711></TR
712></TABLE
713><P
714></P
715></DIV
716><HR><DIV
717CLASS="REFSECT2"
718><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000719NAME="AEN9866"
720></A
721><H3
722><A
723NAME="XMLXPATHOBJECT"
724></A
725>struct xmlXPathObject</H3
726><TABLE
727BORDER="0"
728BGCOLOR="#D6E8FF"
729WIDTH="100%"
730CELLPADDING="6"
731><TR
732><TD
733><PRE
734CLASS="PROGRAMLISTING"
735>struct xmlXPathObject {
736 int type;
737 xmlNodeSetPtr nodesetval;
738 int boolval;
739 double floatval;
740 xmlChar *stringval;
741 void *user;
742};</PRE
743></TD
744></TR
745></TABLE
746><P
747></P
748></DIV
749><HR><DIV
750CLASS="REFSECT2"
751><A
752NAME="AEN9871"
753></A
754><H3
755><A
756NAME="XMLXPATHOBJECTPTR"
757></A
758>xmlXPathObjectPtr</H3
759><TABLE
760BORDER="0"
761BGCOLOR="#D6E8FF"
762WIDTH="100%"
763CELLPADDING="6"
764><TR
765><TD
766><PRE
767CLASS="PROGRAMLISTING"
768>typedef xmlXPathObject *xmlXPathObjectPtr;</PRE
769></TD
770></TR
771></TABLE
772><P
773></P
774></DIV
775><HR><DIV
776CLASS="REFSECT2"
777><A
778NAME="AEN9876"
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000779></A
780><H3
781><A
782NAME="XMLXPATHCONVERTFUNC"
783></A
784>xmlXPathConvertFunc ()</H3
785><TABLE
786BORDER="0"
787BGCOLOR="#D6E8FF"
788WIDTH="100%"
789CELLPADDING="6"
790><TR
791><TD
792><PRE
793CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000794>int (*xmlXPathConvertFunc) (<A
795HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
796>xmlXPathObjectPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000797> obj,
798 int type);</PRE
799></TD
800></TR
801></TABLE
802><P
803></P
804><DIV
805CLASS="INFORMALTABLE"
806><P
807></P
808><TABLE
809BORDER="0"
810WIDTH="100%"
811BGCOLOR="#FFD0D0"
812CELLSPACING="0"
813CELLPADDING="4"
814CLASS="CALSTABLE"
815><TR
816><TD
817WIDTH="20%"
818ALIGN="RIGHT"
819VALIGN="TOP"
820><TT
821CLASS="PARAMETER"
822><I
823>obj</I
824></TT
825>&nbsp;:</TD
826><TD
827WIDTH="80%"
828ALIGN="LEFT"
829VALIGN="TOP"
830>&nbsp;</TD
831></TR
832><TR
833><TD
834WIDTH="20%"
835ALIGN="RIGHT"
836VALIGN="TOP"
837><TT
838CLASS="PARAMETER"
839><I
840>type</I
841></TT
842>&nbsp;:</TD
843><TD
844WIDTH="80%"
845ALIGN="LEFT"
846VALIGN="TOP"
847>&nbsp;</TD
848></TR
849><TR
850><TD
851WIDTH="20%"
852ALIGN="RIGHT"
853VALIGN="TOP"
854><I
855CLASS="EMPHASIS"
856>Returns</I
857> :</TD
858><TD
859WIDTH="80%"
860ALIGN="LEFT"
861VALIGN="TOP"
862>&nbsp;</TD
863></TR
864></TABLE
865><P
866></P
867></DIV
868></DIV
869><HR><DIV
870CLASS="REFSECT2"
871><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000872NAME="AEN9899"
873></A
874><H3
875><A
876NAME="XMLXPATHTYPE"
877></A
878>struct xmlXPathType</H3
879><TABLE
880BORDER="0"
881BGCOLOR="#D6E8FF"
882WIDTH="100%"
883CELLPADDING="6"
884><TR
885><TD
886><PRE
887CLASS="PROGRAMLISTING"
888>struct xmlXPathType {
889 const xmlChar *name; /* the type name */
890 xmlXPathConvertFunc func; /* the conversion function */
891};</PRE
892></TD
893></TR
894></TABLE
895><P
896></P
897></DIV
898><HR><DIV
899CLASS="REFSECT2"
900><A
901NAME="AEN9904"
902></A
903><H3
904><A
905NAME="XMLXPATHTYPEPTR"
906></A
907>xmlXPathTypePtr</H3
908><TABLE
909BORDER="0"
910BGCOLOR="#D6E8FF"
911WIDTH="100%"
912CELLPADDING="6"
913><TR
914><TD
915><PRE
916CLASS="PROGRAMLISTING"
917>typedef xmlXPathType *xmlXPathTypePtr;</PRE
918></TD
919></TR
920></TABLE
921><P
922></P
923></DIV
924><HR><DIV
925CLASS="REFSECT2"
926><A
927NAME="AEN9909"
928></A
929><H3
930><A
931NAME="XMLXPATHVARIABLE"
932></A
933>struct xmlXPathVariable</H3
934><TABLE
935BORDER="0"
936BGCOLOR="#D6E8FF"
937WIDTH="100%"
938CELLPADDING="6"
939><TR
940><TD
941><PRE
942CLASS="PROGRAMLISTING"
943>struct xmlXPathVariable {
944 const xmlChar *name; /* the variable name */
945 xmlXPathObjectPtr value; /* the value */
946};</PRE
947></TD
948></TR
949></TABLE
950><P
951></P
952></DIV
953><HR><DIV
954CLASS="REFSECT2"
955><A
956NAME="AEN9914"
957></A
958><H3
959><A
960NAME="XMLXPATHVARIABLEPTR"
961></A
962>xmlXPathVariablePtr</H3
963><TABLE
964BORDER="0"
965BGCOLOR="#D6E8FF"
966WIDTH="100%"
967CELLPADDING="6"
968><TR
969><TD
970><PRE
971CLASS="PROGRAMLISTING"
972>typedef xmlXPathVariable *xmlXPathVariablePtr;</PRE
973></TD
974></TR
975></TABLE
976><P
977></P
978></DIV
979><HR><DIV
980CLASS="REFSECT2"
981><A
982NAME="AEN9919"
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000983></A
984><H3
985><A
986NAME="XMLXPATHEVALFUNC"
987></A
988>xmlXPathEvalFunc ()</H3
989><TABLE
990BORDER="0"
991BGCOLOR="#D6E8FF"
992WIDTH="100%"
993CELLPADDING="6"
994><TR
995><TD
996><PRE
997CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000998>void (*xmlXPathEvalFunc) (<A
999HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
1000>xmlXPathParserContextPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001001> ctxt,
1002 int nargs);</PRE
1003></TD
1004></TR
1005></TABLE
1006><P
1007></P
1008><DIV
1009CLASS="INFORMALTABLE"
1010><P
1011></P
1012><TABLE
1013BORDER="0"
1014WIDTH="100%"
1015BGCOLOR="#FFD0D0"
1016CELLSPACING="0"
1017CELLPADDING="4"
1018CLASS="CALSTABLE"
1019><TR
1020><TD
1021WIDTH="20%"
1022ALIGN="RIGHT"
1023VALIGN="TOP"
1024><TT
1025CLASS="PARAMETER"
1026><I
1027>ctxt</I
1028></TT
1029>&nbsp;:</TD
1030><TD
1031WIDTH="80%"
1032ALIGN="LEFT"
1033VALIGN="TOP"
1034>&nbsp;</TD
1035></TR
1036><TR
1037><TD
1038WIDTH="20%"
1039ALIGN="RIGHT"
1040VALIGN="TOP"
1041><TT
1042CLASS="PARAMETER"
1043><I
1044>nargs</I
1045></TT
1046>&nbsp;:</TD
1047><TD
1048WIDTH="80%"
1049ALIGN="LEFT"
1050VALIGN="TOP"
1051>&nbsp;</TD
1052></TR
1053></TABLE
1054><P
1055></P
1056></DIV
1057></DIV
1058><HR><DIV
1059CLASS="REFSECT2"
1060><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001061NAME="AEN9938"
1062></A
1063><H3
1064><A
1065NAME="XMLXPATHFUNCT"
1066></A
1067>struct xmlXPathFunct</H3
1068><TABLE
1069BORDER="0"
1070BGCOLOR="#D6E8FF"
1071WIDTH="100%"
1072CELLPADDING="6"
1073><TR
1074><TD
1075><PRE
1076CLASS="PROGRAMLISTING"
1077>struct xmlXPathFunct {
1078 const xmlChar *name; /* the function name */
1079 xmlXPathEvalFunc func; /* the evaluation function */
1080};</PRE
1081></TD
1082></TR
1083></TABLE
1084><P
1085></P
1086></DIV
1087><HR><DIV
1088CLASS="REFSECT2"
1089><A
1090NAME="AEN9943"
1091></A
1092><H3
1093><A
1094NAME="XMLXPATHFUNCPTR"
1095></A
1096>xmlXPathFuncPtr</H3
1097><TABLE
1098BORDER="0"
1099BGCOLOR="#D6E8FF"
1100WIDTH="100%"
1101CELLPADDING="6"
1102><TR
1103><TD
1104><PRE
1105CLASS="PROGRAMLISTING"
1106>typedef xmlXPathFunct *xmlXPathFuncPtr;</PRE
1107></TD
1108></TR
1109></TABLE
1110><P
1111></P
1112></DIV
1113><HR><DIV
1114CLASS="REFSECT2"
1115><A
1116NAME="AEN9948"
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001117></A
1118><H3
1119><A
1120NAME="XMLXPATHAXISFUNC"
1121></A
1122>xmlXPathAxisFunc ()</H3
1123><TABLE
1124BORDER="0"
1125BGCOLOR="#D6E8FF"
1126WIDTH="100%"
1127CELLPADDING="6"
1128><TR
1129><TD
1130><PRE
1131CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001132><A
1133HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
1134>xmlXPathObjectPtr</A
1135> (*xmlXPathAxisFunc) (<A
1136HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
1137>xmlXPathParserContextPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001138> ctxt,
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001139 <A
1140HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
1141>xmlXPathObjectPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001142> cur);</PRE
1143></TD
1144></TR
1145></TABLE
1146><P
1147></P
1148><DIV
1149CLASS="INFORMALTABLE"
1150><P
1151></P
1152><TABLE
1153BORDER="0"
1154WIDTH="100%"
1155BGCOLOR="#FFD0D0"
1156CELLSPACING="0"
1157CELLPADDING="4"
1158CLASS="CALSTABLE"
1159><TR
1160><TD
1161WIDTH="20%"
1162ALIGN="RIGHT"
1163VALIGN="TOP"
1164><TT
1165CLASS="PARAMETER"
1166><I
1167>ctxt</I
1168></TT
1169>&nbsp;:</TD
1170><TD
1171WIDTH="80%"
1172ALIGN="LEFT"
1173VALIGN="TOP"
1174>&nbsp;</TD
1175></TR
1176><TR
1177><TD
1178WIDTH="20%"
1179ALIGN="RIGHT"
1180VALIGN="TOP"
1181><TT
1182CLASS="PARAMETER"
1183><I
1184>cur</I
1185></TT
1186>&nbsp;:</TD
1187><TD
1188WIDTH="80%"
1189ALIGN="LEFT"
1190VALIGN="TOP"
1191>&nbsp;</TD
1192></TR
1193><TR
1194><TD
1195WIDTH="20%"
1196ALIGN="RIGHT"
1197VALIGN="TOP"
1198><I
1199CLASS="EMPHASIS"
1200>Returns</I
1201> :</TD
1202><TD
1203WIDTH="80%"
1204ALIGN="LEFT"
1205VALIGN="TOP"
1206>&nbsp;</TD
1207></TR
1208></TABLE
1209><P
1210></P
1211></DIV
1212></DIV
1213><HR><DIV
1214CLASS="REFSECT2"
1215><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001216NAME="AEN9973"
1217></A
1218><H3
1219><A
1220NAME="XMLXPATHAXIS"
1221></A
1222>struct xmlXPathAxis</H3
1223><TABLE
1224BORDER="0"
1225BGCOLOR="#D6E8FF"
1226WIDTH="100%"
1227CELLPADDING="6"
1228><TR
1229><TD
1230><PRE
1231CLASS="PROGRAMLISTING"
1232>struct xmlXPathAxis {
1233 const xmlChar *name; /* the axis name */
1234 xmlXPathAxisFunc func; /* the search function */
1235};</PRE
1236></TD
1237></TR
1238></TABLE
1239><P
1240></P
1241></DIV
1242><HR><DIV
1243CLASS="REFSECT2"
1244><A
1245NAME="AEN9978"
1246></A
1247><H3
1248><A
1249NAME="XMLXPATHAXISPTR"
1250></A
1251>xmlXPathAxisPtr</H3
1252><TABLE
1253BORDER="0"
1254BGCOLOR="#D6E8FF"
1255WIDTH="100%"
1256CELLPADDING="6"
1257><TR
1258><TD
1259><PRE
1260CLASS="PROGRAMLISTING"
1261>typedef xmlXPathAxis *xmlXPathAxisPtr;</PRE
1262></TD
1263></TR
1264></TABLE
1265><P
1266></P
1267></DIV
1268><HR><DIV
1269CLASS="REFSECT2"
1270><A
1271NAME="AEN9983"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001272></A
1273><H3
1274><A
1275NAME="XMLXPATHFUNCTION"
1276></A
1277>xmlXPathFunction ()</H3
1278><TABLE
1279BORDER="0"
1280BGCOLOR="#D6E8FF"
1281WIDTH="100%"
1282CELLPADDING="6"
1283><TR
1284><TD
1285><PRE
1286CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001287>void (*xmlXPathFunction) (<A
1288HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
1289>xmlXPathParserContextPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001290> ctxt,
1291 int nargs);</PRE
1292></TD
1293></TR
1294></TABLE
1295><P
1296></P
1297><DIV
1298CLASS="INFORMALTABLE"
1299><P
1300></P
1301><TABLE
1302BORDER="0"
1303WIDTH="100%"
1304BGCOLOR="#FFD0D0"
1305CELLSPACING="0"
1306CELLPADDING="4"
1307CLASS="CALSTABLE"
1308><TR
1309><TD
1310WIDTH="20%"
1311ALIGN="RIGHT"
1312VALIGN="TOP"
1313><TT
1314CLASS="PARAMETER"
1315><I
1316>ctxt</I
1317></TT
1318>&nbsp;:</TD
1319><TD
1320WIDTH="80%"
1321ALIGN="LEFT"
1322VALIGN="TOP"
1323>&nbsp;</TD
1324></TR
1325><TR
1326><TD
1327WIDTH="20%"
1328ALIGN="RIGHT"
1329VALIGN="TOP"
1330><TT
1331CLASS="PARAMETER"
1332><I
1333>nargs</I
1334></TT
1335>&nbsp;:</TD
1336><TD
1337WIDTH="80%"
1338ALIGN="LEFT"
1339VALIGN="TOP"
1340>&nbsp;</TD
1341></TR
1342></TABLE
1343><P
1344></P
1345></DIV
1346></DIV
1347><HR><DIV
1348CLASS="REFSECT2"
1349><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001350NAME="AEN10002"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001351></A
1352><H3
1353><A
1354NAME="XMLXPATHNEWCONTEXT"
1355></A
1356>xmlXPathNewContext ()</H3
1357><TABLE
1358BORDER="0"
1359BGCOLOR="#D6E8FF"
1360WIDTH="100%"
1361CELLPADDING="6"
1362><TR
1363><TD
1364><PRE
1365CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001366><A
1367HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
1368>xmlXPathContextPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001369> xmlXPathNewContext (<A
1370HREF="gnome-xml-tree.html#XMLDOCPTR"
1371>xmlDocPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001372> doc);</PRE
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001373></TD
1374></TR
1375></TABLE
1376><P
1377>Create a new xmlXPathContext</P
1378><P
1379></P
1380><DIV
1381CLASS="INFORMALTABLE"
1382><P
1383></P
1384><TABLE
1385BORDER="0"
1386WIDTH="100%"
1387BGCOLOR="#FFD0D0"
1388CELLSPACING="0"
1389CELLPADDING="4"
1390CLASS="CALSTABLE"
1391><TR
1392><TD
1393WIDTH="20%"
1394ALIGN="RIGHT"
1395VALIGN="TOP"
1396><TT
1397CLASS="PARAMETER"
1398><I
1399>doc</I
1400></TT
1401>&nbsp;:</TD
1402><TD
1403WIDTH="80%"
1404ALIGN="LEFT"
1405VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001406> the XML document</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001407></TR
1408><TR
1409><TD
1410WIDTH="20%"
1411ALIGN="RIGHT"
1412VALIGN="TOP"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001413><I
1414CLASS="EMPHASIS"
1415>Returns</I
1416> :</TD
1417><TD
1418WIDTH="80%"
1419ALIGN="LEFT"
1420VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001421>the xmlXPathContext just allocated.</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001422></TR
1423></TABLE
1424><P
1425></P
1426></DIV
1427></DIV
1428><HR><DIV
1429CLASS="REFSECT2"
1430><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001431NAME="AEN10023"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001432></A
1433><H3
1434><A
1435NAME="XMLXPATHFREECONTEXT"
1436></A
1437>xmlXPathFreeContext ()</H3
1438><TABLE
1439BORDER="0"
1440BGCOLOR="#D6E8FF"
1441WIDTH="100%"
1442CELLPADDING="6"
1443><TR
1444><TD
1445><PRE
1446CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001447>void xmlXPathFreeContext (<A
1448HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
1449>xmlXPathContextPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001450> ctxt);</PRE
1451></TD
1452></TR
1453></TABLE
1454><P
1455>Free up an xmlXPathContext</P
1456><P
1457></P
1458><DIV
1459CLASS="INFORMALTABLE"
1460><P
1461></P
1462><TABLE
1463BORDER="0"
1464WIDTH="100%"
1465BGCOLOR="#FFD0D0"
1466CELLSPACING="0"
1467CELLPADDING="4"
1468CLASS="CALSTABLE"
1469><TR
1470><TD
1471WIDTH="20%"
1472ALIGN="RIGHT"
1473VALIGN="TOP"
1474><TT
1475CLASS="PARAMETER"
1476><I
1477>ctxt</I
1478></TT
1479>&nbsp;:</TD
1480><TD
1481WIDTH="80%"
1482ALIGN="LEFT"
1483VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001484> the context to free</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001485></TR
1486></TABLE
1487><P
1488></P
1489></DIV
1490></DIV
1491><HR><DIV
1492CLASS="REFSECT2"
1493><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001494NAME="AEN10039"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001495></A
1496><H3
1497><A
1498NAME="XMLXPATHEVAL"
1499></A
1500>xmlXPathEval ()</H3
1501><TABLE
1502BORDER="0"
1503BGCOLOR="#D6E8FF"
1504WIDTH="100%"
1505CELLPADDING="6"
1506><TR
1507><TD
1508><PRE
1509CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001510><A
1511HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
1512>xmlXPathObjectPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001513> xmlXPathEval (const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001514HREF="gnome-xml-tree.html#XMLCHAR"
1515>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001516> *str,
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001517 <A
1518HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
1519>xmlXPathContextPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001520> ctxt);</PRE
1521></TD
1522></TR
1523></TABLE
1524><P
1525>Evaluate the XPath Location Path in the given context.</P
1526><P
1527></P
1528><DIV
1529CLASS="INFORMALTABLE"
1530><P
1531></P
1532><TABLE
1533BORDER="0"
1534WIDTH="100%"
1535BGCOLOR="#FFD0D0"
1536CELLSPACING="0"
1537CELLPADDING="4"
1538CLASS="CALSTABLE"
1539><TR
1540><TD
1541WIDTH="20%"
1542ALIGN="RIGHT"
1543VALIGN="TOP"
1544><TT
1545CLASS="PARAMETER"
1546><I
1547>str</I
1548></TT
1549>&nbsp;:</TD
1550><TD
1551WIDTH="80%"
1552ALIGN="LEFT"
1553VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001554> the XPath expression</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001555></TR
1556><TR
1557><TD
1558WIDTH="20%"
1559ALIGN="RIGHT"
1560VALIGN="TOP"
1561><TT
1562CLASS="PARAMETER"
1563><I
1564>ctxt</I
1565></TT
1566>&nbsp;:</TD
1567><TD
1568WIDTH="80%"
1569ALIGN="LEFT"
1570VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001571> the XPath context</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001572></TR
1573><TR
1574><TD
1575WIDTH="20%"
1576ALIGN="RIGHT"
1577VALIGN="TOP"
1578><I
1579CLASS="EMPHASIS"
1580>Returns</I
1581> :</TD
1582><TD
1583WIDTH="80%"
1584ALIGN="LEFT"
1585VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001586>the xmlXPathObjectPtr resulting from the eveluation or NULL.
1587the caller has to free the object.</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001588></TR
1589></TABLE
1590><P
1591></P
1592></DIV
1593></DIV
1594><HR><DIV
1595CLASS="REFSECT2"
1596><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001597NAME="AEN10065"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001598></A
1599><H3
1600><A
1601NAME="XMLXPATHFREEOBJECT"
1602></A
1603>xmlXPathFreeObject ()</H3
1604><TABLE
1605BORDER="0"
1606BGCOLOR="#D6E8FF"
1607WIDTH="100%"
1608CELLPADDING="6"
1609><TR
1610><TD
1611><PRE
1612CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001613>void xmlXPathFreeObject (<A
1614HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
1615>xmlXPathObjectPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001616> obj);</PRE
1617></TD
1618></TR
1619></TABLE
1620><P
1621>Free up an xmlXPathObjectPtr object.</P
1622><P
1623></P
1624><DIV
1625CLASS="INFORMALTABLE"
1626><P
1627></P
1628><TABLE
1629BORDER="0"
1630WIDTH="100%"
1631BGCOLOR="#FFD0D0"
1632CELLSPACING="0"
1633CELLPADDING="4"
1634CLASS="CALSTABLE"
1635><TR
1636><TD
1637WIDTH="20%"
1638ALIGN="RIGHT"
1639VALIGN="TOP"
1640><TT
1641CLASS="PARAMETER"
1642><I
1643>obj</I
1644></TT
1645>&nbsp;:</TD
1646><TD
1647WIDTH="80%"
1648ALIGN="LEFT"
1649VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001650> the object to free</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001651></TR
1652></TABLE
1653><P
1654></P
1655></DIV
1656></DIV
1657><HR><DIV
1658CLASS="REFSECT2"
1659><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001660NAME="AEN10081"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001661></A
1662><H3
1663><A
1664NAME="XMLXPATHEVALEXPRESSION"
1665></A
1666>xmlXPathEvalExpression ()</H3
1667><TABLE
1668BORDER="0"
1669BGCOLOR="#D6E8FF"
1670WIDTH="100%"
1671CELLPADDING="6"
1672><TR
1673><TD
1674><PRE
1675CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001676><A
1677HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
1678>xmlXPathObjectPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001679> xmlXPathEvalExpression (const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001680HREF="gnome-xml-tree.html#XMLCHAR"
1681>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001682> *str,
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001683 <A
1684HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
1685>xmlXPathContextPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001686> ctxt);</PRE
1687></TD
1688></TR
1689></TABLE
1690><P
1691>Evaluate the XPath expression in the given context.</P
1692><P
1693></P
1694><DIV
1695CLASS="INFORMALTABLE"
1696><P
1697></P
1698><TABLE
1699BORDER="0"
1700WIDTH="100%"
1701BGCOLOR="#FFD0D0"
1702CELLSPACING="0"
1703CELLPADDING="4"
1704CLASS="CALSTABLE"
1705><TR
1706><TD
1707WIDTH="20%"
1708ALIGN="RIGHT"
1709VALIGN="TOP"
1710><TT
1711CLASS="PARAMETER"
1712><I
1713>str</I
1714></TT
1715>&nbsp;:</TD
1716><TD
1717WIDTH="80%"
1718ALIGN="LEFT"
1719VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001720> the XPath expression</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001721></TR
1722><TR
1723><TD
1724WIDTH="20%"
1725ALIGN="RIGHT"
1726VALIGN="TOP"
1727><TT
1728CLASS="PARAMETER"
1729><I
1730>ctxt</I
1731></TT
1732>&nbsp;:</TD
1733><TD
1734WIDTH="80%"
1735ALIGN="LEFT"
1736VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001737> the XPath context</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001738></TR
1739><TR
1740><TD
1741WIDTH="20%"
1742ALIGN="RIGHT"
1743VALIGN="TOP"
1744><I
1745CLASS="EMPHASIS"
1746>Returns</I
1747> :</TD
1748><TD
1749WIDTH="80%"
1750ALIGN="LEFT"
1751VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001752>the xmlXPathObjectPtr resulting from the evaluation or NULL.
1753the caller has to free the object.</TD
1754></TR
1755></TABLE
1756><P
1757></P
1758></DIV
1759></DIV
1760><HR><DIV
1761CLASS="REFSECT2"
1762><A
1763NAME="AEN10107"
1764></A
1765><H3
1766><A
1767NAME="XMLXPATHNODESETCREATE"
1768></A
1769>xmlXPathNodeSetCreate ()</H3
1770><TABLE
1771BORDER="0"
1772BGCOLOR="#D6E8FF"
1773WIDTH="100%"
1774CELLPADDING="6"
1775><TR
1776><TD
1777><PRE
1778CLASS="PROGRAMLISTING"
1779><A
1780HREF="gnome-xml-xpath.html#XMLNODESETPTR"
1781>xmlNodeSetPtr</A
1782> xmlXPathNodeSetCreate (<A
1783HREF="gnome-xml-tree.html#XMLNODEPTR"
1784>xmlNodePtr</A
1785> val);</PRE
1786></TD
1787></TR
1788></TABLE
1789><P
1790>Create a new xmlNodeSetPtr of type double and of value <TT
1791CLASS="PARAMETER"
1792><I
1793>val</I
1794></TT
1795></P
1796><P
1797></P
1798><DIV
1799CLASS="INFORMALTABLE"
1800><P
1801></P
1802><TABLE
1803BORDER="0"
1804WIDTH="100%"
1805BGCOLOR="#FFD0D0"
1806CELLSPACING="0"
1807CELLPADDING="4"
1808CLASS="CALSTABLE"
1809><TR
1810><TD
1811WIDTH="20%"
1812ALIGN="RIGHT"
1813VALIGN="TOP"
1814><TT
1815CLASS="PARAMETER"
1816><I
1817>val</I
1818></TT
1819>&nbsp;:</TD
1820><TD
1821WIDTH="80%"
1822ALIGN="LEFT"
1823VALIGN="TOP"
1824> an initial xmlNodePtr, or NULL</TD
1825></TR
1826><TR
1827><TD
1828WIDTH="20%"
1829ALIGN="RIGHT"
1830VALIGN="TOP"
1831><I
1832CLASS="EMPHASIS"
1833>Returns</I
1834> :</TD
1835><TD
1836WIDTH="80%"
1837ALIGN="LEFT"
1838VALIGN="TOP"
1839>the newly created object.</TD
1840></TR
1841></TABLE
1842><P
1843></P
1844></DIV
1845></DIV
1846><HR><DIV
1847CLASS="REFSECT2"
1848><A
1849NAME="AEN10129"
1850></A
1851><H3
1852><A
1853NAME="XMLXPATHFREENODESETLIST"
1854></A
1855>xmlXPathFreeNodeSetList ()</H3
1856><TABLE
1857BORDER="0"
1858BGCOLOR="#D6E8FF"
1859WIDTH="100%"
1860CELLPADDING="6"
1861><TR
1862><TD
1863><PRE
1864CLASS="PROGRAMLISTING"
1865>void xmlXPathFreeNodeSetList (<A
1866HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
1867>xmlXPathObjectPtr</A
1868> obj);</PRE
1869></TD
1870></TR
1871></TABLE
1872><P
1873>Free up the xmlXPathObjectPtr <TT
1874CLASS="PARAMETER"
1875><I
1876>obj</I
1877></TT
1878> but don't deallocate the objects in
1879the list contrary to <A
1880HREF="gnome-xml-xpath.html#XMLXPATHFREEOBJECT"
1881>xmlXPathFreeObject</A
1882>().</P
1883><P
1884></P
1885><DIV
1886CLASS="INFORMALTABLE"
1887><P
1888></P
1889><TABLE
1890BORDER="0"
1891WIDTH="100%"
1892BGCOLOR="#FFD0D0"
1893CELLSPACING="0"
1894CELLPADDING="4"
1895CLASS="CALSTABLE"
1896><TR
1897><TD
1898WIDTH="20%"
1899ALIGN="RIGHT"
1900VALIGN="TOP"
1901><TT
1902CLASS="PARAMETER"
1903><I
1904>obj</I
1905></TT
1906>&nbsp;:</TD
1907><TD
1908WIDTH="80%"
1909ALIGN="LEFT"
1910VALIGN="TOP"
1911> an existing NodeSetList object</TD
1912></TR
1913></TABLE
1914><P
1915></P
1916></DIV
1917></DIV
1918><HR><DIV
1919CLASS="REFSECT2"
1920><A
1921NAME="AEN10147"
1922></A
1923><H3
1924><A
1925NAME="XMLXPATHFREENODESET"
1926></A
1927>xmlXPathFreeNodeSet ()</H3
1928><TABLE
1929BORDER="0"
1930BGCOLOR="#D6E8FF"
1931WIDTH="100%"
1932CELLPADDING="6"
1933><TR
1934><TD
1935><PRE
1936CLASS="PROGRAMLISTING"
1937>void xmlXPathFreeNodeSet (<A
1938HREF="gnome-xml-xpath.html#XMLNODESETPTR"
1939>xmlNodeSetPtr</A
1940> obj);</PRE
1941></TD
1942></TR
1943></TABLE
1944><P
1945>Free the NodeSet compound (not the actual nodes !).</P
1946><P
1947></P
1948><DIV
1949CLASS="INFORMALTABLE"
1950><P
1951></P
1952><TABLE
1953BORDER="0"
1954WIDTH="100%"
1955BGCOLOR="#FFD0D0"
1956CELLSPACING="0"
1957CELLPADDING="4"
1958CLASS="CALSTABLE"
1959><TR
1960><TD
1961WIDTH="20%"
1962ALIGN="RIGHT"
1963VALIGN="TOP"
1964><TT
1965CLASS="PARAMETER"
1966><I
1967>obj</I
1968></TT
1969>&nbsp;:</TD
1970><TD
1971WIDTH="80%"
1972ALIGN="LEFT"
1973VALIGN="TOP"
1974> the xmlNodeSetPtr to free</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001975></TR
1976></TABLE
1977><P
1978></P
1979></DIV
1980></DIV
1981></DIV
1982><DIV
1983CLASS="NAVFOOTER"
Daniel Veillard00fdf371999-10-08 09:40:39 +00001984><BR
1985CLEAR="all"><BR><TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001986WIDTH="100%"
1987BORDER="0"
1988BGCOLOR="#000000"
1989CELLPADDING="1"
1990CELLSPACING="0"
1991><TR
1992><TD
1993WIDTH="25%"
1994BGCOLOR="#C00000"
1995ALIGN="left"
1996><A
1997HREF="gnome-xml-htmltree.html"
1998><FONT
1999COLOR="#FFFFFF"
2000SIZE="3"
2001><B
2002>&#60;&#60;&#60; Previous Page</B
2003></FONT
2004></A
2005></TD
2006><TD
2007WIDTH="25%"
2008BGCOLOR="#0000C0"
2009ALIGN="center"
2010><FONT
2011COLOR="#FFFFFF"
2012SIZE="3"
2013><B
2014><A
2015HREF="book1.html"
2016><FONT
2017COLOR="#FFFFFF"
2018SIZE="3"
2019><B
2020>Home</B
2021></FONT
2022></A
2023></B
2024></FONT
2025></TD
2026><TD
2027WIDTH="25%"
2028BGCOLOR="#00C000"
2029ALIGN="center"
2030><FONT
2031COLOR="#FFFFFF"
2032SIZE="3"
2033><B
2034><A
Daniel Veillard35008381999-10-25 13:15:52 +00002035HREF="libxml-lib.html"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002036><FONT
2037COLOR="#FFFFFF"
2038SIZE="3"
2039><B
2040>Up</B
2041></FONT
2042></A
2043></B
2044></FONT
2045></TD
2046><TD
2047WIDTH="25%"
2048BGCOLOR="#C00000"
2049ALIGN="right"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00002050><A
Daniel Veillard35008381999-10-25 13:15:52 +00002051HREF="gnome-xml-nanohttp.html"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00002052><FONT
2053COLOR="#FFFFFF"
2054SIZE="3"
2055><B
2056>Next Page &#62;&#62;&#62;</B
2057></FONT
2058></A
2059></TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002060></TR
2061><TR
2062><TD
2063COLSPAN="2"
2064ALIGN="left"
2065><FONT
2066COLOR="#FFFFFF"
2067SIZE="3"
2068><B
2069>HTMLtree</B
2070></FONT
2071></TD
2072><TD
2073COLSPAN="2"
2074ALIGN="right"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00002075><FONT
2076COLOR="#FFFFFF"
2077SIZE="3"
2078><B
Daniel Veillard35008381999-10-25 13:15:52 +00002079>nanohttp</B
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00002080></FONT
2081></TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00002082></TR
2083></TABLE
2084></DIV
2085></BODY
2086></HTML
2087>