blob: ec94875bdf6230404c24cc3f39ea6518dd650bf6 [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 Veillard3bff2b02000-10-01 20:33:47 +0000118NAME="AEN10469"
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 Veillard3bff2b02000-10-01 20:33:47 +0000126NAME="AEN10472"
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 Veillard3bff2b02000-10-01 20:33:47 +0000165enum <A
166HREF="gnome-xml-xpath.html#XMLXPATHOBJECTTYPE"
167>xmlXPathObjectType</A
168>;
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000169struct <A
170HREF="gnome-xml-xpath.html#XMLXPATHOBJECT"
171>xmlXPathObject</A
172>;
173typedef <A
174HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
175>xmlXPathObjectPtr</A
176>;
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000177int (<A
178HREF="gnome-xml-xpath.html#XMLXPATHCONVERTFUNC"
179>*xmlXPathConvertFunc</A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000180>) (<A
181HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
182>xmlXPathObjectPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000183> obj,
184 int type);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000185struct <A
186HREF="gnome-xml-xpath.html#XMLXPATHTYPE"
187>xmlXPathType</A
188>;
189typedef <A
190HREF="gnome-xml-xpath.html#XMLXPATHTYPEPTR"
191>xmlXPathTypePtr</A
192>;
193struct <A
194HREF="gnome-xml-xpath.html#XMLXPATHVARIABLE"
195>xmlXPathVariable</A
196>;
197typedef <A
198HREF="gnome-xml-xpath.html#XMLXPATHVARIABLEPTR"
199>xmlXPathVariablePtr</A
200>;
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000201void (<A
202HREF="gnome-xml-xpath.html#XMLXPATHEVALFUNC"
203>*xmlXPathEvalFunc</A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000204>) (<A
205HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
206>xmlXPathParserContextPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000207> ctxt,
208 int nargs);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000209struct <A
210HREF="gnome-xml-xpath.html#XMLXPATHFUNCT"
211>xmlXPathFunct</A
212>;
213typedef <A
214HREF="gnome-xml-xpath.html#XMLXPATHFUNCPTR"
215>xmlXPathFuncPtr</A
216>;
217<A
218HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
219>xmlXPathObjectPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000220> (<A
221HREF="gnome-xml-xpath.html#XMLXPATHAXISFUNC"
222>*xmlXPathAxisFunc</A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000223>) (<A
224HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
225>xmlXPathParserContextPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000226> ctxt,
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000227 <A
228HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
229>xmlXPathObjectPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000230> cur);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000231struct <A
232HREF="gnome-xml-xpath.html#XMLXPATHAXIS"
233>xmlXPathAxis</A
234>;
235typedef <A
236HREF="gnome-xml-xpath.html#XMLXPATHAXISPTR"
237>xmlXPathAxisPtr</A
238>;
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000239void (<A
240HREF="gnome-xml-xpath.html#XMLXPATHFUNCTION"
241>*xmlXPathFunction</A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000242>) (<A
243HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
244>xmlXPathParserContextPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000245> ctxt,
246 int nargs);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000247<A
248HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
249>xmlXPathContextPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000250> <A
251HREF="gnome-xml-xpath.html#XMLXPATHNEWCONTEXT"
252>xmlXPathNewContext</A
253> (<A
254HREF="gnome-xml-tree.html#XMLDOCPTR"
255>xmlDocPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000256> doc);
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000257void <A
258HREF="gnome-xml-xpath.html#XMLXPATHFREECONTEXT"
259>xmlXPathFreeContext</A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000260> (<A
261HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
262>xmlXPathContextPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000263> ctxt);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000264<A
265HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
266>xmlXPathObjectPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000267> <A
268HREF="gnome-xml-xpath.html#XMLXPATHEVAL"
269>xmlXPathEval</A
270> (const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000271HREF="gnome-xml-tree.html#XMLCHAR"
272>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000273> *str,
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000274 <A
275HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
276>xmlXPathContextPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000277> ctxt);
278void <A
279HREF="gnome-xml-xpath.html#XMLXPATHFREEOBJECT"
280>xmlXPathFreeObject</A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000281> (<A
282HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
283>xmlXPathObjectPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000284> obj);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000285<A
286HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
287>xmlXPathObjectPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000288> <A
289HREF="gnome-xml-xpath.html#XMLXPATHEVALEXPRESSION"
290>xmlXPathEvalExpression</A
291> (const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000292HREF="gnome-xml-tree.html#XMLCHAR"
293>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000294> *str,
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000295 <A
296HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
297>xmlXPathContextPtr</A
298> ctxt);
299<A
300HREF="gnome-xml-xpath.html#XMLNODESETPTR"
301>xmlNodeSetPtr</A
302> <A
303HREF="gnome-xml-xpath.html#XMLXPATHNODESETCREATE"
304>xmlXPathNodeSetCreate</A
305> (<A
306HREF="gnome-xml-tree.html#XMLNODEPTR"
307>xmlNodePtr</A
308> val);
309void <A
310HREF="gnome-xml-xpath.html#XMLXPATHFREENODESETLIST"
311>xmlXPathFreeNodeSetList</A
312> (<A
313HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
314>xmlXPathObjectPtr</A
315> obj);
316void <A
317HREF="gnome-xml-xpath.html#XMLXPATHFREENODESET"
318>xmlXPathFreeNodeSet</A
319> (<A
320HREF="gnome-xml-xpath.html#XMLNODESETPTR"
321>xmlNodeSetPtr</A
322> obj);</PRE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000323></TD
324></TR
325></TABLE
326></DIV
327><DIV
328CLASS="REFSECT1"
329><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000330NAME="AEN10524"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000331></A
332><H2
333>Description</H2
334><P
335></P
336></DIV
337><DIV
338CLASS="REFSECT1"
339><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000340NAME="AEN10527"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000341></A
342><H2
343>Details</H2
344><DIV
345CLASS="REFSECT2"
346><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000347NAME="AEN10529"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000348></A
349><H3
350><A
351NAME="XMLXPATHCONTEXT"
352></A
353>struct xmlXPathContext</H3
354><TABLE
355BORDER="0"
356BGCOLOR="#D6E8FF"
357WIDTH="100%"
358CELLPADDING="6"
359><TR
360><TD
361><PRE
362CLASS="PROGRAMLISTING"
363>struct xmlXPathContext {
364 xmlDocPtr doc; /* The current document */
365 xmlNodePtr node; /* The current node */
366 xmlNodeSetPtr nodelist; /* The current node list */
367
368 int nb_variables; /* number of defined variables */
369 int max_variables; /* max number of variables */
370 xmlXPathVariablePtr *variables; /* Array of defined variables */
371
372 int nb_types; /* number of defined types */
373 int max_types; /* max number of types */
374 xmlXPathTypePtr *types; /* Array of defined types */
375
376 int nb_funcs; /* number of defined funcs */
377 int max_funcs; /* max number of funcs */
378 xmlXPathFuncPtr *funcs; /* Array of defined funcs */
379
380 int nb_axis; /* number of defined axis */
381 int max_axis; /* max number of axis */
382 xmlXPathAxisPtr *axis; /* Array of defined axis */
383
384 /* Namespace traversal should be implemented with user */
385 xmlNsPtr *namespaces; /* The namespaces lookup */
386 int nsNr; /* the current Namespace index */
387 void *user; /* user defined extra info */
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000388
389 /* extra variables */
390 int contextSize; /* the context size */
391 int proximityPosition; /* the proximity position */
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000392};</PRE
393></TD
394></TR
395></TABLE
396><P
397></P
398></DIV
399><HR><DIV
400CLASS="REFSECT2"
401><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000402NAME="AEN10534"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000403></A
404><H3
405><A
406NAME="XMLXPATHCONTEXTPTR"
407></A
408>xmlXPathContextPtr</H3
409><TABLE
410BORDER="0"
411BGCOLOR="#D6E8FF"
412WIDTH="100%"
413CELLPADDING="6"
414><TR
415><TD
416><PRE
417CLASS="PROGRAMLISTING"
418>typedef xmlXPathContext *xmlXPathContextPtr;</PRE
419></TD
420></TR
421></TABLE
422><P
423></P
424></DIV
425><HR><DIV
426CLASS="REFSECT2"
427><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000428NAME="AEN10539"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000429></A
430><H3
431><A
432NAME="XMLXPATHPARSERCONTEXT"
433></A
434>struct xmlXPathParserContext</H3
435><TABLE
436BORDER="0"
437BGCOLOR="#D6E8FF"
438WIDTH="100%"
439CELLPADDING="6"
440><TR
441><TD
442><PRE
443CLASS="PROGRAMLISTING"
444>struct xmlXPathParserContext {
445 const xmlChar *cur; /* the current char being parsed */
446 const xmlChar *base; /* the full expression */
447
448 int error; /* error code */
449
450 xmlXPathContextPtr context; /* the evaluation context */
451 xmlXPathObjectPtr value; /* the current value */
452 int valueNr; /* number of values stacked */
453 int valueMax; /* max number of values stacked */
454 xmlXPathObjectPtr *valueTab; /* stack of values */
455};</PRE
456></TD
457></TR
458></TABLE
459><P
460></P
461></DIV
462><HR><DIV
463CLASS="REFSECT2"
464><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000465NAME="AEN10544"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000466></A
467><H3
468><A
469NAME="XMLXPATHPARSERCONTEXTPTR"
470></A
471>xmlXPathParserContextPtr</H3
472><TABLE
473BORDER="0"
474BGCOLOR="#D6E8FF"
475WIDTH="100%"
476CELLPADDING="6"
477><TR
478><TD
479><PRE
480CLASS="PROGRAMLISTING"
481>typedef xmlXPathParserContext *xmlXPathParserContextPtr;</PRE
482></TD
483></TR
484></TABLE
485><P
486></P
487></DIV
488><HR><DIV
489CLASS="REFSECT2"
490><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000491NAME="AEN10549"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000492></A
493><H3
494><A
495NAME="XMLNODESET"
496></A
497>struct xmlNodeSet</H3
498><TABLE
499BORDER="0"
500BGCOLOR="#D6E8FF"
501WIDTH="100%"
502CELLPADDING="6"
503><TR
504><TD
505><PRE
506CLASS="PROGRAMLISTING"
507>struct xmlNodeSet {
508 int nodeNr; /* number of nodes in the set */
509 int nodeMax; /* size of the array as allocated */
510 xmlNodePtr *nodeTab; /* array of nodes in no particular order */
511};</PRE
512></TD
513></TR
514></TABLE
515><P
516></P
517></DIV
518><HR><DIV
519CLASS="REFSECT2"
520><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000521NAME="AEN10554"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000522></A
523><H3
524><A
525NAME="XMLNODESETPTR"
526></A
527>xmlNodeSetPtr</H3
528><TABLE
529BORDER="0"
530BGCOLOR="#D6E8FF"
531WIDTH="100%"
532CELLPADDING="6"
533><TR
534><TD
535><PRE
536CLASS="PROGRAMLISTING"
537>typedef xmlNodeSet *xmlNodeSetPtr;</PRE
538></TD
539></TR
540></TABLE
541><P
542></P
543></DIV
544><HR><DIV
545CLASS="REFSECT2"
546><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000547NAME="AEN10559"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000548></A
549><H3
550><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000551NAME="XMLXPATHOBJECTTYPE"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000552></A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000553>enum xmlXPathObjectType</H3
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000554><TABLE
555BORDER="0"
556BGCOLOR="#D6E8FF"
557WIDTH="100%"
558CELLPADDING="6"
559><TR
560><TD
561><PRE
562CLASS="PROGRAMLISTING"
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000563>typedef enum {
564 XPATH_UNDEFINED = 0,
565 XPATH_NODESET = 1,
566 XPATH_BOOLEAN = 2,
567 XPATH_NUMBER = 3,
568 XPATH_STRING = 4,
569 XPATH_USERS = 5
570} xmlXPathObjectType;</PRE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000571></TD
572></TR
573></TABLE
574><P
575></P
576></DIV
577><HR><DIV
578CLASS="REFSECT2"
579><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000580NAME="AEN10564"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000581></A
582><H3
583><A
584NAME="XMLXPATHOBJECT"
585></A
586>struct xmlXPathObject</H3
587><TABLE
588BORDER="0"
589BGCOLOR="#D6E8FF"
590WIDTH="100%"
591CELLPADDING="6"
592><TR
593><TD
594><PRE
595CLASS="PROGRAMLISTING"
596>struct xmlXPathObject {
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000597 xmlXPathObjectType type;
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000598 xmlNodeSetPtr nodesetval;
599 int boolval;
600 double floatval;
601 xmlChar *stringval;
602 void *user;
603};</PRE
604></TD
605></TR
606></TABLE
607><P
608></P
609></DIV
610><HR><DIV
611CLASS="REFSECT2"
612><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000613NAME="AEN10569"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000614></A
615><H3
616><A
617NAME="XMLXPATHOBJECTPTR"
618></A
619>xmlXPathObjectPtr</H3
620><TABLE
621BORDER="0"
622BGCOLOR="#D6E8FF"
623WIDTH="100%"
624CELLPADDING="6"
625><TR
626><TD
627><PRE
628CLASS="PROGRAMLISTING"
629>typedef xmlXPathObject *xmlXPathObjectPtr;</PRE
630></TD
631></TR
632></TABLE
633><P
634></P
635></DIV
636><HR><DIV
637CLASS="REFSECT2"
638><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000639NAME="AEN10574"
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000640></A
641><H3
642><A
643NAME="XMLXPATHCONVERTFUNC"
644></A
645>xmlXPathConvertFunc ()</H3
646><TABLE
647BORDER="0"
648BGCOLOR="#D6E8FF"
649WIDTH="100%"
650CELLPADDING="6"
651><TR
652><TD
653><PRE
654CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000655>int (*xmlXPathConvertFunc) (<A
656HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
657>xmlXPathObjectPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000658> obj,
659 int type);</PRE
660></TD
661></TR
662></TABLE
663><P
664></P
665><DIV
666CLASS="INFORMALTABLE"
667><P
668></P
669><TABLE
670BORDER="0"
671WIDTH="100%"
672BGCOLOR="#FFD0D0"
673CELLSPACING="0"
674CELLPADDING="4"
675CLASS="CALSTABLE"
676><TR
677><TD
678WIDTH="20%"
679ALIGN="RIGHT"
680VALIGN="TOP"
681><TT
682CLASS="PARAMETER"
683><I
684>obj</I
685></TT
686>&nbsp;:</TD
687><TD
688WIDTH="80%"
689ALIGN="LEFT"
690VALIGN="TOP"
691>&nbsp;</TD
692></TR
693><TR
694><TD
695WIDTH="20%"
696ALIGN="RIGHT"
697VALIGN="TOP"
698><TT
699CLASS="PARAMETER"
700><I
701>type</I
702></TT
703>&nbsp;:</TD
704><TD
705WIDTH="80%"
706ALIGN="LEFT"
707VALIGN="TOP"
708>&nbsp;</TD
709></TR
710><TR
711><TD
712WIDTH="20%"
713ALIGN="RIGHT"
714VALIGN="TOP"
715><I
716CLASS="EMPHASIS"
717>Returns</I
718> :</TD
719><TD
720WIDTH="80%"
721ALIGN="LEFT"
722VALIGN="TOP"
723>&nbsp;</TD
724></TR
725></TABLE
726><P
727></P
728></DIV
729></DIV
730><HR><DIV
731CLASS="REFSECT2"
732><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000733NAME="AEN10597"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000734></A
735><H3
736><A
737NAME="XMLXPATHTYPE"
738></A
739>struct xmlXPathType</H3
740><TABLE
741BORDER="0"
742BGCOLOR="#D6E8FF"
743WIDTH="100%"
744CELLPADDING="6"
745><TR
746><TD
747><PRE
748CLASS="PROGRAMLISTING"
749>struct xmlXPathType {
750 const xmlChar *name; /* the type name */
751 xmlXPathConvertFunc func; /* the conversion function */
752};</PRE
753></TD
754></TR
755></TABLE
756><P
757></P
758></DIV
759><HR><DIV
760CLASS="REFSECT2"
761><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000762NAME="AEN10602"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000763></A
764><H3
765><A
766NAME="XMLXPATHTYPEPTR"
767></A
768>xmlXPathTypePtr</H3
769><TABLE
770BORDER="0"
771BGCOLOR="#D6E8FF"
772WIDTH="100%"
773CELLPADDING="6"
774><TR
775><TD
776><PRE
777CLASS="PROGRAMLISTING"
778>typedef xmlXPathType *xmlXPathTypePtr;</PRE
779></TD
780></TR
781></TABLE
782><P
783></P
784></DIV
785><HR><DIV
786CLASS="REFSECT2"
787><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000788NAME="AEN10607"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000789></A
790><H3
791><A
792NAME="XMLXPATHVARIABLE"
793></A
794>struct xmlXPathVariable</H3
795><TABLE
796BORDER="0"
797BGCOLOR="#D6E8FF"
798WIDTH="100%"
799CELLPADDING="6"
800><TR
801><TD
802><PRE
803CLASS="PROGRAMLISTING"
804>struct xmlXPathVariable {
805 const xmlChar *name; /* the variable name */
806 xmlXPathObjectPtr value; /* the value */
807};</PRE
808></TD
809></TR
810></TABLE
811><P
812></P
813></DIV
814><HR><DIV
815CLASS="REFSECT2"
816><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000817NAME="AEN10612"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000818></A
819><H3
820><A
821NAME="XMLXPATHVARIABLEPTR"
822></A
823>xmlXPathVariablePtr</H3
824><TABLE
825BORDER="0"
826BGCOLOR="#D6E8FF"
827WIDTH="100%"
828CELLPADDING="6"
829><TR
830><TD
831><PRE
832CLASS="PROGRAMLISTING"
833>typedef xmlXPathVariable *xmlXPathVariablePtr;</PRE
834></TD
835></TR
836></TABLE
837><P
838></P
839></DIV
840><HR><DIV
841CLASS="REFSECT2"
842><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000843NAME="AEN10617"
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000844></A
845><H3
846><A
847NAME="XMLXPATHEVALFUNC"
848></A
849>xmlXPathEvalFunc ()</H3
850><TABLE
851BORDER="0"
852BGCOLOR="#D6E8FF"
853WIDTH="100%"
854CELLPADDING="6"
855><TR
856><TD
857><PRE
858CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000859>void (*xmlXPathEvalFunc) (<A
860HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
861>xmlXPathParserContextPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000862> ctxt,
863 int nargs);</PRE
864></TD
865></TR
866></TABLE
867><P
868></P
869><DIV
870CLASS="INFORMALTABLE"
871><P
872></P
873><TABLE
874BORDER="0"
875WIDTH="100%"
876BGCOLOR="#FFD0D0"
877CELLSPACING="0"
878CELLPADDING="4"
879CLASS="CALSTABLE"
880><TR
881><TD
882WIDTH="20%"
883ALIGN="RIGHT"
884VALIGN="TOP"
885><TT
886CLASS="PARAMETER"
887><I
888>ctxt</I
889></TT
890>&nbsp;:</TD
891><TD
892WIDTH="80%"
893ALIGN="LEFT"
894VALIGN="TOP"
895>&nbsp;</TD
896></TR
897><TR
898><TD
899WIDTH="20%"
900ALIGN="RIGHT"
901VALIGN="TOP"
902><TT
903CLASS="PARAMETER"
904><I
905>nargs</I
906></TT
907>&nbsp;:</TD
908><TD
909WIDTH="80%"
910ALIGN="LEFT"
911VALIGN="TOP"
912>&nbsp;</TD
913></TR
914></TABLE
915><P
916></P
917></DIV
918></DIV
919><HR><DIV
920CLASS="REFSECT2"
921><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000922NAME="AEN10636"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000923></A
924><H3
925><A
926NAME="XMLXPATHFUNCT"
927></A
928>struct xmlXPathFunct</H3
929><TABLE
930BORDER="0"
931BGCOLOR="#D6E8FF"
932WIDTH="100%"
933CELLPADDING="6"
934><TR
935><TD
936><PRE
937CLASS="PROGRAMLISTING"
938>struct xmlXPathFunct {
939 const xmlChar *name; /* the function name */
940 xmlXPathEvalFunc func; /* the evaluation function */
941};</PRE
942></TD
943></TR
944></TABLE
945><P
946></P
947></DIV
948><HR><DIV
949CLASS="REFSECT2"
950><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000951NAME="AEN10641"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000952></A
953><H3
954><A
955NAME="XMLXPATHFUNCPTR"
956></A
957>xmlXPathFuncPtr</H3
958><TABLE
959BORDER="0"
960BGCOLOR="#D6E8FF"
961WIDTH="100%"
962CELLPADDING="6"
963><TR
964><TD
965><PRE
966CLASS="PROGRAMLISTING"
967>typedef xmlXPathFunct *xmlXPathFuncPtr;</PRE
968></TD
969></TR
970></TABLE
971><P
972></P
973></DIV
974><HR><DIV
975CLASS="REFSECT2"
976><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000977NAME="AEN10646"
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000978></A
979><H3
980><A
981NAME="XMLXPATHAXISFUNC"
982></A
983>xmlXPathAxisFunc ()</H3
984><TABLE
985BORDER="0"
986BGCOLOR="#D6E8FF"
987WIDTH="100%"
988CELLPADDING="6"
989><TR
990><TD
991><PRE
992CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000993><A
994HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
995>xmlXPathObjectPtr</A
996> (*xmlXPathAxisFunc) (<A
997HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
998>xmlXPathParserContextPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000999> ctxt,
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001000 <A
1001HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
1002>xmlXPathObjectPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001003> cur);</PRE
1004></TD
1005></TR
1006></TABLE
1007><P
1008></P
1009><DIV
1010CLASS="INFORMALTABLE"
1011><P
1012></P
1013><TABLE
1014BORDER="0"
1015WIDTH="100%"
1016BGCOLOR="#FFD0D0"
1017CELLSPACING="0"
1018CELLPADDING="4"
1019CLASS="CALSTABLE"
1020><TR
1021><TD
1022WIDTH="20%"
1023ALIGN="RIGHT"
1024VALIGN="TOP"
1025><TT
1026CLASS="PARAMETER"
1027><I
1028>ctxt</I
1029></TT
1030>&nbsp;:</TD
1031><TD
1032WIDTH="80%"
1033ALIGN="LEFT"
1034VALIGN="TOP"
1035>&nbsp;</TD
1036></TR
1037><TR
1038><TD
1039WIDTH="20%"
1040ALIGN="RIGHT"
1041VALIGN="TOP"
1042><TT
1043CLASS="PARAMETER"
1044><I
1045>cur</I
1046></TT
1047>&nbsp;:</TD
1048><TD
1049WIDTH="80%"
1050ALIGN="LEFT"
1051VALIGN="TOP"
1052>&nbsp;</TD
1053></TR
1054><TR
1055><TD
1056WIDTH="20%"
1057ALIGN="RIGHT"
1058VALIGN="TOP"
1059><I
1060CLASS="EMPHASIS"
1061>Returns</I
1062> :</TD
1063><TD
1064WIDTH="80%"
1065ALIGN="LEFT"
1066VALIGN="TOP"
1067>&nbsp;</TD
1068></TR
1069></TABLE
1070><P
1071></P
1072></DIV
1073></DIV
1074><HR><DIV
1075CLASS="REFSECT2"
1076><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +00001077NAME="AEN10671"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001078></A
1079><H3
1080><A
1081NAME="XMLXPATHAXIS"
1082></A
1083>struct xmlXPathAxis</H3
1084><TABLE
1085BORDER="0"
1086BGCOLOR="#D6E8FF"
1087WIDTH="100%"
1088CELLPADDING="6"
1089><TR
1090><TD
1091><PRE
1092CLASS="PROGRAMLISTING"
1093>struct xmlXPathAxis {
1094 const xmlChar *name; /* the axis name */
1095 xmlXPathAxisFunc func; /* the search function */
1096};</PRE
1097></TD
1098></TR
1099></TABLE
1100><P
1101></P
1102></DIV
1103><HR><DIV
1104CLASS="REFSECT2"
1105><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +00001106NAME="AEN10676"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001107></A
1108><H3
1109><A
1110NAME="XMLXPATHAXISPTR"
1111></A
1112>xmlXPathAxisPtr</H3
1113><TABLE
1114BORDER="0"
1115BGCOLOR="#D6E8FF"
1116WIDTH="100%"
1117CELLPADDING="6"
1118><TR
1119><TD
1120><PRE
1121CLASS="PROGRAMLISTING"
1122>typedef xmlXPathAxis *xmlXPathAxisPtr;</PRE
1123></TD
1124></TR
1125></TABLE
1126><P
1127></P
1128></DIV
1129><HR><DIV
1130CLASS="REFSECT2"
1131><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +00001132NAME="AEN10681"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001133></A
1134><H3
1135><A
1136NAME="XMLXPATHFUNCTION"
1137></A
1138>xmlXPathFunction ()</H3
1139><TABLE
1140BORDER="0"
1141BGCOLOR="#D6E8FF"
1142WIDTH="100%"
1143CELLPADDING="6"
1144><TR
1145><TD
1146><PRE
1147CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001148>void (*xmlXPathFunction) (<A
1149HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
1150>xmlXPathParserContextPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001151> ctxt,
1152 int nargs);</PRE
1153></TD
1154></TR
1155></TABLE
1156><P
1157></P
1158><DIV
1159CLASS="INFORMALTABLE"
1160><P
1161></P
1162><TABLE
1163BORDER="0"
1164WIDTH="100%"
1165BGCOLOR="#FFD0D0"
1166CELLSPACING="0"
1167CELLPADDING="4"
1168CLASS="CALSTABLE"
1169><TR
1170><TD
1171WIDTH="20%"
1172ALIGN="RIGHT"
1173VALIGN="TOP"
1174><TT
1175CLASS="PARAMETER"
1176><I
1177>ctxt</I
1178></TT
1179>&nbsp;:</TD
1180><TD
1181WIDTH="80%"
1182ALIGN="LEFT"
1183VALIGN="TOP"
1184>&nbsp;</TD
1185></TR
1186><TR
1187><TD
1188WIDTH="20%"
1189ALIGN="RIGHT"
1190VALIGN="TOP"
1191><TT
1192CLASS="PARAMETER"
1193><I
1194>nargs</I
1195></TT
1196>&nbsp;:</TD
1197><TD
1198WIDTH="80%"
1199ALIGN="LEFT"
1200VALIGN="TOP"
1201>&nbsp;</TD
1202></TR
1203></TABLE
1204><P
1205></P
1206></DIV
1207></DIV
1208><HR><DIV
1209CLASS="REFSECT2"
1210><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +00001211NAME="AEN10700"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001212></A
1213><H3
1214><A
1215NAME="XMLXPATHNEWCONTEXT"
1216></A
1217>xmlXPathNewContext ()</H3
1218><TABLE
1219BORDER="0"
1220BGCOLOR="#D6E8FF"
1221WIDTH="100%"
1222CELLPADDING="6"
1223><TR
1224><TD
1225><PRE
1226CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001227><A
1228HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
1229>xmlXPathContextPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001230> xmlXPathNewContext (<A
1231HREF="gnome-xml-tree.html#XMLDOCPTR"
1232>xmlDocPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001233> doc);</PRE
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001234></TD
1235></TR
1236></TABLE
1237><P
1238>Create a new xmlXPathContext</P
1239><P
1240></P
1241><DIV
1242CLASS="INFORMALTABLE"
1243><P
1244></P
1245><TABLE
1246BORDER="0"
1247WIDTH="100%"
1248BGCOLOR="#FFD0D0"
1249CELLSPACING="0"
1250CELLPADDING="4"
1251CLASS="CALSTABLE"
1252><TR
1253><TD
1254WIDTH="20%"
1255ALIGN="RIGHT"
1256VALIGN="TOP"
1257><TT
1258CLASS="PARAMETER"
1259><I
1260>doc</I
1261></TT
1262>&nbsp;:</TD
1263><TD
1264WIDTH="80%"
1265ALIGN="LEFT"
1266VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001267> the XML document</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001268></TR
1269><TR
1270><TD
1271WIDTH="20%"
1272ALIGN="RIGHT"
1273VALIGN="TOP"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001274><I
1275CLASS="EMPHASIS"
1276>Returns</I
1277> :</TD
1278><TD
1279WIDTH="80%"
1280ALIGN="LEFT"
1281VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001282>the xmlXPathContext just allocated.</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001283></TR
1284></TABLE
1285><P
1286></P
1287></DIV
1288></DIV
1289><HR><DIV
1290CLASS="REFSECT2"
1291><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +00001292NAME="AEN10721"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001293></A
1294><H3
1295><A
1296NAME="XMLXPATHFREECONTEXT"
1297></A
1298>xmlXPathFreeContext ()</H3
1299><TABLE
1300BORDER="0"
1301BGCOLOR="#D6E8FF"
1302WIDTH="100%"
1303CELLPADDING="6"
1304><TR
1305><TD
1306><PRE
1307CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001308>void xmlXPathFreeContext (<A
1309HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
1310>xmlXPathContextPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001311> ctxt);</PRE
1312></TD
1313></TR
1314></TABLE
1315><P
1316>Free up an xmlXPathContext</P
1317><P
1318></P
1319><DIV
1320CLASS="INFORMALTABLE"
1321><P
1322></P
1323><TABLE
1324BORDER="0"
1325WIDTH="100%"
1326BGCOLOR="#FFD0D0"
1327CELLSPACING="0"
1328CELLPADDING="4"
1329CLASS="CALSTABLE"
1330><TR
1331><TD
1332WIDTH="20%"
1333ALIGN="RIGHT"
1334VALIGN="TOP"
1335><TT
1336CLASS="PARAMETER"
1337><I
1338>ctxt</I
1339></TT
1340>&nbsp;:</TD
1341><TD
1342WIDTH="80%"
1343ALIGN="LEFT"
1344VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001345> the context to free</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001346></TR
1347></TABLE
1348><P
1349></P
1350></DIV
1351></DIV
1352><HR><DIV
1353CLASS="REFSECT2"
1354><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +00001355NAME="AEN10737"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001356></A
1357><H3
1358><A
1359NAME="XMLXPATHEVAL"
1360></A
1361>xmlXPathEval ()</H3
1362><TABLE
1363BORDER="0"
1364BGCOLOR="#D6E8FF"
1365WIDTH="100%"
1366CELLPADDING="6"
1367><TR
1368><TD
1369><PRE
1370CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001371><A
1372HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
1373>xmlXPathObjectPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001374> xmlXPathEval (const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001375HREF="gnome-xml-tree.html#XMLCHAR"
1376>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001377> *str,
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001378 <A
1379HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
1380>xmlXPathContextPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001381> ctxt);</PRE
1382></TD
1383></TR
1384></TABLE
1385><P
1386>Evaluate the XPath Location Path in the given context.</P
1387><P
1388></P
1389><DIV
1390CLASS="INFORMALTABLE"
1391><P
1392></P
1393><TABLE
1394BORDER="0"
1395WIDTH="100%"
1396BGCOLOR="#FFD0D0"
1397CELLSPACING="0"
1398CELLPADDING="4"
1399CLASS="CALSTABLE"
1400><TR
1401><TD
1402WIDTH="20%"
1403ALIGN="RIGHT"
1404VALIGN="TOP"
1405><TT
1406CLASS="PARAMETER"
1407><I
1408>str</I
1409></TT
1410>&nbsp;:</TD
1411><TD
1412WIDTH="80%"
1413ALIGN="LEFT"
1414VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001415> the XPath expression</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001416></TR
1417><TR
1418><TD
1419WIDTH="20%"
1420ALIGN="RIGHT"
1421VALIGN="TOP"
1422><TT
1423CLASS="PARAMETER"
1424><I
1425>ctxt</I
1426></TT
1427>&nbsp;:</TD
1428><TD
1429WIDTH="80%"
1430ALIGN="LEFT"
1431VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001432> the XPath context</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001433></TR
1434><TR
1435><TD
1436WIDTH="20%"
1437ALIGN="RIGHT"
1438VALIGN="TOP"
1439><I
1440CLASS="EMPHASIS"
1441>Returns</I
1442> :</TD
1443><TD
1444WIDTH="80%"
1445ALIGN="LEFT"
1446VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001447>the xmlXPathObjectPtr resulting from the eveluation or NULL.
1448the caller has to free the object.</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001449></TR
1450></TABLE
1451><P
1452></P
1453></DIV
1454></DIV
1455><HR><DIV
1456CLASS="REFSECT2"
1457><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +00001458NAME="AEN10763"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001459></A
1460><H3
1461><A
1462NAME="XMLXPATHFREEOBJECT"
1463></A
1464>xmlXPathFreeObject ()</H3
1465><TABLE
1466BORDER="0"
1467BGCOLOR="#D6E8FF"
1468WIDTH="100%"
1469CELLPADDING="6"
1470><TR
1471><TD
1472><PRE
1473CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001474>void xmlXPathFreeObject (<A
1475HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
1476>xmlXPathObjectPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001477> obj);</PRE
1478></TD
1479></TR
1480></TABLE
1481><P
1482>Free up an xmlXPathObjectPtr object.</P
1483><P
1484></P
1485><DIV
1486CLASS="INFORMALTABLE"
1487><P
1488></P
1489><TABLE
1490BORDER="0"
1491WIDTH="100%"
1492BGCOLOR="#FFD0D0"
1493CELLSPACING="0"
1494CELLPADDING="4"
1495CLASS="CALSTABLE"
1496><TR
1497><TD
1498WIDTH="20%"
1499ALIGN="RIGHT"
1500VALIGN="TOP"
1501><TT
1502CLASS="PARAMETER"
1503><I
1504>obj</I
1505></TT
1506>&nbsp;:</TD
1507><TD
1508WIDTH="80%"
1509ALIGN="LEFT"
1510VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001511> the object to free</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001512></TR
1513></TABLE
1514><P
1515></P
1516></DIV
1517></DIV
1518><HR><DIV
1519CLASS="REFSECT2"
1520><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +00001521NAME="AEN10779"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001522></A
1523><H3
1524><A
1525NAME="XMLXPATHEVALEXPRESSION"
1526></A
1527>xmlXPathEvalExpression ()</H3
1528><TABLE
1529BORDER="0"
1530BGCOLOR="#D6E8FF"
1531WIDTH="100%"
1532CELLPADDING="6"
1533><TR
1534><TD
1535><PRE
1536CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001537><A
1538HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
1539>xmlXPathObjectPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001540> xmlXPathEvalExpression (const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001541HREF="gnome-xml-tree.html#XMLCHAR"
1542>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001543> *str,
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001544 <A
1545HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
1546>xmlXPathContextPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001547> ctxt);</PRE
1548></TD
1549></TR
1550></TABLE
1551><P
1552>Evaluate the XPath expression in the given context.</P
1553><P
1554></P
1555><DIV
1556CLASS="INFORMALTABLE"
1557><P
1558></P
1559><TABLE
1560BORDER="0"
1561WIDTH="100%"
1562BGCOLOR="#FFD0D0"
1563CELLSPACING="0"
1564CELLPADDING="4"
1565CLASS="CALSTABLE"
1566><TR
1567><TD
1568WIDTH="20%"
1569ALIGN="RIGHT"
1570VALIGN="TOP"
1571><TT
1572CLASS="PARAMETER"
1573><I
1574>str</I
1575></TT
1576>&nbsp;:</TD
1577><TD
1578WIDTH="80%"
1579ALIGN="LEFT"
1580VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001581> the XPath expression</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001582></TR
1583><TR
1584><TD
1585WIDTH="20%"
1586ALIGN="RIGHT"
1587VALIGN="TOP"
1588><TT
1589CLASS="PARAMETER"
1590><I
1591>ctxt</I
1592></TT
1593>&nbsp;:</TD
1594><TD
1595WIDTH="80%"
1596ALIGN="LEFT"
1597VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001598> the XPath context</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001599></TR
1600><TR
1601><TD
1602WIDTH="20%"
1603ALIGN="RIGHT"
1604VALIGN="TOP"
1605><I
1606CLASS="EMPHASIS"
1607>Returns</I
1608> :</TD
1609><TD
1610WIDTH="80%"
1611ALIGN="LEFT"
1612VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001613>the xmlXPathObjectPtr resulting from the evaluation or NULL.
1614the caller has to free the object.</TD
1615></TR
1616></TABLE
1617><P
1618></P
1619></DIV
1620></DIV
1621><HR><DIV
1622CLASS="REFSECT2"
1623><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +00001624NAME="AEN10805"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001625></A
1626><H3
1627><A
1628NAME="XMLXPATHNODESETCREATE"
1629></A
1630>xmlXPathNodeSetCreate ()</H3
1631><TABLE
1632BORDER="0"
1633BGCOLOR="#D6E8FF"
1634WIDTH="100%"
1635CELLPADDING="6"
1636><TR
1637><TD
1638><PRE
1639CLASS="PROGRAMLISTING"
1640><A
1641HREF="gnome-xml-xpath.html#XMLNODESETPTR"
1642>xmlNodeSetPtr</A
1643> xmlXPathNodeSetCreate (<A
1644HREF="gnome-xml-tree.html#XMLNODEPTR"
1645>xmlNodePtr</A
1646> val);</PRE
1647></TD
1648></TR
1649></TABLE
1650><P
1651>Create a new xmlNodeSetPtr of type double and of value <TT
1652CLASS="PARAMETER"
1653><I
1654>val</I
1655></TT
1656></P
1657><P
1658></P
1659><DIV
1660CLASS="INFORMALTABLE"
1661><P
1662></P
1663><TABLE
1664BORDER="0"
1665WIDTH="100%"
1666BGCOLOR="#FFD0D0"
1667CELLSPACING="0"
1668CELLPADDING="4"
1669CLASS="CALSTABLE"
1670><TR
1671><TD
1672WIDTH="20%"
1673ALIGN="RIGHT"
1674VALIGN="TOP"
1675><TT
1676CLASS="PARAMETER"
1677><I
1678>val</I
1679></TT
1680>&nbsp;:</TD
1681><TD
1682WIDTH="80%"
1683ALIGN="LEFT"
1684VALIGN="TOP"
1685> an initial xmlNodePtr, or NULL</TD
1686></TR
1687><TR
1688><TD
1689WIDTH="20%"
1690ALIGN="RIGHT"
1691VALIGN="TOP"
1692><I
1693CLASS="EMPHASIS"
1694>Returns</I
1695> :</TD
1696><TD
1697WIDTH="80%"
1698ALIGN="LEFT"
1699VALIGN="TOP"
1700>the newly created object.</TD
1701></TR
1702></TABLE
1703><P
1704></P
1705></DIV
1706></DIV
1707><HR><DIV
1708CLASS="REFSECT2"
1709><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +00001710NAME="AEN10827"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001711></A
1712><H3
1713><A
1714NAME="XMLXPATHFREENODESETLIST"
1715></A
1716>xmlXPathFreeNodeSetList ()</H3
1717><TABLE
1718BORDER="0"
1719BGCOLOR="#D6E8FF"
1720WIDTH="100%"
1721CELLPADDING="6"
1722><TR
1723><TD
1724><PRE
1725CLASS="PROGRAMLISTING"
1726>void xmlXPathFreeNodeSetList (<A
1727HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
1728>xmlXPathObjectPtr</A
1729> obj);</PRE
1730></TD
1731></TR
1732></TABLE
1733><P
1734>Free up the xmlXPathObjectPtr <TT
1735CLASS="PARAMETER"
1736><I
1737>obj</I
1738></TT
1739> but don't deallocate the objects in
1740the list contrary to <A
1741HREF="gnome-xml-xpath.html#XMLXPATHFREEOBJECT"
1742>xmlXPathFreeObject</A
1743>().</P
1744><P
1745></P
1746><DIV
1747CLASS="INFORMALTABLE"
1748><P
1749></P
1750><TABLE
1751BORDER="0"
1752WIDTH="100%"
1753BGCOLOR="#FFD0D0"
1754CELLSPACING="0"
1755CELLPADDING="4"
1756CLASS="CALSTABLE"
1757><TR
1758><TD
1759WIDTH="20%"
1760ALIGN="RIGHT"
1761VALIGN="TOP"
1762><TT
1763CLASS="PARAMETER"
1764><I
1765>obj</I
1766></TT
1767>&nbsp;:</TD
1768><TD
1769WIDTH="80%"
1770ALIGN="LEFT"
1771VALIGN="TOP"
1772> an existing NodeSetList object</TD
1773></TR
1774></TABLE
1775><P
1776></P
1777></DIV
1778></DIV
1779><HR><DIV
1780CLASS="REFSECT2"
1781><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +00001782NAME="AEN10845"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001783></A
1784><H3
1785><A
1786NAME="XMLXPATHFREENODESET"
1787></A
1788>xmlXPathFreeNodeSet ()</H3
1789><TABLE
1790BORDER="0"
1791BGCOLOR="#D6E8FF"
1792WIDTH="100%"
1793CELLPADDING="6"
1794><TR
1795><TD
1796><PRE
1797CLASS="PROGRAMLISTING"
1798>void xmlXPathFreeNodeSet (<A
1799HREF="gnome-xml-xpath.html#XMLNODESETPTR"
1800>xmlNodeSetPtr</A
1801> obj);</PRE
1802></TD
1803></TR
1804></TABLE
1805><P
1806>Free the NodeSet compound (not the actual nodes !).</P
1807><P
1808></P
1809><DIV
1810CLASS="INFORMALTABLE"
1811><P
1812></P
1813><TABLE
1814BORDER="0"
1815WIDTH="100%"
1816BGCOLOR="#FFD0D0"
1817CELLSPACING="0"
1818CELLPADDING="4"
1819CLASS="CALSTABLE"
1820><TR
1821><TD
1822WIDTH="20%"
1823ALIGN="RIGHT"
1824VALIGN="TOP"
1825><TT
1826CLASS="PARAMETER"
1827><I
1828>obj</I
1829></TT
1830>&nbsp;:</TD
1831><TD
1832WIDTH="80%"
1833ALIGN="LEFT"
1834VALIGN="TOP"
1835> the xmlNodeSetPtr to free</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001836></TR
1837></TABLE
1838><P
1839></P
1840></DIV
1841></DIV
1842></DIV
1843><DIV
1844CLASS="NAVFOOTER"
Daniel Veillard00fdf371999-10-08 09:40:39 +00001845><BR
1846CLEAR="all"><BR><TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001847WIDTH="100%"
1848BORDER="0"
1849BGCOLOR="#000000"
1850CELLPADDING="1"
1851CELLSPACING="0"
1852><TR
1853><TD
1854WIDTH="25%"
1855BGCOLOR="#C00000"
1856ALIGN="left"
1857><A
1858HREF="gnome-xml-htmltree.html"
1859><FONT
1860COLOR="#FFFFFF"
1861SIZE="3"
1862><B
1863>&#60;&#60;&#60; Previous Page</B
1864></FONT
1865></A
1866></TD
1867><TD
1868WIDTH="25%"
1869BGCOLOR="#0000C0"
1870ALIGN="center"
1871><FONT
1872COLOR="#FFFFFF"
1873SIZE="3"
1874><B
1875><A
1876HREF="book1.html"
1877><FONT
1878COLOR="#FFFFFF"
1879SIZE="3"
1880><B
1881>Home</B
1882></FONT
1883></A
1884></B
1885></FONT
1886></TD
1887><TD
1888WIDTH="25%"
1889BGCOLOR="#00C000"
1890ALIGN="center"
1891><FONT
1892COLOR="#FFFFFF"
1893SIZE="3"
1894><B
1895><A
Daniel Veillard35008381999-10-25 13:15:52 +00001896HREF="libxml-lib.html"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001897><FONT
1898COLOR="#FFFFFF"
1899SIZE="3"
1900><B
1901>Up</B
1902></FONT
1903></A
1904></B
1905></FONT
1906></TD
1907><TD
1908WIDTH="25%"
1909BGCOLOR="#C00000"
1910ALIGN="right"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001911><A
Daniel Veillard35008381999-10-25 13:15:52 +00001912HREF="gnome-xml-nanohttp.html"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001913><FONT
1914COLOR="#FFFFFF"
1915SIZE="3"
1916><B
1917>Next Page &#62;&#62;&#62;</B
1918></FONT
1919></A
1920></TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001921></TR
1922><TR
1923><TD
1924COLSPAN="2"
1925ALIGN="left"
1926><FONT
1927COLOR="#FFFFFF"
1928SIZE="3"
1929><B
1930>HTMLtree</B
1931></FONT
1932></TD
1933><TD
1934COLSPAN="2"
1935ALIGN="right"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001936><FONT
1937COLOR="#FFFFFF"
1938SIZE="3"
1939><B
Daniel Veillard35008381999-10-25 13:15:52 +00001940>nanohttp</B
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001941></FONT
1942></TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001943></TR
1944></TABLE
1945></DIV
1946></BODY
1947></HTML
1948>