blob: 37be1d0c96f5a87ab8fd25059b92bb9cf027a570 [file] [log] [blame]
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001<HTML
2><HEAD
3><TITLE
4>xpath</TITLE
5><META
6NAME="GENERATOR"
Daniel Veillard60087f32001-10-10 09:45:09 +00007CONTENT="Modular DocBook HTML Stylesheet Version 1.64
8"><LINK
Daniel Veillard1566d3a1999-07-15 14:24:29 +00009REL="HOME"
10TITLE="Gnome XML Library Reference Manual"
11HREF="book1.html"><LINK
12REL="UP"
Daniel Veillard35008381999-10-25 13:15:52 +000013TITLE="Libxml Library Reference"
14HREF="libxml-lib.html"><LINK
Daniel Veillard1566d3a1999-07-15 14:24:29 +000015REL="PREVIOUS"
16TITLE="HTMLtree"
Daniel Veillard9cb5ff42001-01-29 08:22:21 +000017HREF="libxml-htmltree.html"><LINK
Daniel Veillard6bd26dc1999-09-03 14:28:40 +000018REL="NEXT"
Daniel Veillard29a11cc2000-10-25 13:32:39 +000019TITLE="xpathInternals"
Daniel Veillard9cb5ff42001-01-29 08:22:21 +000020HREF="libxml-xpathinternals.html"></HEAD
Daniel Veillard1566d3a1999-07-15 14:24:29 +000021><BODY
Daniel Veillardbed7b052001-05-19 14:59:49 +000022CLASS="REFENTRY"
Daniel Veillard1566d3a1999-07-15 14:24:29 +000023BGCOLOR="#FFFFFF"
24TEXT="#000000"
Daniel Veillard503b8932001-01-05 06:36:31 +000025LINK="#0000FF"
26VLINK="#840084"
27ALINK="#0000FF"
Daniel Veillard1566d3a1999-07-15 14:24:29 +000028><DIV
29CLASS="NAVHEADER"
30><TABLE
31WIDTH="100%"
32BORDER="0"
33BGCOLOR="#000000"
34CELLPADDING="1"
35CELLSPACING="0"
36><TR
37><TH
38COLSPAN="4"
39ALIGN="center"
40><FONT
41COLOR="#FFFFFF"
42SIZE="5"
43>Gnome XML Library Reference Manual</FONT
44></TH
45></TR
46><TR
47><TD
48WIDTH="25%"
49BGCOLOR="#C00000"
50ALIGN="left"
51><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +000052HREF="libxml-htmltree.html"
Daniel Veillard1566d3a1999-07-15 14:24:29 +000053><FONT
54COLOR="#FFFFFF"
55SIZE="3"
56><B
57>&#60;&#60;&#60; Previous Page</B
58></FONT
59></A
60></TD
61><TD
62WIDTH="25%"
63BGCOLOR="#0000C0"
64ALIGN="center"
65><FONT
66COLOR="#FFFFFF"
67SIZE="3"
68><B
69><A
70HREF="book1.html"
71><FONT
72COLOR="#FFFFFF"
73SIZE="3"
74><B
75>Home</B
76></FONT
77></A
78></B
79></FONT
80></TD
81><TD
82WIDTH="25%"
83BGCOLOR="#00C000"
84ALIGN="center"
85><FONT
86COLOR="#FFFFFF"
87SIZE="3"
88><B
89><A
Daniel Veillard35008381999-10-25 13:15:52 +000090HREF="libxml-lib.html"
Daniel Veillard1566d3a1999-07-15 14:24:29 +000091><FONT
92COLOR="#FFFFFF"
93SIZE="3"
94><B
95>Up</B
96></FONT
97></A
98></B
99></FONT
100></TD
101><TD
102WIDTH="25%"
103BGCOLOR="#C00000"
104ALIGN="right"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000105><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000106HREF="libxml-xpathinternals.html"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000107><FONT
108COLOR="#FFFFFF"
109SIZE="3"
110><B
111>Next Page &#62;&#62;&#62;</B
112></FONT
113></A
114></TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000115></TR
116></TABLE
117></DIV
118><H1
Daniel Veillard503b8932001-01-05 06:36:31 +0000119><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000120NAME="LIBXML-XPATH"
Daniel Veillard503b8932001-01-05 06:36:31 +0000121>xpath</A
122></H1
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000123><DIV
124CLASS="REFNAMEDIV"
125><A
Daniel Veillard60087f32001-10-10 09:45:09 +0000126NAME="AEN11464"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000127></A
128><H2
129>Name</H2
Daniel Veillard503b8932001-01-05 06:36:31 +0000130>xpath&nbsp;--&nbsp;</DIV
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000131><DIV
132CLASS="REFSYNOPSISDIV"
133><A
Daniel Veillard60087f32001-10-10 09:45:09 +0000134NAME="AEN11467"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000135></A
136><H2
137>Synopsis</H2
138><TABLE
139BORDER="0"
140BGCOLOR="#D6E8FF"
141WIDTH="100%"
142CELLPADDING="6"
143><TR
144><TD
145><PRE
146CLASS="SYNOPSIS"
147>&#13;
148
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000149struct <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000150HREF="libxml-xpath.html#XMLXPATHCONTEXT"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000151>xmlXPathContext</A
152>;
153typedef <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000154HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000155>xmlXPathContextPtr</A
156>;
157struct <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000158HREF="libxml-xpath.html#XMLXPATHPARSERCONTEXT"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000159>xmlXPathParserContext</A
160>;
161typedef <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000162HREF="libxml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000163>xmlXPathParserContextPtr</A
164>;
Daniel Veillard7e99c632000-10-06 12:59:53 +0000165enum <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000166HREF="libxml-xpath.html#XMLXPATHERROR"
Daniel Veillard7e99c632000-10-06 12:59:53 +0000167>xmlXPathError</A
168>;
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000169struct <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000170HREF="libxml-xpath.html#XMLNODESET"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000171>xmlNodeSet</A
172>;
173typedef <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000174HREF="libxml-xpath.html#XMLNODESETPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000175>xmlNodeSetPtr</A
176>;
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000177enum <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000178HREF="libxml-xpath.html#XMLXPATHOBJECTTYPE"
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000179>xmlXPathObjectType</A
180>;
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000181struct <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000182HREF="libxml-xpath.html#XMLXPATHOBJECT"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000183>xmlXPathObject</A
184>;
Daniel Veillardf012a642001-07-23 19:10:52 +0000185typedef <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000186HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000187>xmlXPathObjectPtr</A
Daniel Veillardf012a642001-07-23 19:10:52 +0000188>;
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000189int (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000190HREF="libxml-xpath.html#XMLXPATHCONVERTFUNC"
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000191>*xmlXPathConvertFunc</A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000192>) (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000193HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000194>xmlXPathObjectPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000195> obj,
196 int type);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000197struct <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000198HREF="libxml-xpath.html#XMLXPATHTYPE"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000199>xmlXPathType</A
200>;
201typedef <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000202HREF="libxml-xpath.html#XMLXPATHTYPEPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000203>xmlXPathTypePtr</A
204>;
205struct <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000206HREF="libxml-xpath.html#XMLXPATHVARIABLE"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000207>xmlXPathVariable</A
208>;
209typedef <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000210HREF="libxml-xpath.html#XMLXPATHVARIABLEPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000211>xmlXPathVariablePtr</A
212>;
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000213void (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000214HREF="libxml-xpath.html#XMLXPATHEVALFUNC"
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000215>*xmlXPathEvalFunc</A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000216>) (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000217HREF="libxml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000218>xmlXPathParserContextPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000219> ctxt,
220 int nargs);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000221struct <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000222HREF="libxml-xpath.html#XMLXPATHFUNCT"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000223>xmlXPathFunct</A
224>;
225typedef <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000226HREF="libxml-xpath.html#XMLXPATHFUNCPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000227>xmlXPathFuncPtr</A
228>;
229<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000230HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000231>xmlXPathObjectPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000232> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000233HREF="libxml-xpath.html#XMLXPATHAXISFUNC"
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000234>*xmlXPathAxisFunc</A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000235>) (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000236HREF="libxml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000237>xmlXPathParserContextPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000238> ctxt,
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000239 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000240HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000241>xmlXPathObjectPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000242> cur);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000243struct <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000244HREF="libxml-xpath.html#XMLXPATHAXIS"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000245>xmlXPathAxis</A
246>;
247typedef <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000248HREF="libxml-xpath.html#XMLXPATHAXISPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000249>xmlXPathAxisPtr</A
250>;
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +0000251struct <A
252HREF="libxml-xpath.html#XMLXPATHCOMPEXPR"
253>xmlXPathCompExpr</A
254>;
255typedef <A
256HREF="libxml-xpath.html#XMLXPATHCOMPEXPRPTR"
257>xmlXPathCompExprPtr</A
258>;
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000259<GTKDOCLINK
260HREF="TYPEDEF"
261>typedef</GTKDOCLINK
262> <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000263HREF="libxml-xpath.html#XMLXPATHFUNCTION"
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000264>xmlXPathFunction</A
265> ();
266int <A
267HREF="libxml-xpath.html#XMLXPATHISNAN"
268>xmlXPathIsNaN</A
269> (<GTKDOCLINK
270HREF="DOUBLE"
271>double</GTKDOCLINK
272> val);
273int <A
274HREF="libxml-xpath.html#XMLXPATHISINF"
275>xmlXPathIsInf</A
276> (<GTKDOCLINK
277HREF="DOUBLE"
278>double</GTKDOCLINK
279> val);
Daniel Veillardbed7b052001-05-19 14:59:49 +0000280#define <A
281HREF="libxml-xpath.html#XMLXPATHNODESETGETLENGTH"
282>xmlXPathNodeSetGetLength</A
283> (ns)
284#define <A
285HREF="libxml-xpath.html#XMLXPATHNODESETITEM"
286>xmlXPathNodeSetItem</A
287> (ns, index)
Daniel Veillardf012a642001-07-23 19:10:52 +0000288#define <A
289HREF="libxml-xpath.html#XMLXPATHNODESETISEMPTY"
290>xmlXPathNodeSetIsEmpty</A
291> (ns)
Daniel Veillard7e99c632000-10-06 12:59:53 +0000292void <A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +0000293HREF="libxml-xpath.html#XMLXPATHFREEOBJECT"
294>xmlXPathFreeObject</A
295> (<A
296HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
297>xmlXPathObjectPtr</A
298> obj);
299<A
300HREF="libxml-xpath.html#XMLNODESETPTR"
301>xmlNodeSetPtr</A
302> <A
303HREF="libxml-xpath.html#XMLXPATHNODESETCREATE"
304>xmlXPathNodeSetCreate</A
305> (<A
306HREF="libxml-tree.html#XMLNODEPTR"
307>xmlNodePtr</A
308> val);
309void <A
310HREF="libxml-xpath.html#XMLXPATHFREENODESETLIST"
311>xmlXPathFreeNodeSetList</A
312> (<A
313HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
314>xmlXPathObjectPtr</A
315> obj);
316void <A
317HREF="libxml-xpath.html#XMLXPATHFREENODESET"
318>xmlXPathFreeNodeSet</A
319> (<A
320HREF="libxml-xpath.html#XMLNODESETPTR"
321>xmlNodeSetPtr</A
322> obj);
323<A
324HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
325>xmlXPathObjectPtr</A
326> <A
327HREF="libxml-xpath.html#XMLXPATHOBJECTCOPY"
328>xmlXPathObjectCopy</A
329> (<A
330HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
331>xmlXPathObjectPtr</A
332> val);
333int <A
334HREF="libxml-xpath.html#XMLXPATHCMPNODES"
335>xmlXPathCmpNodes</A
336> (<A
337HREF="libxml-tree.html#XMLNODEPTR"
338>xmlNodePtr</A
339> node1,
340 <A
341HREF="libxml-tree.html#XMLNODEPTR"
342>xmlNodePtr</A
343> node2);
Daniel Veillardbed7b052001-05-19 14:59:49 +0000344int <A
345HREF="libxml-xpath.html#XMLXPATHCASTNUMBERTOBOOLEAN"
346>xmlXPathCastNumberToBoolean</A
347> (<GTKDOCLINK
348HREF="DOUBLE"
349>double</GTKDOCLINK
350> val);
351int <A
352HREF="libxml-xpath.html#XMLXPATHCASTSTRINGTOBOOLEAN"
353>xmlXPathCastStringToBoolean</A
354> (const <A
355HREF="libxml-tree.html#XMLCHAR"
356>xmlChar</A
357> *val);
358int <A
359HREF="libxml-xpath.html#XMLXPATHCASTNODESETTOBOOLEAN"
360>xmlXPathCastNodeSetToBoolean</A
361> (<A
362HREF="libxml-xpath.html#XMLNODESETPTR"
363>xmlNodeSetPtr</A
364> ns);
365int <A
366HREF="libxml-xpath.html#XMLXPATHCASTTOBOOLEAN"
367>xmlXPathCastToBoolean</A
368> (<A
369HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
370>xmlXPathObjectPtr</A
371> val);
372<GTKDOCLINK
373HREF="DOUBLE"
374>double</GTKDOCLINK
375> <A
376HREF="libxml-xpath.html#XMLXPATHCASTBOOLEANTONUMBER"
377>xmlXPathCastBooleanToNumber</A
378> (int val);
379<GTKDOCLINK
380HREF="DOUBLE"
381>double</GTKDOCLINK
382> <A
383HREF="libxml-xpath.html#XMLXPATHCASTSTRINGTONUMBER"
384>xmlXPathCastStringToNumber</A
385> (const <A
386HREF="libxml-tree.html#XMLCHAR"
387>xmlChar</A
388> *val);
389<GTKDOCLINK
390HREF="DOUBLE"
391>double</GTKDOCLINK
392> <A
393HREF="libxml-xpath.html#XMLXPATHCASTNODETONUMBER"
394>xmlXPathCastNodeToNumber</A
395> (<A
396HREF="libxml-tree.html#XMLNODEPTR"
397>xmlNodePtr</A
398> node);
399<GTKDOCLINK
400HREF="DOUBLE"
401>double</GTKDOCLINK
402> <A
403HREF="libxml-xpath.html#XMLXPATHCASTNODESETTONUMBER"
404>xmlXPathCastNodeSetToNumber</A
405> (<A
406HREF="libxml-xpath.html#XMLNODESETPTR"
407>xmlNodeSetPtr</A
408> ns);
409<GTKDOCLINK
410HREF="DOUBLE"
411>double</GTKDOCLINK
412> <A
413HREF="libxml-xpath.html#XMLXPATHCASTTONUMBER"
414>xmlXPathCastToNumber</A
415> (<A
416HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
417>xmlXPathObjectPtr</A
418> val);
419<A
420HREF="libxml-tree.html#XMLCHAR"
421>xmlChar</A
422>* <A
423HREF="libxml-xpath.html#XMLXPATHCASTBOOLEANTOSTRING"
424>xmlXPathCastBooleanToString</A
425> (int val);
426<A
427HREF="libxml-tree.html#XMLCHAR"
428>xmlChar</A
429>* <A
430HREF="libxml-xpath.html#XMLXPATHCASTNUMBERTOSTRING"
431>xmlXPathCastNumberToString</A
432> (<GTKDOCLINK
433HREF="DOUBLE"
434>double</GTKDOCLINK
435> val);
436<A
437HREF="libxml-tree.html#XMLCHAR"
438>xmlChar</A
439>* <A
440HREF="libxml-xpath.html#XMLXPATHCASTNODETOSTRING"
441>xmlXPathCastNodeToString</A
442> (<A
443HREF="libxml-tree.html#XMLNODEPTR"
444>xmlNodePtr</A
445> node);
446<A
447HREF="libxml-tree.html#XMLCHAR"
448>xmlChar</A
449>* <A
450HREF="libxml-xpath.html#XMLXPATHCASTNODESETTOSTRING"
451>xmlXPathCastNodeSetToString</A
452> (<A
453HREF="libxml-xpath.html#XMLNODESETPTR"
454>xmlNodeSetPtr</A
455> ns);
456<A
457HREF="libxml-tree.html#XMLCHAR"
458>xmlChar</A
459>* <A
460HREF="libxml-xpath.html#XMLXPATHCASTTOSTRING"
461>xmlXPathCastToString</A
462> (<A
463HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
464>xmlXPathObjectPtr</A
465> val);
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +0000466<A
467HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
468>xmlXPathObjectPtr</A
469> <A
470HREF="libxml-xpath.html#XMLXPATHCONVERTBOOLEAN"
471>xmlXPathConvertBoolean</A
472> (<A
473HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
474>xmlXPathObjectPtr</A
475> val);
476<A
477HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
478>xmlXPathObjectPtr</A
479> <A
480HREF="libxml-xpath.html#XMLXPATHCONVERTNUMBER"
481>xmlXPathConvertNumber</A
482> (<A
483HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
484>xmlXPathObjectPtr</A
485> val);
486<A
487HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
488>xmlXPathObjectPtr</A
489> <A
490HREF="libxml-xpath.html#XMLXPATHCONVERTSTRING"
491>xmlXPathConvertString</A
492> (<A
493HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
494>xmlXPathObjectPtr</A
495> val);
496void <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000497HREF="libxml-xpath.html#XMLXPATHINIT"
Daniel Veillard7e99c632000-10-06 12:59:53 +0000498>xmlXPathInit</A
499> (void);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000500<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000501HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000502>xmlXPathContextPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000503> <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000504HREF="libxml-xpath.html#XMLXPATHNEWCONTEXT"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000505>xmlXPathNewContext</A
506> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000507HREF="libxml-tree.html#XMLDOCPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000508>xmlDocPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000509> doc);
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000510void <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000511HREF="libxml-xpath.html#XMLXPATHFREECONTEXT"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000512>xmlXPathFreeContext</A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000513> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000514HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000515>xmlXPathContextPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000516> ctxt);
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000517<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000518HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000519>xmlXPathObjectPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000520> <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000521HREF="libxml-xpath.html#XMLXPATHEVAL"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000522>xmlXPathEval</A
523> (const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000524HREF="libxml-tree.html#XMLCHAR"
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000525>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000526> *str,
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000527 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000528HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000529>xmlXPathContextPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000530> ctxt);
Daniel Veillard7e99c632000-10-06 12:59:53 +0000531<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000532HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
Daniel Veillard7e99c632000-10-06 12:59:53 +0000533>xmlXPathObjectPtr</A
534> <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000535HREF="libxml-xpath.html#XMLXPATHEVALEXPRESSION"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000536>xmlXPathEvalExpression</A
537> (const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000538HREF="libxml-tree.html#XMLCHAR"
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000539>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000540> *str,
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000541 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000542HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000543>xmlXPathContextPtr</A
544> ctxt);
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000545int <A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +0000546HREF="libxml-xpath.html#XMLXPATHEVALPREDICATE"
547>xmlXPathEvalPredicate</A
548> (<A
549HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR"
550>xmlXPathContextPtr</A
551> ctxt,
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000552 <A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +0000553HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
554>xmlXPathObjectPtr</A
555> res);
556<A
557HREF="libxml-xpath.html#XMLXPATHCOMPEXPRPTR"
558>xmlXPathCompExprPtr</A
559> <A
560HREF="libxml-xpath.html#XMLXPATHCOMPILE"
561>xmlXPathCompile</A
562> (const <A
563HREF="libxml-tree.html#XMLCHAR"
564>xmlChar</A
565> *str);
566<A
567HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
568>xmlXPathObjectPtr</A
569> <A
570HREF="libxml-xpath.html#XMLXPATHCOMPILEDEVAL"
571>xmlXPathCompiledEval</A
572> (<A
573HREF="libxml-xpath.html#XMLXPATHCOMPEXPRPTR"
574>xmlXPathCompExprPtr</A
575> comp,
576 <A
577HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR"
578>xmlXPathContextPtr</A
579> ctx);
580void <A
581HREF="libxml-xpath.html#XMLXPATHFREECOMPEXPR"
582>xmlXPathFreeCompExpr</A
583> (<A
584HREF="libxml-xpath.html#XMLXPATHCOMPEXPRPTR"
585>xmlXPathCompExprPtr</A
586> comp);</PRE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000587></TD
588></TR
589></TABLE
590></DIV
591><DIV
592CLASS="REFSECT1"
593><A
Daniel Veillard60087f32001-10-10 09:45:09 +0000594NAME="AEN11593"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000595></A
596><H2
597>Description</H2
598><P
599></P
600></DIV
601><DIV
602CLASS="REFSECT1"
603><A
Daniel Veillard60087f32001-10-10 09:45:09 +0000604NAME="AEN11596"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000605></A
606><H2
607>Details</H2
608><DIV
609CLASS="REFSECT2"
610><A
Daniel Veillard60087f32001-10-10 09:45:09 +0000611NAME="AEN11598"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000612></A
613><H3
614><A
615NAME="XMLXPATHCONTEXT"
616></A
617>struct xmlXPathContext</H3
618><TABLE
619BORDER="0"
620BGCOLOR="#D6E8FF"
621WIDTH="100%"
622CELLPADDING="6"
623><TR
624><TD
625><PRE
626CLASS="PROGRAMLISTING"
627>struct xmlXPathContext {
628 xmlDocPtr doc; /* The current document */
629 xmlNodePtr node; /* The current node */
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000630
Daniel Veillard29a11cc2000-10-25 13:32:39 +0000631 int nb_variables_unused; /* unused (hash table) */
632 int max_variables_unused; /* unused (hash table) */
633 xmlHashTablePtr varHash; /* Hash table of defined variables */
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000634
635 int nb_types; /* number of defined types */
636 int max_types; /* max number of types */
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000637 xmlXPathTypePtr types; /* Array of defined types */
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000638
Daniel Veillard29a11cc2000-10-25 13:32:39 +0000639 int nb_funcs_unused; /* unused (hash table) */
640 int max_funcs_unused; /* unused (hash table) */
641 xmlHashTablePtr funcHash; /* Hash table of defined funcs */
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000642
643 int nb_axis; /* number of defined axis */
644 int max_axis; /* max number of axis */
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000645 xmlXPathAxisPtr axis; /* Array of defined axis */
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000646
Daniel Veillard503b8932001-01-05 06:36:31 +0000647 /* the namespace nodes of the context node */
648 xmlNsPtr *namespaces; /* Array of namespaces */
649 int nsNr; /* number of namespace in scope */
650 void *user; /* function to free */
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000651
652 /* extra variables */
653 int contextSize; /* the context size */
654 int proximityPosition; /* the proximity position */
Daniel Veillard7e99c632000-10-06 12:59:53 +0000655
656 /* extra stuff for XPointer */
657 int xptr; /* it this an XPointer context */
658 xmlNodePtr here; /* for here() */
659 xmlNodePtr origin; /* for origin() */
Daniel Veillard503b8932001-01-05 06:36:31 +0000660
661 /* the set of namespace declarations in scope for the expression */
662 xmlHashTablePtr nsHash; /* The namespaces hash table */
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000663 void *varLookupFunc; /* variable lookup func */
664 void *varLookupData; /* variable lookup data */
665
666 /* Possibility to link in an extra item */
667 void *extra; /* needed for XSLT */
Daniel Veillard4ec885a2001-06-17 10:31:07 +0000668
669 /* The function name and URI when calling a function */
670 const xmlChar *function;
671 const xmlChar *functionURI;
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000672
673 /* function lookup function and data */
674 void *funcLookupFunc; /* function lookup func */
675 void *funcLookupData; /* function lookup data */
676
677 /* temporary namespace lists kept for walking the namespace axis */
678 xmlNsPtr *tmpNsList; /* Array of namespaces */
679 int tmpNsNr; /* number of namespace in scope */
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000680};</PRE
681></TD
682></TR
683></TABLE
684><P
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000685>Expression evaluation occurs with respect to a context.
686he context consists of:
687- a node (the context node)
688- a node list (the context node list)
689- a set of variable bindings
690- a function library
691- the set of namespace declarations in scope for the expression
692Following the switch to hash tables, this need to be trimmed up at
693the next binary incompatible release.</P
694><P
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000695></P
696></DIV
697><HR><DIV
698CLASS="REFSECT2"
699><A
Daniel Veillard60087f32001-10-10 09:45:09 +0000700NAME="AEN11604"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000701></A
702><H3
703><A
704NAME="XMLXPATHCONTEXTPTR"
705></A
706>xmlXPathContextPtr</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000707><TABLE
708BORDER="0"
709BGCOLOR="#D6E8FF"
710WIDTH="100%"
711CELLPADDING="6"
712><TR
713><TD
714><PRE
715CLASS="PROGRAMLISTING"
716>typedef xmlXPathContext *xmlXPathContextPtr;</PRE
717></TD
718></TR
719></TABLE
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000720><P
721></P
722></DIV
723><HR><DIV
724CLASS="REFSECT2"
725><A
Daniel Veillard60087f32001-10-10 09:45:09 +0000726NAME="AEN11609"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000727></A
728><H3
729><A
730NAME="XMLXPATHPARSERCONTEXT"
731></A
732>struct xmlXPathParserContext</H3
733><TABLE
734BORDER="0"
735BGCOLOR="#D6E8FF"
736WIDTH="100%"
737CELLPADDING="6"
738><TR
739><TD
740><PRE
741CLASS="PROGRAMLISTING"
742>struct xmlXPathParserContext {
743 const xmlChar *cur; /* the current char being parsed */
744 const xmlChar *base; /* the full expression */
745
746 int error; /* error code */
747
748 xmlXPathContextPtr context; /* the evaluation context */
749 xmlXPathObjectPtr value; /* the current value */
750 int valueNr; /* number of values stacked */
751 int valueMax; /* max number of values stacked */
752 xmlXPathObjectPtr *valueTab; /* stack of values */
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +0000753
754 xmlXPathCompExprPtr comp; /* the precompiled expression */
755 int xptr; /* it this an XPointer expression */
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000756 xmlNodePtr ancestor; /* used for walking preceding axis */
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000757};</PRE
758></TD
759></TR
760></TABLE
761><P
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000762>An XPath parser context, it contains pure parsing informations,
763an xmlXPathContext, and the stack of objects.</P
764><P
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000765></P
766></DIV
767><HR><DIV
768CLASS="REFSECT2"
769><A
Daniel Veillard60087f32001-10-10 09:45:09 +0000770NAME="AEN11615"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000771></A
772><H3
773><A
774NAME="XMLXPATHPARSERCONTEXTPTR"
775></A
776>xmlXPathParserContextPtr</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000777><TABLE
778BORDER="0"
779BGCOLOR="#D6E8FF"
780WIDTH="100%"
781CELLPADDING="6"
782><TR
783><TD
784><PRE
785CLASS="PROGRAMLISTING"
786>typedef xmlXPathParserContext *xmlXPathParserContextPtr;</PRE
787></TD
788></TR
789></TABLE
Daniel Veillard7e99c632000-10-06 12:59:53 +0000790><P
791></P
792></DIV
793><HR><DIV
794CLASS="REFSECT2"
795><A
Daniel Veillard60087f32001-10-10 09:45:09 +0000796NAME="AEN11620"
Daniel Veillard7e99c632000-10-06 12:59:53 +0000797></A
798><H3
799><A
800NAME="XMLXPATHERROR"
801></A
802>enum xmlXPathError</H3
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000803><TABLE
804BORDER="0"
805BGCOLOR="#D6E8FF"
806WIDTH="100%"
807CELLPADDING="6"
808><TR
809><TD
810><PRE
811CLASS="PROGRAMLISTING"
Daniel Veillard7e99c632000-10-06 12:59:53 +0000812>typedef enum {
813 XPATH_EXPRESSION_OK = 0,
814 XPATH_NUMBER_ERROR,
815 XPATH_UNFINISHED_LITERAL_ERROR,
816 XPATH_START_LITERAL_ERROR,
817 XPATH_VARIABLE_REF_ERROR,
818 XPATH_UNDEF_VARIABLE_ERROR,
819 XPATH_INVALID_PREDICATE_ERROR,
820 XPATH_EXPR_ERROR,
821 XPATH_UNCLOSED_ERROR,
822 XPATH_UNKNOWN_FUNC_ERROR,
823 XPATH_INVALID_OPERAND,
824 XPATH_INVALID_TYPE,
825 XPATH_INVALID_ARITY,
826 XPATH_INVALID_CTXT_SIZE,
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000827 XPATH_INVALID_CTXT_POSITION,
828 XPATH_MEMORY_ERROR,
829 XPTR_SYNTAX_ERROR,
830 XPTR_RESOURCE_ERROR,
Daniel Veillard503b8932001-01-05 06:36:31 +0000831 XPTR_SUB_RESOURCE_ERROR,
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +0000832 XPATH_UNDEF_PREFIX_ERROR,
833 XPATH_ENCODING_ERROR,
834 XPATH_INVALID_CHAR_ERROR
Daniel Veillard7e99c632000-10-06 12:59:53 +0000835} xmlXPathError;</PRE
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000836></TD
837></TR
838></TABLE
839><P
840></P
841></DIV
842><HR><DIV
843CLASS="REFSECT2"
844><A
Daniel Veillard60087f32001-10-10 09:45:09 +0000845NAME="AEN11625"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000846></A
847><H3
848><A
849NAME="XMLNODESET"
850></A
851>struct xmlNodeSet</H3
852><TABLE
853BORDER="0"
854BGCOLOR="#D6E8FF"
855WIDTH="100%"
856CELLPADDING="6"
857><TR
858><TD
859><PRE
860CLASS="PROGRAMLISTING"
861>struct xmlNodeSet {
862 int nodeNr; /* number of nodes in the set */
863 int nodeMax; /* size of the array as allocated */
864 xmlNodePtr *nodeTab; /* array of nodes in no particular order */
865};</PRE
866></TD
867></TR
868></TABLE
869><P
870></P
871></DIV
872><HR><DIV
873CLASS="REFSECT2"
874><A
Daniel Veillard60087f32001-10-10 09:45:09 +0000875NAME="AEN11630"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000876></A
877><H3
878><A
879NAME="XMLNODESETPTR"
880></A
881>xmlNodeSetPtr</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +0000882><TABLE
883BORDER="0"
884BGCOLOR="#D6E8FF"
885WIDTH="100%"
886CELLPADDING="6"
887><TR
888><TD
889><PRE
890CLASS="PROGRAMLISTING"
891>typedef xmlNodeSet *xmlNodeSetPtr;</PRE
892></TD
893></TR
894></TABLE
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000895><P
896></P
897></DIV
898><HR><DIV
899CLASS="REFSECT2"
900><A
Daniel Veillard60087f32001-10-10 09:45:09 +0000901NAME="AEN11635"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000902></A
903><H3
904><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000905NAME="XMLXPATHOBJECTTYPE"
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000906></A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000907>enum xmlXPathObjectType</H3
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000908><TABLE
909BORDER="0"
910BGCOLOR="#D6E8FF"
911WIDTH="100%"
912CELLPADDING="6"
913><TR
914><TD
915><PRE
916CLASS="PROGRAMLISTING"
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000917>typedef enum {
918 XPATH_UNDEFINED = 0,
919 XPATH_NODESET = 1,
920 XPATH_BOOLEAN = 2,
921 XPATH_NUMBER = 3,
922 XPATH_STRING = 4,
Daniel Veillard7e99c632000-10-06 12:59:53 +0000923 XPATH_POINT = 5,
924 XPATH_RANGE = 6,
925 XPATH_LOCATIONSET = 7,
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000926 XPATH_USERS = 8,
927 XPATH_XSLT_TREE = 9 /* An XSLT value tree, non modifiable */
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000928} xmlXPathObjectType;</PRE
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000929></TD
930></TR
931></TABLE
932><P
933></P
934></DIV
935><HR><DIV
936CLASS="REFSECT2"
937><A
Daniel Veillard60087f32001-10-10 09:45:09 +0000938NAME="AEN11640"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000939></A
940><H3
941><A
942NAME="XMLXPATHOBJECT"
943></A
944>struct xmlXPathObject</H3
945><TABLE
946BORDER="0"
947BGCOLOR="#D6E8FF"
948WIDTH="100%"
949CELLPADDING="6"
950><TR
951><TD
952><PRE
953CLASS="PROGRAMLISTING"
954>struct xmlXPathObject {
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000955 xmlXPathObjectType type;
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000956 xmlNodeSetPtr nodesetval;
957 int boolval;
958 double floatval;
959 xmlChar *stringval;
960 void *user;
Daniel Veillard7e99c632000-10-06 12:59:53 +0000961 int index;
962 void *user2;
963 int index2;
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000964};</PRE
965></TD
966></TR
967></TABLE
968><P
969></P
970></DIV
971><HR><DIV
972CLASS="REFSECT2"
973><A
Daniel Veillard60087f32001-10-10 09:45:09 +0000974NAME="AEN11645"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000975></A
976><H3
977><A
978NAME="XMLXPATHOBJECTPTR"
979></A
Daniel Veillardf012a642001-07-23 19:10:52 +0000980>xmlXPathObjectPtr</H3
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000981><TABLE
982BORDER="0"
983BGCOLOR="#D6E8FF"
984WIDTH="100%"
985CELLPADDING="6"
986><TR
987><TD
988><PRE
989CLASS="PROGRAMLISTING"
Daniel Veillardf012a642001-07-23 19:10:52 +0000990>typedef xmlXPathObject *xmlXPathObjectPtr;</PRE
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000991></TD
992></TR
993></TABLE
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000994><P
995></P
996></DIV
997><HR><DIV
998CLASS="REFSECT2"
999><A
Daniel Veillard60087f32001-10-10 09:45:09 +00001000NAME="AEN11650"
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001001></A
1002><H3
1003><A
1004NAME="XMLXPATHCONVERTFUNC"
1005></A
1006>xmlXPathConvertFunc ()</H3
1007><TABLE
1008BORDER="0"
1009BGCOLOR="#D6E8FF"
1010WIDTH="100%"
1011CELLPADDING="6"
1012><TR
1013><TD
1014><PRE
1015CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001016>int (*xmlXPathConvertFunc) (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001017HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001018>xmlXPathObjectPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001019> obj,
1020 int type);</PRE
1021></TD
1022></TR
1023></TABLE
1024><P
1025></P
1026><DIV
1027CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001028><A
Daniel Veillard60087f32001-10-10 09:45:09 +00001029NAME="AEN11656"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001030></A
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001031><P
1032></P
1033><TABLE
1034BORDER="0"
1035WIDTH="100%"
1036BGCOLOR="#FFD0D0"
1037CELLSPACING="0"
1038CELLPADDING="4"
1039CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001040><TBODY
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001041><TR
1042><TD
1043WIDTH="20%"
1044ALIGN="RIGHT"
1045VALIGN="TOP"
1046><TT
1047CLASS="PARAMETER"
1048><I
1049>obj</I
1050></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001051>&nbsp;:</TD
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001052><TD
1053WIDTH="80%"
1054ALIGN="LEFT"
1055VALIGN="TOP"
1056>&nbsp;</TD
1057></TR
1058><TR
1059><TD
1060WIDTH="20%"
1061ALIGN="RIGHT"
1062VALIGN="TOP"
1063><TT
1064CLASS="PARAMETER"
1065><I
1066>type</I
1067></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001068>&nbsp;:</TD
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001069><TD
1070WIDTH="80%"
1071ALIGN="LEFT"
1072VALIGN="TOP"
1073>&nbsp;</TD
1074></TR
1075><TR
1076><TD
1077WIDTH="20%"
1078ALIGN="RIGHT"
1079VALIGN="TOP"
1080><I
1081CLASS="EMPHASIS"
1082>Returns</I
1083> :</TD
1084><TD
1085WIDTH="80%"
1086ALIGN="LEFT"
1087VALIGN="TOP"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001088>&nbsp;</TD
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001089></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001090></TBODY
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001091></TABLE
1092><P
1093></P
1094></DIV
1095></DIV
1096><HR><DIV
1097CLASS="REFSECT2"
1098><A
Daniel Veillard60087f32001-10-10 09:45:09 +00001099NAME="AEN11673"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001100></A
1101><H3
1102><A
1103NAME="XMLXPATHTYPE"
1104></A
1105>struct xmlXPathType</H3
1106><TABLE
1107BORDER="0"
1108BGCOLOR="#D6E8FF"
1109WIDTH="100%"
1110CELLPADDING="6"
1111><TR
1112><TD
1113><PRE
1114CLASS="PROGRAMLISTING"
1115>struct xmlXPathType {
1116 const xmlChar *name; /* the type name */
1117 xmlXPathConvertFunc func; /* the conversion function */
1118};</PRE
1119></TD
1120></TR
1121></TABLE
1122><P
1123></P
1124></DIV
1125><HR><DIV
1126CLASS="REFSECT2"
1127><A
Daniel Veillard60087f32001-10-10 09:45:09 +00001128NAME="AEN11678"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001129></A
1130><H3
1131><A
1132NAME="XMLXPATHTYPEPTR"
1133></A
1134>xmlXPathTypePtr</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001135><TABLE
1136BORDER="0"
1137BGCOLOR="#D6E8FF"
1138WIDTH="100%"
1139CELLPADDING="6"
1140><TR
1141><TD
1142><PRE
1143CLASS="PROGRAMLISTING"
1144>typedef xmlXPathType *xmlXPathTypePtr;</PRE
1145></TD
1146></TR
1147></TABLE
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001148><P
1149></P
1150></DIV
1151><HR><DIV
1152CLASS="REFSECT2"
1153><A
Daniel Veillard60087f32001-10-10 09:45:09 +00001154NAME="AEN11683"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001155></A
1156><H3
1157><A
1158NAME="XMLXPATHVARIABLE"
1159></A
1160>struct xmlXPathVariable</H3
1161><TABLE
1162BORDER="0"
1163BGCOLOR="#D6E8FF"
1164WIDTH="100%"
1165CELLPADDING="6"
1166><TR
1167><TD
1168><PRE
1169CLASS="PROGRAMLISTING"
1170>struct xmlXPathVariable {
1171 const xmlChar *name; /* the variable name */
1172 xmlXPathObjectPtr value; /* the value */
1173};</PRE
1174></TD
1175></TR
1176></TABLE
1177><P
1178></P
1179></DIV
1180><HR><DIV
1181CLASS="REFSECT2"
1182><A
Daniel Veillard60087f32001-10-10 09:45:09 +00001183NAME="AEN11688"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001184></A
1185><H3
1186><A
1187NAME="XMLXPATHVARIABLEPTR"
1188></A
1189>xmlXPathVariablePtr</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001190><TABLE
1191BORDER="0"
1192BGCOLOR="#D6E8FF"
1193WIDTH="100%"
1194CELLPADDING="6"
1195><TR
1196><TD
1197><PRE
1198CLASS="PROGRAMLISTING"
1199>typedef xmlXPathVariable *xmlXPathVariablePtr;</PRE
1200></TD
1201></TR
1202></TABLE
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001203><P
1204></P
1205></DIV
1206><HR><DIV
1207CLASS="REFSECT2"
1208><A
Daniel Veillard60087f32001-10-10 09:45:09 +00001209NAME="AEN11693"
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001210></A
1211><H3
1212><A
1213NAME="XMLXPATHEVALFUNC"
1214></A
1215>xmlXPathEvalFunc ()</H3
1216><TABLE
1217BORDER="0"
1218BGCOLOR="#D6E8FF"
1219WIDTH="100%"
1220CELLPADDING="6"
1221><TR
1222><TD
1223><PRE
1224CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001225>void (*xmlXPathEvalFunc) (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001226HREF="libxml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001227>xmlXPathParserContextPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001228> ctxt,
1229 int nargs);</PRE
1230></TD
1231></TR
1232></TABLE
1233><P
Daniel Veillard04382ae2001-09-12 18:51:30 +00001234>an XPath evaluation function, the parameters are on the XPath context stack</P
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001235><P
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001236></P
1237><DIV
1238CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001239><A
Daniel Veillard60087f32001-10-10 09:45:09 +00001240NAME="AEN11700"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001241></A
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001242><P
1243></P
1244><TABLE
1245BORDER="0"
1246WIDTH="100%"
1247BGCOLOR="#FFD0D0"
1248CELLSPACING="0"
1249CELLPADDING="4"
1250CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001251><TBODY
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001252><TR
1253><TD
1254WIDTH="20%"
1255ALIGN="RIGHT"
1256VALIGN="TOP"
1257><TT
1258CLASS="PARAMETER"
1259><I
1260>ctxt</I
1261></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001262>&nbsp;:</TD
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001263><TD
1264WIDTH="80%"
1265ALIGN="LEFT"
1266VALIGN="TOP"
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001267> an XPath parser context</TD
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001268></TR
1269><TR
1270><TD
1271WIDTH="20%"
1272ALIGN="RIGHT"
1273VALIGN="TOP"
1274><TT
1275CLASS="PARAMETER"
1276><I
1277>nargs</I
1278></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001279>&nbsp;:</TD
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001280><TD
1281WIDTH="80%"
1282ALIGN="LEFT"
1283VALIGN="TOP"
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001284> the number of arguments passed to the function</TD
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001285></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001286></TBODY
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001287></TABLE
1288><P
1289></P
1290></DIV
1291></DIV
1292><HR><DIV
1293CLASS="REFSECT2"
1294><A
Daniel Veillard60087f32001-10-10 09:45:09 +00001295NAME="AEN11713"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001296></A
1297><H3
1298><A
1299NAME="XMLXPATHFUNCT"
1300></A
1301>struct xmlXPathFunct</H3
1302><TABLE
1303BORDER="0"
1304BGCOLOR="#D6E8FF"
1305WIDTH="100%"
1306CELLPADDING="6"
1307><TR
1308><TD
1309><PRE
1310CLASS="PROGRAMLISTING"
1311>struct xmlXPathFunct {
1312 const xmlChar *name; /* the function name */
1313 xmlXPathEvalFunc func; /* the evaluation function */
1314};</PRE
1315></TD
1316></TR
1317></TABLE
1318><P
1319></P
1320></DIV
1321><HR><DIV
1322CLASS="REFSECT2"
1323><A
Daniel Veillard60087f32001-10-10 09:45:09 +00001324NAME="AEN11718"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001325></A
1326><H3
1327><A
1328NAME="XMLXPATHFUNCPTR"
1329></A
1330>xmlXPathFuncPtr</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001331><TABLE
1332BORDER="0"
1333BGCOLOR="#D6E8FF"
1334WIDTH="100%"
1335CELLPADDING="6"
1336><TR
1337><TD
1338><PRE
1339CLASS="PROGRAMLISTING"
1340>typedef xmlXPathFunct *xmlXPathFuncPtr;</PRE
1341></TD
1342></TR
1343></TABLE
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001344><P
1345></P
1346></DIV
1347><HR><DIV
1348CLASS="REFSECT2"
1349><A
Daniel Veillard60087f32001-10-10 09:45:09 +00001350NAME="AEN11723"
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001351></A
1352><H3
1353><A
1354NAME="XMLXPATHAXISFUNC"
1355></A
1356>xmlXPathAxisFunc ()</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
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001367HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001368>xmlXPathObjectPtr</A
1369> (*xmlXPathAxisFunc) (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001370HREF="libxml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001371>xmlXPathParserContextPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001372> ctxt,
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001373 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001374HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001375>xmlXPathObjectPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001376> cur);</PRE
1377></TD
1378></TR
1379></TABLE
1380><P
1381></P
1382><DIV
1383CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001384><A
Daniel Veillard60087f32001-10-10 09:45:09 +00001385NAME="AEN11731"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001386></A
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001387><P
1388></P
1389><TABLE
1390BORDER="0"
1391WIDTH="100%"
1392BGCOLOR="#FFD0D0"
1393CELLSPACING="0"
1394CELLPADDING="4"
1395CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001396><TBODY
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001397><TR
1398><TD
1399WIDTH="20%"
1400ALIGN="RIGHT"
1401VALIGN="TOP"
1402><TT
1403CLASS="PARAMETER"
1404><I
1405>ctxt</I
1406></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001407>&nbsp;:</TD
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001408><TD
1409WIDTH="80%"
1410ALIGN="LEFT"
1411VALIGN="TOP"
1412>&nbsp;</TD
1413></TR
1414><TR
1415><TD
1416WIDTH="20%"
1417ALIGN="RIGHT"
1418VALIGN="TOP"
1419><TT
1420CLASS="PARAMETER"
1421><I
1422>cur</I
1423></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001424>&nbsp;:</TD
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001425><TD
1426WIDTH="80%"
1427ALIGN="LEFT"
1428VALIGN="TOP"
1429>&nbsp;</TD
1430></TR
1431><TR
1432><TD
1433WIDTH="20%"
1434ALIGN="RIGHT"
1435VALIGN="TOP"
1436><I
1437CLASS="EMPHASIS"
1438>Returns</I
1439> :</TD
1440><TD
1441WIDTH="80%"
1442ALIGN="LEFT"
1443VALIGN="TOP"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001444>&nbsp;</TD
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001445></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001446></TBODY
Daniel Veillard7f7d1111999-09-22 09:46:25 +00001447></TABLE
1448><P
1449></P
1450></DIV
1451></DIV
1452><HR><DIV
1453CLASS="REFSECT2"
1454><A
Daniel Veillard60087f32001-10-10 09:45:09 +00001455NAME="AEN11748"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001456></A
1457><H3
1458><A
1459NAME="XMLXPATHAXIS"
1460></A
1461>struct xmlXPathAxis</H3
1462><TABLE
1463BORDER="0"
1464BGCOLOR="#D6E8FF"
1465WIDTH="100%"
1466CELLPADDING="6"
1467><TR
1468><TD
1469><PRE
1470CLASS="PROGRAMLISTING"
1471>struct xmlXPathAxis {
1472 const xmlChar *name; /* the axis name */
1473 xmlXPathAxisFunc func; /* the search function */
1474};</PRE
1475></TD
1476></TR
1477></TABLE
1478><P
1479></P
1480></DIV
1481><HR><DIV
1482CLASS="REFSECT2"
1483><A
Daniel Veillard60087f32001-10-10 09:45:09 +00001484NAME="AEN11753"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001485></A
1486><H3
1487><A
1488NAME="XMLXPATHAXISPTR"
1489></A
1490>xmlXPathAxisPtr</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001491><TABLE
1492BORDER="0"
1493BGCOLOR="#D6E8FF"
1494WIDTH="100%"
1495CELLPADDING="6"
1496><TR
1497><TD
1498><PRE
1499CLASS="PROGRAMLISTING"
1500>typedef xmlXPathAxis *xmlXPathAxisPtr;</PRE
1501></TD
1502></TR
1503></TABLE
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001504><P
1505></P
1506></DIV
1507><HR><DIV
1508CLASS="REFSECT2"
1509><A
Daniel Veillard60087f32001-10-10 09:45:09 +00001510NAME="AEN11758"
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00001511></A
1512><H3
1513><A
1514NAME="XMLXPATHCOMPEXPR"
1515></A
1516>struct xmlXPathCompExpr</H3
1517><TABLE
1518BORDER="0"
1519BGCOLOR="#D6E8FF"
1520WIDTH="100%"
1521CELLPADDING="6"
1522><TR
1523><TD
1524><PRE
1525CLASS="PROGRAMLISTING"
1526>struct xmlXPathCompExpr;</PRE
1527></TD
1528></TR
1529></TABLE
1530><P
1531>[14] Expr ::= OrExpr
1532[21] OrExpr ::= AndExpr
1533| OrExpr 'or' AndExpr </P
1534><P
1535>Parse and compile an expression</P
1536><P
1537></P
1538></DIV
1539><HR><DIV
1540CLASS="REFSECT2"
1541><A
Daniel Veillard60087f32001-10-10 09:45:09 +00001542NAME="AEN11765"
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00001543></A
1544><H3
1545><A
1546NAME="XMLXPATHCOMPEXPRPTR"
1547></A
1548>xmlXPathCompExprPtr</H3
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001549><TABLE
1550BORDER="0"
1551BGCOLOR="#D6E8FF"
1552WIDTH="100%"
1553CELLPADDING="6"
1554><TR
1555><TD
1556><PRE
1557CLASS="PROGRAMLISTING"
1558>typedef xmlXPathCompExpr *xmlXPathCompExprPtr;</PRE
1559></TD
1560></TR
1561></TABLE
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00001562><P
1563></P
1564></DIV
1565><HR><DIV
1566CLASS="REFSECT2"
1567><A
Daniel Veillard60087f32001-10-10 09:45:09 +00001568NAME="AEN11770"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001569></A
1570><H3
1571><A
1572NAME="XMLXPATHFUNCTION"
1573></A
1574>xmlXPathFunction ()</H3
1575><TABLE
1576BORDER="0"
1577BGCOLOR="#D6E8FF"
1578WIDTH="100%"
1579CELLPADDING="6"
1580><TR
1581><TD
1582><PRE
1583CLASS="PROGRAMLISTING"
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001584><GTKDOCLINK
1585HREF="TYPEDEF"
1586>typedef</GTKDOCLINK
1587> xmlXPathFunction ();</PRE
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001588></TD
1589></TR
1590></TABLE
1591><P
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001592>An XPath function
1593The arguments (if any) are popped out of the context stack
1594and the result is pushed on the stack.</P
1595><P
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001596></P
1597><DIV
1598CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001599><A
Daniel Veillard60087f32001-10-10 09:45:09 +00001600NAME="AEN11777"
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001601></A
1602><P
1603></P
1604><TABLE
1605BORDER="0"
1606WIDTH="100%"
1607BGCOLOR="#FFD0D0"
1608CELLSPACING="0"
1609CELLPADDING="4"
1610CLASS="CALSTABLE"
1611><TBODY
1612><TR
1613><TD
1614WIDTH="20%"
1615ALIGN="RIGHT"
1616VALIGN="TOP"
1617><I
1618CLASS="EMPHASIS"
1619>Returns</I
1620> :</TD
1621><TD
1622WIDTH="80%"
1623ALIGN="LEFT"
1624VALIGN="TOP"
1625>&nbsp;</TD
1626></TR
1627></TBODY
1628></TABLE
1629><P
1630></P
1631></DIV
1632></DIV
1633><HR><DIV
1634CLASS="REFSECT2"
1635><A
Daniel Veillard60087f32001-10-10 09:45:09 +00001636NAME="AEN11786"
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001637></A
1638><H3
1639><A
1640NAME="XMLXPATHISNAN"
1641></A
1642>xmlXPathIsNaN ()</H3
1643><TABLE
1644BORDER="0"
1645BGCOLOR="#D6E8FF"
1646WIDTH="100%"
1647CELLPADDING="6"
1648><TR
1649><TD
1650><PRE
1651CLASS="PROGRAMLISTING"
1652>int xmlXPathIsNaN (<GTKDOCLINK
1653HREF="DOUBLE"
1654>double</GTKDOCLINK
1655> val);</PRE
1656></TD
1657></TR
1658></TABLE
1659><P
1660>Provides a portable <GTKDOCLINK
1661HREF="ISNAN"
1662>isnan</GTKDOCLINK
1663>() function to detect whether a double
1664is a NotaNumber. Based on trio code
1665http://sourceforge.net/projects/ctrio/</P
1666><P
1667></P
1668><DIV
1669CLASS="INFORMALTABLE"
1670><A
Daniel Veillard60087f32001-10-10 09:45:09 +00001671NAME="AEN11794"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001672></A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001673><P
1674></P
1675><TABLE
1676BORDER="0"
1677WIDTH="100%"
1678BGCOLOR="#FFD0D0"
1679CELLSPACING="0"
1680CELLPADDING="4"
1681CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001682><TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001683><TR
1684><TD
1685WIDTH="20%"
1686ALIGN="RIGHT"
1687VALIGN="TOP"
1688><TT
1689CLASS="PARAMETER"
1690><I
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001691>val</I
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001692></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001693>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001694><TD
1695WIDTH="80%"
1696ALIGN="LEFT"
1697VALIGN="TOP"
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001698> a double value</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001699></TR
1700><TR
1701><TD
1702WIDTH="20%"
1703ALIGN="RIGHT"
1704VALIGN="TOP"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001705><I
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001706CLASS="EMPHASIS"
1707>Returns</I
1708> :</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001709><TD
1710WIDTH="80%"
1711ALIGN="LEFT"
1712VALIGN="TOP"
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001713>1 if the value is a NaN, 0 otherwise</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001714></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001715></TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001716></TABLE
1717><P
1718></P
1719></DIV
1720></DIV
1721><HR><DIV
1722CLASS="REFSECT2"
1723><A
Daniel Veillard60087f32001-10-10 09:45:09 +00001724NAME="AEN11807"
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001725></A
1726><H3
1727><A
1728NAME="XMLXPATHISINF"
1729></A
1730>xmlXPathIsInf ()</H3
1731><TABLE
1732BORDER="0"
1733BGCOLOR="#D6E8FF"
1734WIDTH="100%"
1735CELLPADDING="6"
1736><TR
1737><TD
1738><PRE
1739CLASS="PROGRAMLISTING"
1740>int xmlXPathIsInf (<GTKDOCLINK
1741HREF="DOUBLE"
1742>double</GTKDOCLINK
1743> val);</PRE
1744></TD
1745></TR
1746></TABLE
1747><P
1748>Provides a portable <GTKDOCLINK
1749HREF="ISINF"
1750>isinf</GTKDOCLINK
1751>() function to detect whether a double
1752is a +Infinite or -Infinite. Based on trio code
1753http://sourceforge.net/projects/ctrio/</P
1754><P
1755></P
1756><DIV
1757CLASS="INFORMALTABLE"
1758><A
Daniel Veillard60087f32001-10-10 09:45:09 +00001759NAME="AEN11815"
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001760></A
1761><P
1762></P
1763><TABLE
1764BORDER="0"
1765WIDTH="100%"
1766BGCOLOR="#FFD0D0"
1767CELLSPACING="0"
1768CELLPADDING="4"
1769CLASS="CALSTABLE"
1770><TBODY
1771><TR
1772><TD
1773WIDTH="20%"
1774ALIGN="RIGHT"
1775VALIGN="TOP"
1776><TT
1777CLASS="PARAMETER"
1778><I
1779>val</I
1780></TT
1781>&nbsp;:</TD
1782><TD
1783WIDTH="80%"
1784ALIGN="LEFT"
1785VALIGN="TOP"
1786> a double value</TD
1787></TR
1788><TR
1789><TD
1790WIDTH="20%"
1791ALIGN="RIGHT"
1792VALIGN="TOP"
1793><I
1794CLASS="EMPHASIS"
1795>Returns</I
1796> :</TD
1797><TD
1798WIDTH="80%"
1799ALIGN="LEFT"
1800VALIGN="TOP"
1801>1 vi the value is +Infinite, -1 if -Infinite, 0 otherwise</TD
1802></TR
1803></TBODY
1804></TABLE
1805><P
1806></P
1807></DIV
1808></DIV
1809><HR><DIV
1810CLASS="REFSECT2"
1811><A
Daniel Veillard60087f32001-10-10 09:45:09 +00001812NAME="AEN11828"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001813></A
1814><H3
1815><A
1816NAME="XMLXPATHNODESETGETLENGTH"
1817></A
1818>xmlXPathNodeSetGetLength()</H3
1819><TABLE
1820BORDER="0"
1821BGCOLOR="#D6E8FF"
1822WIDTH="100%"
1823CELLPADDING="6"
1824><TR
1825><TD
1826><PRE
1827CLASS="PROGRAMLISTING"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00001828>#define xmlXPathNodeSetGetLength(ns) ((ns) ? (ns)-&gt;nodeNr : 0)</PRE
Daniel Veillardbed7b052001-05-19 14:59:49 +00001829></TD
1830></TR
1831></TABLE
1832><P
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001833>Implement a functionnality similar to the DOM NodeList.length</P
1834><P
Daniel Veillardbed7b052001-05-19 14:59:49 +00001835></P
1836><DIV
1837CLASS="INFORMALTABLE"
1838><A
Daniel Veillard60087f32001-10-10 09:45:09 +00001839NAME="AEN11834"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001840></A
1841><P
1842></P
1843><TABLE
1844BORDER="0"
1845WIDTH="100%"
1846BGCOLOR="#FFD0D0"
1847CELLSPACING="0"
1848CELLPADDING="4"
1849CLASS="CALSTABLE"
1850><TBODY
1851><TR
1852><TD
1853WIDTH="20%"
1854ALIGN="RIGHT"
1855VALIGN="TOP"
1856><TT
1857CLASS="PARAMETER"
1858><I
1859>ns</I
1860></TT
1861>&nbsp;:</TD
1862><TD
1863WIDTH="80%"
1864ALIGN="LEFT"
1865VALIGN="TOP"
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001866> a node-set</TD
Daniel Veillardbed7b052001-05-19 14:59:49 +00001867></TR
1868></TBODY
1869></TABLE
1870><P
1871></P
1872></DIV
1873></DIV
1874><HR><DIV
1875CLASS="REFSECT2"
1876><A
Daniel Veillard60087f32001-10-10 09:45:09 +00001877NAME="AEN11843"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001878></A
1879><H3
1880><A
1881NAME="XMLXPATHNODESETITEM"
1882></A
1883>xmlXPathNodeSetItem()</H3
1884><TABLE
1885BORDER="0"
1886BGCOLOR="#D6E8FF"
1887WIDTH="100%"
1888CELLPADDING="6"
1889><TR
1890><TD
1891><PRE
1892CLASS="PROGRAMLISTING"
1893>#define xmlXPathNodeSetItem(ns, index)</PRE
1894></TD
1895></TR
1896></TABLE
1897><P
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001898>Implements a functionnality similar to the DOM NodeList.<GTKDOCLINK
1899HREF="ITEM"
1900>item</GTKDOCLINK
1901>()</P
1902><P
Daniel Veillardbed7b052001-05-19 14:59:49 +00001903></P
1904><DIV
1905CLASS="INFORMALTABLE"
1906><A
Daniel Veillard60087f32001-10-10 09:45:09 +00001907NAME="AEN11850"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001908></A
1909><P
1910></P
1911><TABLE
1912BORDER="0"
1913WIDTH="100%"
1914BGCOLOR="#FFD0D0"
1915CELLSPACING="0"
1916CELLPADDING="4"
1917CLASS="CALSTABLE"
1918><TBODY
1919><TR
1920><TD
1921WIDTH="20%"
1922ALIGN="RIGHT"
1923VALIGN="TOP"
1924><TT
1925CLASS="PARAMETER"
1926><I
1927>ns</I
1928></TT
1929>&nbsp;:</TD
1930><TD
1931WIDTH="80%"
1932ALIGN="LEFT"
1933VALIGN="TOP"
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001934> a node-set</TD
Daniel Veillardbed7b052001-05-19 14:59:49 +00001935></TR
1936><TR
1937><TD
1938WIDTH="20%"
1939ALIGN="RIGHT"
1940VALIGN="TOP"
1941><TT
1942CLASS="PARAMETER"
1943><I
1944>index</I
1945></TT
1946>&nbsp;:</TD
1947><TD
1948WIDTH="80%"
1949ALIGN="LEFT"
1950VALIGN="TOP"
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001951> index of a node in the set</TD
Daniel Veillardbed7b052001-05-19 14:59:49 +00001952></TR
1953></TBODY
1954></TABLE
1955><P
1956></P
1957></DIV
1958></DIV
1959><HR><DIV
1960CLASS="REFSECT2"
1961><A
Daniel Veillard60087f32001-10-10 09:45:09 +00001962NAME="AEN11863"
Daniel Veillardf012a642001-07-23 19:10:52 +00001963></A
1964><H3
1965><A
1966NAME="XMLXPATHNODESETISEMPTY"
1967></A
1968>xmlXPathNodeSetIsEmpty()</H3
1969><TABLE
1970BORDER="0"
1971BGCOLOR="#D6E8FF"
1972WIDTH="100%"
1973CELLPADDING="6"
1974><TR
1975><TD
1976><PRE
1977CLASS="PROGRAMLISTING"
1978>#define xmlXPathNodeSetIsEmpty(ns)</PRE
1979></TD
1980></TR
1981></TABLE
1982><P
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00001983>Checks whether <TT
1984CLASS="PARAMETER"
1985><I
1986>ns</I
1987></TT
1988> is empty or not</P
1989><P
Daniel Veillardf012a642001-07-23 19:10:52 +00001990></P
1991><DIV
1992CLASS="INFORMALTABLE"
1993><A
Daniel Veillard60087f32001-10-10 09:45:09 +00001994NAME="AEN11870"
Daniel Veillardf012a642001-07-23 19:10:52 +00001995></A
1996><P
1997></P
1998><TABLE
1999BORDER="0"
2000WIDTH="100%"
2001BGCOLOR="#FFD0D0"
2002CELLSPACING="0"
2003CELLPADDING="4"
2004CLASS="CALSTABLE"
2005><TBODY
2006><TR
2007><TD
2008WIDTH="20%"
2009ALIGN="RIGHT"
2010VALIGN="TOP"
2011><TT
2012CLASS="PARAMETER"
2013><I
2014>ns</I
2015></TT
2016>&nbsp;:</TD
2017><TD
2018WIDTH="80%"
2019ALIGN="LEFT"
2020VALIGN="TOP"
Daniel Veillarde7ead2d2001-08-22 23:44:09 +00002021> a node-set</TD
Daniel Veillardf012a642001-07-23 19:10:52 +00002022></TR
2023></TBODY
2024></TABLE
2025><P
2026></P
2027></DIV
2028></DIV
2029><HR><DIV
2030CLASS="REFSECT2"
2031><A
Daniel Veillard60087f32001-10-10 09:45:09 +00002032NAME="AEN11879"
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002033></A
2034><H3
2035><A
2036NAME="XMLXPATHFREEOBJECT"
2037></A
2038>xmlXPathFreeObject ()</H3
2039><TABLE
2040BORDER="0"
2041BGCOLOR="#D6E8FF"
2042WIDTH="100%"
2043CELLPADDING="6"
2044><TR
2045><TD
2046><PRE
2047CLASS="PROGRAMLISTING"
2048>void xmlXPathFreeObject (<A
2049HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
2050>xmlXPathObjectPtr</A
2051> obj);</PRE
2052></TD
2053></TR
2054></TABLE
2055><P
2056>Free up an xmlXPathObjectPtr object.</P
2057><P
2058></P
2059><DIV
2060CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002061><A
Daniel Veillard60087f32001-10-10 09:45:09 +00002062NAME="AEN11886"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002063></A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002064><P
2065></P
2066><TABLE
2067BORDER="0"
2068WIDTH="100%"
2069BGCOLOR="#FFD0D0"
2070CELLSPACING="0"
2071CELLPADDING="4"
2072CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002073><TBODY
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002074><TR
2075><TD
2076WIDTH="20%"
2077ALIGN="RIGHT"
2078VALIGN="TOP"
2079><TT
2080CLASS="PARAMETER"
2081><I
2082>obj</I
2083></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002084>&nbsp;:</TD
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002085><TD
2086WIDTH="80%"
2087ALIGN="LEFT"
2088VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002089> the object to free</TD
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002090></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00002091></TBODY
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002092></TABLE
2093><P
2094></P
2095></DIV
2096></DIV
2097><HR><DIV
2098CLASS="REFSECT2"
2099><A
Daniel Veillard60087f32001-10-10 09:45:09 +00002100NAME="AEN11895"
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002101></A
2102><H3
2103><A
2104NAME="XMLXPATHNODESETCREATE"
2105></A
2106>xmlXPathNodeSetCreate ()</H3
2107><TABLE
2108BORDER="0"
2109BGCOLOR="#D6E8FF"
2110WIDTH="100%"
2111CELLPADDING="6"
2112><TR
2113><TD
2114><PRE
2115CLASS="PROGRAMLISTING"
2116><A
2117HREF="libxml-xpath.html#XMLNODESETPTR"
2118>xmlNodeSetPtr</A
2119> xmlXPathNodeSetCreate (<A
2120HREF="libxml-tree.html#XMLNODEPTR"
2121>xmlNodePtr</A
2122> val);</PRE
2123></TD
2124></TR
2125></TABLE
2126><P
2127>Create a new xmlNodeSetPtr of type double and of value <TT
2128CLASS="PARAMETER"
2129><I
2130>val</I
2131></TT
2132></P
2133><P
2134></P
2135><DIV
2136CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002137><A
Daniel Veillard60087f32001-10-10 09:45:09 +00002138NAME="AEN11904"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002139></A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002140><P
2141></P
2142><TABLE
2143BORDER="0"
2144WIDTH="100%"
2145BGCOLOR="#FFD0D0"
2146CELLSPACING="0"
2147CELLPADDING="4"
2148CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002149><TBODY
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002150><TR
2151><TD
2152WIDTH="20%"
2153ALIGN="RIGHT"
2154VALIGN="TOP"
2155><TT
2156CLASS="PARAMETER"
2157><I
2158>val</I
2159></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002160>&nbsp;:</TD
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002161><TD
2162WIDTH="80%"
2163ALIGN="LEFT"
2164VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002165> an initial xmlNodePtr, or NULL</TD
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002166></TR
2167><TR
2168><TD
2169WIDTH="20%"
2170ALIGN="RIGHT"
2171VALIGN="TOP"
2172><I
2173CLASS="EMPHASIS"
2174>Returns</I
2175> :</TD
2176><TD
2177WIDTH="80%"
2178ALIGN="LEFT"
2179VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002180>the newly created object.</TD
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002181></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00002182></TBODY
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002183></TABLE
2184><P
2185></P
2186></DIV
2187></DIV
2188><HR><DIV
2189CLASS="REFSECT2"
2190><A
Daniel Veillard60087f32001-10-10 09:45:09 +00002191NAME="AEN11917"
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002192></A
2193><H3
2194><A
2195NAME="XMLXPATHFREENODESETLIST"
2196></A
2197>xmlXPathFreeNodeSetList ()</H3
2198><TABLE
2199BORDER="0"
2200BGCOLOR="#D6E8FF"
2201WIDTH="100%"
2202CELLPADDING="6"
2203><TR
2204><TD
2205><PRE
2206CLASS="PROGRAMLISTING"
2207>void xmlXPathFreeNodeSetList (<A
2208HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
2209>xmlXPathObjectPtr</A
2210> obj);</PRE
2211></TD
2212></TR
2213></TABLE
2214><P
2215>Free up the xmlXPathObjectPtr <TT
2216CLASS="PARAMETER"
2217><I
2218>obj</I
2219></TT
2220> but don't deallocate the objects in
2221the list contrary to <A
2222HREF="libxml-xpath.html#XMLXPATHFREEOBJECT"
2223>xmlXPathFreeObject</A
2224>().</P
2225><P
2226></P
2227><DIV
2228CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002229><A
Daniel Veillard60087f32001-10-10 09:45:09 +00002230NAME="AEN11926"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002231></A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002232><P
2233></P
2234><TABLE
2235BORDER="0"
2236WIDTH="100%"
2237BGCOLOR="#FFD0D0"
2238CELLSPACING="0"
2239CELLPADDING="4"
2240CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002241><TBODY
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002242><TR
2243><TD
2244WIDTH="20%"
2245ALIGN="RIGHT"
2246VALIGN="TOP"
2247><TT
2248CLASS="PARAMETER"
2249><I
2250>obj</I
2251></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002252>&nbsp;:</TD
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002253><TD
2254WIDTH="80%"
2255ALIGN="LEFT"
2256VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002257> an existing NodeSetList object</TD
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002258></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00002259></TBODY
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002260></TABLE
2261><P
2262></P
2263></DIV
2264></DIV
2265><HR><DIV
2266CLASS="REFSECT2"
2267><A
Daniel Veillard60087f32001-10-10 09:45:09 +00002268NAME="AEN11935"
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002269></A
2270><H3
2271><A
2272NAME="XMLXPATHFREENODESET"
2273></A
2274>xmlXPathFreeNodeSet ()</H3
2275><TABLE
2276BORDER="0"
2277BGCOLOR="#D6E8FF"
2278WIDTH="100%"
2279CELLPADDING="6"
2280><TR
2281><TD
2282><PRE
2283CLASS="PROGRAMLISTING"
2284>void xmlXPathFreeNodeSet (<A
2285HREF="libxml-xpath.html#XMLNODESETPTR"
2286>xmlNodeSetPtr</A
2287> obj);</PRE
2288></TD
2289></TR
2290></TABLE
2291><P
2292>Free the NodeSet compound (not the actual nodes !).</P
2293><P
2294></P
2295><DIV
2296CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002297><A
Daniel Veillard60087f32001-10-10 09:45:09 +00002298NAME="AEN11942"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002299></A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002300><P
2301></P
2302><TABLE
2303BORDER="0"
2304WIDTH="100%"
2305BGCOLOR="#FFD0D0"
2306CELLSPACING="0"
2307CELLPADDING="4"
2308CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002309><TBODY
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002310><TR
2311><TD
2312WIDTH="20%"
2313ALIGN="RIGHT"
2314VALIGN="TOP"
2315><TT
2316CLASS="PARAMETER"
2317><I
2318>obj</I
2319></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002320>&nbsp;:</TD
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002321><TD
2322WIDTH="80%"
2323ALIGN="LEFT"
2324VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002325> the xmlNodeSetPtr to free</TD
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002326></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00002327></TBODY
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002328></TABLE
2329><P
2330></P
2331></DIV
2332></DIV
2333><HR><DIV
2334CLASS="REFSECT2"
2335><A
Daniel Veillard60087f32001-10-10 09:45:09 +00002336NAME="AEN11951"
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002337></A
2338><H3
2339><A
2340NAME="XMLXPATHOBJECTCOPY"
2341></A
2342>xmlXPathObjectCopy ()</H3
2343><TABLE
2344BORDER="0"
2345BGCOLOR="#D6E8FF"
2346WIDTH="100%"
2347CELLPADDING="6"
2348><TR
2349><TD
2350><PRE
2351CLASS="PROGRAMLISTING"
2352><A
2353HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
2354>xmlXPathObjectPtr</A
2355> xmlXPathObjectCopy (<A
2356HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
2357>xmlXPathObjectPtr</A
2358> val);</PRE
2359></TD
2360></TR
2361></TABLE
2362><P
2363>allocate a new copy of a given object</P
2364><P
2365></P
2366><DIV
2367CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002368><A
Daniel Veillard60087f32001-10-10 09:45:09 +00002369NAME="AEN11959"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002370></A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002371><P
2372></P
2373><TABLE
2374BORDER="0"
2375WIDTH="100%"
2376BGCOLOR="#FFD0D0"
2377CELLSPACING="0"
2378CELLPADDING="4"
2379CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002380><TBODY
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002381><TR
2382><TD
2383WIDTH="20%"
2384ALIGN="RIGHT"
2385VALIGN="TOP"
2386><TT
2387CLASS="PARAMETER"
2388><I
2389>val</I
2390></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002391>&nbsp;:</TD
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002392><TD
2393WIDTH="80%"
2394ALIGN="LEFT"
2395VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002396> the original object</TD
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002397></TR
2398><TR
2399><TD
2400WIDTH="20%"
2401ALIGN="RIGHT"
2402VALIGN="TOP"
2403><I
2404CLASS="EMPHASIS"
2405>Returns</I
2406> :</TD
2407><TD
2408WIDTH="80%"
2409ALIGN="LEFT"
2410VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002411>the newly created object.</TD
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002412></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00002413></TBODY
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002414></TABLE
2415><P
2416></P
2417></DIV
2418></DIV
2419><HR><DIV
2420CLASS="REFSECT2"
2421><A
Daniel Veillard60087f32001-10-10 09:45:09 +00002422NAME="AEN11972"
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002423></A
2424><H3
2425><A
2426NAME="XMLXPATHCMPNODES"
2427></A
2428>xmlXPathCmpNodes ()</H3
2429><TABLE
2430BORDER="0"
2431BGCOLOR="#D6E8FF"
2432WIDTH="100%"
2433CELLPADDING="6"
2434><TR
2435><TD
2436><PRE
2437CLASS="PROGRAMLISTING"
2438>int xmlXPathCmpNodes (<A
2439HREF="libxml-tree.html#XMLNODEPTR"
2440>xmlNodePtr</A
2441> node1,
2442 <A
2443HREF="libxml-tree.html#XMLNODEPTR"
2444>xmlNodePtr</A
2445> node2);</PRE
2446></TD
2447></TR
2448></TABLE
2449><P
2450>Compare two nodes w.r.t document order</P
2451><P
2452></P
2453><DIV
2454CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002455><A
Daniel Veillard60087f32001-10-10 09:45:09 +00002456NAME="AEN11980"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002457></A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002458><P
2459></P
2460><TABLE
2461BORDER="0"
2462WIDTH="100%"
2463BGCOLOR="#FFD0D0"
2464CELLSPACING="0"
2465CELLPADDING="4"
2466CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002467><TBODY
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002468><TR
2469><TD
2470WIDTH="20%"
2471ALIGN="RIGHT"
2472VALIGN="TOP"
2473><TT
2474CLASS="PARAMETER"
2475><I
2476>node1</I
2477></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002478>&nbsp;:</TD
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002479><TD
2480WIDTH="80%"
2481ALIGN="LEFT"
2482VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002483> the first node</TD
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002484></TR
2485><TR
2486><TD
2487WIDTH="20%"
2488ALIGN="RIGHT"
2489VALIGN="TOP"
2490><TT
2491CLASS="PARAMETER"
2492><I
2493>node2</I
2494></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00002495>&nbsp;:</TD
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002496><TD
2497WIDTH="80%"
2498ALIGN="LEFT"
2499VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002500> the second node</TD
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002501></TR
2502><TR
2503><TD
2504WIDTH="20%"
2505ALIGN="RIGHT"
2506VALIGN="TOP"
2507><I
2508CLASS="EMPHASIS"
2509>Returns</I
2510> :</TD
2511><TD
2512WIDTH="80%"
2513ALIGN="LEFT"
2514VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002515>-2 in case of error 1 if first point &lt; second point, 0 if
2516that's the same node, -1 otherwise</TD
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002517></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00002518></TBODY
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00002519></TABLE
2520><P
2521></P
2522></DIV
2523></DIV
2524><HR><DIV
2525CLASS="REFSECT2"
2526><A
Daniel Veillard60087f32001-10-10 09:45:09 +00002527NAME="AEN11997"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002528></A
2529><H3
2530><A
2531NAME="XMLXPATHCASTNUMBERTOBOOLEAN"
2532></A
2533>xmlXPathCastNumberToBoolean ()</H3
2534><TABLE
2535BORDER="0"
2536BGCOLOR="#D6E8FF"
2537WIDTH="100%"
2538CELLPADDING="6"
2539><TR
2540><TD
2541><PRE
2542CLASS="PROGRAMLISTING"
2543>int xmlXPathCastNumberToBoolean (<GTKDOCLINK
2544HREF="DOUBLE"
2545>double</GTKDOCLINK
2546> val);</PRE
2547></TD
2548></TR
2549></TABLE
2550><P
2551>Converts a number to its boolean value</P
2552><P
2553></P
2554><DIV
2555CLASS="INFORMALTABLE"
2556><A
Daniel Veillard60087f32001-10-10 09:45:09 +00002557NAME="AEN12004"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002558></A
2559><P
2560></P
2561><TABLE
2562BORDER="0"
2563WIDTH="100%"
2564BGCOLOR="#FFD0D0"
2565CELLSPACING="0"
2566CELLPADDING="4"
2567CLASS="CALSTABLE"
2568><TBODY
2569><TR
2570><TD
2571WIDTH="20%"
2572ALIGN="RIGHT"
2573VALIGN="TOP"
2574><TT
2575CLASS="PARAMETER"
2576><I
2577>val</I
2578></TT
2579>&nbsp;:</TD
2580><TD
2581WIDTH="80%"
2582ALIGN="LEFT"
2583VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002584> a number</TD
Daniel Veillardbed7b052001-05-19 14:59:49 +00002585></TR
2586><TR
2587><TD
2588WIDTH="20%"
2589ALIGN="RIGHT"
2590VALIGN="TOP"
2591><I
2592CLASS="EMPHASIS"
2593>Returns</I
2594> :</TD
2595><TD
2596WIDTH="80%"
2597ALIGN="LEFT"
2598VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002599>the boolean value</TD
Daniel Veillardbed7b052001-05-19 14:59:49 +00002600></TR
2601></TBODY
2602></TABLE
2603><P
2604></P
2605></DIV
2606></DIV
2607><HR><DIV
2608CLASS="REFSECT2"
2609><A
Daniel Veillard60087f32001-10-10 09:45:09 +00002610NAME="AEN12017"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002611></A
2612><H3
2613><A
2614NAME="XMLXPATHCASTSTRINGTOBOOLEAN"
2615></A
2616>xmlXPathCastStringToBoolean ()</H3
2617><TABLE
2618BORDER="0"
2619BGCOLOR="#D6E8FF"
2620WIDTH="100%"
2621CELLPADDING="6"
2622><TR
2623><TD
2624><PRE
2625CLASS="PROGRAMLISTING"
2626>int xmlXPathCastStringToBoolean (const <A
2627HREF="libxml-tree.html#XMLCHAR"
2628>xmlChar</A
2629> *val);</PRE
2630></TD
2631></TR
2632></TABLE
2633><P
2634>Converts a string to its boolean value</P
2635><P
2636></P
2637><DIV
2638CLASS="INFORMALTABLE"
2639><A
Daniel Veillard60087f32001-10-10 09:45:09 +00002640NAME="AEN12024"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002641></A
2642><P
2643></P
2644><TABLE
2645BORDER="0"
2646WIDTH="100%"
2647BGCOLOR="#FFD0D0"
2648CELLSPACING="0"
2649CELLPADDING="4"
2650CLASS="CALSTABLE"
2651><TBODY
2652><TR
2653><TD
2654WIDTH="20%"
2655ALIGN="RIGHT"
2656VALIGN="TOP"
2657><TT
2658CLASS="PARAMETER"
2659><I
2660>val</I
2661></TT
2662>&nbsp;:</TD
2663><TD
2664WIDTH="80%"
2665ALIGN="LEFT"
2666VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002667> a string</TD
Daniel Veillardbed7b052001-05-19 14:59:49 +00002668></TR
2669><TR
2670><TD
2671WIDTH="20%"
2672ALIGN="RIGHT"
2673VALIGN="TOP"
2674><I
2675CLASS="EMPHASIS"
2676>Returns</I
2677> :</TD
2678><TD
2679WIDTH="80%"
2680ALIGN="LEFT"
2681VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002682>the boolean value</TD
Daniel Veillardbed7b052001-05-19 14:59:49 +00002683></TR
2684></TBODY
2685></TABLE
2686><P
2687></P
2688></DIV
2689></DIV
2690><HR><DIV
2691CLASS="REFSECT2"
2692><A
Daniel Veillard60087f32001-10-10 09:45:09 +00002693NAME="AEN12037"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002694></A
2695><H3
2696><A
2697NAME="XMLXPATHCASTNODESETTOBOOLEAN"
2698></A
2699>xmlXPathCastNodeSetToBoolean ()</H3
2700><TABLE
2701BORDER="0"
2702BGCOLOR="#D6E8FF"
2703WIDTH="100%"
2704CELLPADDING="6"
2705><TR
2706><TD
2707><PRE
2708CLASS="PROGRAMLISTING"
2709>int xmlXPathCastNodeSetToBoolean (<A
2710HREF="libxml-xpath.html#XMLNODESETPTR"
2711>xmlNodeSetPtr</A
2712> ns);</PRE
2713></TD
2714></TR
2715></TABLE
2716><P
2717>Converts a node-set to its boolean value</P
2718><P
2719></P
2720><DIV
2721CLASS="INFORMALTABLE"
2722><A
Daniel Veillard60087f32001-10-10 09:45:09 +00002723NAME="AEN12044"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002724></A
2725><P
2726></P
2727><TABLE
2728BORDER="0"
2729WIDTH="100%"
2730BGCOLOR="#FFD0D0"
2731CELLSPACING="0"
2732CELLPADDING="4"
2733CLASS="CALSTABLE"
2734><TBODY
2735><TR
2736><TD
2737WIDTH="20%"
2738ALIGN="RIGHT"
2739VALIGN="TOP"
2740><TT
2741CLASS="PARAMETER"
2742><I
2743>ns</I
2744></TT
2745>&nbsp;:</TD
2746><TD
2747WIDTH="80%"
2748ALIGN="LEFT"
2749VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002750> a node-set</TD
Daniel Veillardbed7b052001-05-19 14:59:49 +00002751></TR
2752><TR
2753><TD
2754WIDTH="20%"
2755ALIGN="RIGHT"
2756VALIGN="TOP"
2757><I
2758CLASS="EMPHASIS"
2759>Returns</I
2760> :</TD
2761><TD
2762WIDTH="80%"
2763ALIGN="LEFT"
2764VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002765>the boolean value</TD
Daniel Veillardbed7b052001-05-19 14:59:49 +00002766></TR
2767></TBODY
2768></TABLE
2769><P
2770></P
2771></DIV
2772></DIV
2773><HR><DIV
2774CLASS="REFSECT2"
2775><A
Daniel Veillard60087f32001-10-10 09:45:09 +00002776NAME="AEN12057"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002777></A
2778><H3
2779><A
2780NAME="XMLXPATHCASTTOBOOLEAN"
2781></A
2782>xmlXPathCastToBoolean ()</H3
2783><TABLE
2784BORDER="0"
2785BGCOLOR="#D6E8FF"
2786WIDTH="100%"
2787CELLPADDING="6"
2788><TR
2789><TD
2790><PRE
2791CLASS="PROGRAMLISTING"
2792>int xmlXPathCastToBoolean (<A
2793HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
2794>xmlXPathObjectPtr</A
2795> val);</PRE
2796></TD
2797></TR
2798></TABLE
2799><P
Daniel Veillardf012a642001-07-23 19:10:52 +00002800>Converts an XPath object to its boolean value</P
2801><P
Daniel Veillardbed7b052001-05-19 14:59:49 +00002802></P
2803><DIV
2804CLASS="INFORMALTABLE"
2805><A
Daniel Veillard60087f32001-10-10 09:45:09 +00002806NAME="AEN12064"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002807></A
2808><P
2809></P
2810><TABLE
2811BORDER="0"
2812WIDTH="100%"
2813BGCOLOR="#FFD0D0"
2814CELLSPACING="0"
2815CELLPADDING="4"
2816CLASS="CALSTABLE"
2817><TBODY
2818><TR
2819><TD
2820WIDTH="20%"
2821ALIGN="RIGHT"
2822VALIGN="TOP"
2823><TT
2824CLASS="PARAMETER"
2825><I
2826>val</I
2827></TT
2828>&nbsp;:</TD
2829><TD
2830WIDTH="80%"
2831ALIGN="LEFT"
2832VALIGN="TOP"
Daniel Veillardf012a642001-07-23 19:10:52 +00002833> an XPath object</TD
Daniel Veillardbed7b052001-05-19 14:59:49 +00002834></TR
2835><TR
2836><TD
2837WIDTH="20%"
2838ALIGN="RIGHT"
2839VALIGN="TOP"
2840><I
2841CLASS="EMPHASIS"
2842>Returns</I
2843> :</TD
2844><TD
2845WIDTH="80%"
2846ALIGN="LEFT"
2847VALIGN="TOP"
Daniel Veillardf012a642001-07-23 19:10:52 +00002848>the boolean value</TD
Daniel Veillardbed7b052001-05-19 14:59:49 +00002849></TR
2850></TBODY
2851></TABLE
2852><P
2853></P
2854></DIV
2855></DIV
2856><HR><DIV
2857CLASS="REFSECT2"
2858><A
Daniel Veillard60087f32001-10-10 09:45:09 +00002859NAME="AEN12077"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002860></A
2861><H3
2862><A
2863NAME="XMLXPATHCASTBOOLEANTONUMBER"
2864></A
2865>xmlXPathCastBooleanToNumber ()</H3
2866><TABLE
2867BORDER="0"
2868BGCOLOR="#D6E8FF"
2869WIDTH="100%"
2870CELLPADDING="6"
2871><TR
2872><TD
2873><PRE
2874CLASS="PROGRAMLISTING"
2875><GTKDOCLINK
2876HREF="DOUBLE"
2877>double</GTKDOCLINK
2878> xmlXPathCastBooleanToNumber (int val);</PRE
2879></TD
2880></TR
2881></TABLE
2882><P
2883>Converts a boolean to its number value</P
2884><P
2885></P
2886><DIV
2887CLASS="INFORMALTABLE"
2888><A
Daniel Veillard60087f32001-10-10 09:45:09 +00002889NAME="AEN12084"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002890></A
2891><P
2892></P
2893><TABLE
2894BORDER="0"
2895WIDTH="100%"
2896BGCOLOR="#FFD0D0"
2897CELLSPACING="0"
2898CELLPADDING="4"
2899CLASS="CALSTABLE"
2900><TBODY
2901><TR
2902><TD
2903WIDTH="20%"
2904ALIGN="RIGHT"
2905VALIGN="TOP"
2906><TT
2907CLASS="PARAMETER"
2908><I
2909>val</I
2910></TT
2911>&nbsp;:</TD
2912><TD
2913WIDTH="80%"
2914ALIGN="LEFT"
2915VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002916> a boolean</TD
Daniel Veillardbed7b052001-05-19 14:59:49 +00002917></TR
2918><TR
2919><TD
2920WIDTH="20%"
2921ALIGN="RIGHT"
2922VALIGN="TOP"
2923><I
2924CLASS="EMPHASIS"
2925>Returns</I
2926> :</TD
2927><TD
2928WIDTH="80%"
2929ALIGN="LEFT"
2930VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00002931>the number value</TD
Daniel Veillardbed7b052001-05-19 14:59:49 +00002932></TR
2933></TBODY
2934></TABLE
2935><P
2936></P
2937></DIV
2938></DIV
2939><HR><DIV
2940CLASS="REFSECT2"
2941><A
Daniel Veillard60087f32001-10-10 09:45:09 +00002942NAME="AEN12097"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002943></A
2944><H3
2945><A
2946NAME="XMLXPATHCASTSTRINGTONUMBER"
2947></A
2948>xmlXPathCastStringToNumber ()</H3
2949><TABLE
2950BORDER="0"
2951BGCOLOR="#D6E8FF"
2952WIDTH="100%"
2953CELLPADDING="6"
2954><TR
2955><TD
2956><PRE
2957CLASS="PROGRAMLISTING"
2958><GTKDOCLINK
2959HREF="DOUBLE"
2960>double</GTKDOCLINK
2961> xmlXPathCastStringToNumber (const <A
2962HREF="libxml-tree.html#XMLCHAR"
2963>xmlChar</A
2964> *val);</PRE
2965></TD
2966></TR
2967></TABLE
2968><P
2969>Converts a string to its number value</P
2970><P
2971></P
2972><DIV
2973CLASS="INFORMALTABLE"
2974><A
Daniel Veillard60087f32001-10-10 09:45:09 +00002975NAME="AEN12105"
Daniel Veillardbed7b052001-05-19 14:59:49 +00002976></A
2977><P
2978></P
2979><TABLE
2980BORDER="0"
2981WIDTH="100%"
2982BGCOLOR="#FFD0D0"
2983CELLSPACING="0"
2984CELLPADDING="4"
2985CLASS="CALSTABLE"
2986><TBODY
2987><TR
2988><TD
2989WIDTH="20%"
2990ALIGN="RIGHT"
2991VALIGN="TOP"
2992><TT
2993CLASS="PARAMETER"
2994><I
2995>val</I
2996></TT
2997>&nbsp;:</TD
2998><TD
2999WIDTH="80%"
3000ALIGN="LEFT"
3001VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00003002> a string</TD
Daniel Veillardbed7b052001-05-19 14:59:49 +00003003></TR
3004><TR
3005><TD
3006WIDTH="20%"
3007ALIGN="RIGHT"
3008VALIGN="TOP"
3009><I
3010CLASS="EMPHASIS"
3011>Returns</I
3012> :</TD
3013><TD
3014WIDTH="80%"
3015ALIGN="LEFT"
3016VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00003017>the number value</TD
Daniel Veillardbed7b052001-05-19 14:59:49 +00003018></TR
3019></TBODY
3020></TABLE
3021><P
3022></P
3023></DIV
3024></DIV
3025><HR><DIV
3026CLASS="REFSECT2"
3027><A
Daniel Veillard60087f32001-10-10 09:45:09 +00003028NAME="AEN12118"
Daniel Veillardbed7b052001-05-19 14:59:49 +00003029></A
3030><H3
3031><A
3032NAME="XMLXPATHCASTNODETONUMBER"
3033></A
3034>xmlXPathCastNodeToNumber ()</H3
3035><TABLE
3036BORDER="0"
3037BGCOLOR="#D6E8FF"
3038WIDTH="100%"
3039CELLPADDING="6"
3040><TR
3041><TD
3042><PRE
3043CLASS="PROGRAMLISTING"
3044><GTKDOCLINK
3045HREF="DOUBLE"
3046>double</GTKDOCLINK
3047> xmlXPathCastNodeToNumber (<A
3048HREF="libxml-tree.html#XMLNODEPTR"
3049>xmlNodePtr</A
3050> node);</PRE
3051></TD
3052></TR
3053></TABLE
3054><P
3055>Converts a node to its number value</P
3056><P
3057></P
3058><DIV
3059CLASS="INFORMALTABLE"
3060><A
Daniel Veillard60087f32001-10-10 09:45:09 +00003061NAME="AEN12126"
Daniel Veillardbed7b052001-05-19 14:59:49 +00003062></A
3063><P
3064></P
3065><TABLE
3066BORDER="0"
3067WIDTH="100%"
3068BGCOLOR="#FFD0D0"
3069CELLSPACING="0"
3070CELLPADDING="4"
3071CLASS="CALSTABLE"
3072><TBODY
3073><TR
3074><TD
3075WIDTH="20%"
3076ALIGN="RIGHT"
3077VALIGN="TOP"
3078><TT
3079CLASS="PARAMETER"
3080><I
3081>node</I
3082></TT
3083>&nbsp;:</TD
3084><TD
3085WIDTH="80%"
3086ALIGN="LEFT"
3087VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00003088> a node</TD
Daniel Veillardbed7b052001-05-19 14:59:49 +00003089></TR
3090><TR
3091><TD
3092WIDTH="20%"
3093ALIGN="RIGHT"
3094VALIGN="TOP"
3095><I
3096CLASS="EMPHASIS"
3097>Returns</I
3098> :</TD
3099><TD
3100WIDTH="80%"
3101ALIGN="LEFT"
3102VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00003103>the number value</TD
Daniel Veillardbed7b052001-05-19 14:59:49 +00003104></TR
3105></TBODY
3106></TABLE
3107><P
3108></P
3109></DIV
3110></DIV
3111><HR><DIV
3112CLASS="REFSECT2"
3113><A
Daniel Veillard60087f32001-10-10 09:45:09 +00003114NAME="AEN12139"
Daniel Veillardbed7b052001-05-19 14:59:49 +00003115></A
3116><H3
3117><A
3118NAME="XMLXPATHCASTNODESETTONUMBER"
3119></A
3120>xmlXPathCastNodeSetToNumber ()</H3
3121><TABLE
3122BORDER="0"
3123BGCOLOR="#D6E8FF"
3124WIDTH="100%"
3125CELLPADDING="6"
3126><TR
3127><TD
3128><PRE
3129CLASS="PROGRAMLISTING"
3130><GTKDOCLINK
3131HREF="DOUBLE"
3132>double</GTKDOCLINK
3133> xmlXPathCastNodeSetToNumber (<A
3134HREF="libxml-xpath.html#XMLNODESETPTR"
3135>xmlNodeSetPtr</A
3136> ns);</PRE
3137></TD
3138></TR
3139></TABLE
3140><P
3141>Converts a node-set to its number value</P
3142><P
3143></P
3144><DIV
3145CLASS="INFORMALTABLE"
3146><A
Daniel Veillard60087f32001-10-10 09:45:09 +00003147NAME="AEN12147"
Daniel Veillardbed7b052001-05-19 14:59:49 +00003148></A
3149><P
3150></P
3151><TABLE
3152BORDER="0"
3153WIDTH="100%"
3154BGCOLOR="#FFD0D0"
3155CELLSPACING="0"
3156CELLPADDING="4"
3157CLASS="CALSTABLE"
3158><TBODY
3159><TR
3160><TD
3161WIDTH="20%"
3162ALIGN="RIGHT"
3163VALIGN="TOP"
3164><TT
3165CLASS="PARAMETER"
3166><I
3167>ns</I
3168></TT
3169>&nbsp;:</TD
3170><TD
3171WIDTH="80%"
3172ALIGN="LEFT"
3173VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00003174> a node-set</TD
Daniel Veillardbed7b052001-05-19 14:59:49 +00003175></TR
3176><TR
3177><TD
3178WIDTH="20%"
3179ALIGN="RIGHT"
3180VALIGN="TOP"
3181><I
3182CLASS="EMPHASIS"
3183>Returns</I
3184> :</TD
3185><TD
3186WIDTH="80%"
3187ALIGN="LEFT"
3188VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00003189>the number value</TD
Daniel Veillardbed7b052001-05-19 14:59:49 +00003190></TR
3191></TBODY
3192></TABLE
3193><P
3194></P
3195></DIV
3196></DIV
3197><HR><DIV
3198CLASS="REFSECT2"
3199><A
Daniel Veillard60087f32001-10-10 09:45:09 +00003200NAME="AEN12160"
Daniel Veillardbed7b052001-05-19 14:59:49 +00003201></A
3202><H3
3203><A
3204NAME="XMLXPATHCASTTONUMBER"
3205></A
3206>xmlXPathCastToNumber ()</H3
3207><TABLE
3208BORDER="0"
3209BGCOLOR="#D6E8FF"
3210WIDTH="100%"
3211CELLPADDING="6"
3212><TR
3213><TD
3214><PRE
3215CLASS="PROGRAMLISTING"
3216><GTKDOCLINK
3217HREF="DOUBLE"
3218>double</GTKDOCLINK
3219> xmlXPathCastToNumber (<A
3220HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
3221>xmlXPathObjectPtr</A
3222> val);</PRE
3223></TD
3224></TR
3225></TABLE
3226><P
3227>Converts an XPath object to its number value</P
3228><P
3229></P
3230><DIV
3231CLASS="INFORMALTABLE"
3232><A
Daniel Veillard60087f32001-10-10 09:45:09 +00003233NAME="AEN12168"
Daniel Veillardbed7b052001-05-19 14:59:49 +00003234></A
3235><P
3236></P
3237><TABLE
3238BORDER="0"
3239WIDTH="100%"
3240BGCOLOR="#FFD0D0"
3241CELLSPACING="0"
3242CELLPADDING="4"
3243CLASS="CALSTABLE"
3244><TBODY
3245><TR
3246><TD
3247WIDTH="20%"
3248ALIGN="RIGHT"
3249VALIGN="TOP"
3250><TT
3251CLASS="PARAMETER"
3252><I
3253>val</I
3254></TT
3255>&nbsp;:</TD
3256><TD
3257WIDTH="80%"
3258ALIGN="LEFT"
3259VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00003260> an XPath object</TD
Daniel Veillardbed7b052001-05-19 14:59:49 +00003261></TR
3262><TR
3263><TD
3264WIDTH="20%"
3265ALIGN="RIGHT"
3266VALIGN="TOP"
3267><I
3268CLASS="EMPHASIS"
3269>Returns</I
3270> :</TD
3271><TD
3272WIDTH="80%"
3273ALIGN="LEFT"
3274VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00003275>the number value</TD
Daniel Veillardbed7b052001-05-19 14:59:49 +00003276></TR
3277></TBODY
3278></TABLE
3279><P
3280></P
3281></DIV
3282></DIV
3283><HR><DIV
3284CLASS="REFSECT2"
3285><A
Daniel Veillard60087f32001-10-10 09:45:09 +00003286NAME="AEN12181"
Daniel Veillardbed7b052001-05-19 14:59:49 +00003287></A
3288><H3
3289><A
3290NAME="XMLXPATHCASTBOOLEANTOSTRING"
3291></A
3292>xmlXPathCastBooleanToString ()</H3
3293><TABLE
3294BORDER="0"
3295BGCOLOR="#D6E8FF"
3296WIDTH="100%"
3297CELLPADDING="6"
3298><TR
3299><TD
3300><PRE
3301CLASS="PROGRAMLISTING"
3302><A
3303HREF="libxml-tree.html#XMLCHAR"
3304>xmlChar</A
3305>* xmlXPathCastBooleanToString (int val);</PRE
3306></TD
3307></TR
3308></TABLE
3309><P
3310>Converts a boolean to its string value.</P
3311><P
3312></P
3313><DIV
3314CLASS="INFORMALTABLE"
3315><A
Daniel Veillard60087f32001-10-10 09:45:09 +00003316NAME="AEN12188"
Daniel Veillardbed7b052001-05-19 14:59:49 +00003317></A
3318><P
3319></P
3320><TABLE
3321BORDER="0"
3322WIDTH="100%"
3323BGCOLOR="#FFD0D0"
3324CELLSPACING="0"
3325CELLPADDING="4"
3326CLASS="CALSTABLE"
3327><TBODY
3328><TR
3329><TD
3330WIDTH="20%"
3331ALIGN="RIGHT"
3332VALIGN="TOP"
3333><TT
3334CLASS="PARAMETER"
3335><I
3336>val</I
3337></TT
3338>&nbsp;:</TD
3339><TD
3340WIDTH="80%"
3341ALIGN="LEFT"
3342VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00003343> a boolean</TD
Daniel Veillardbed7b052001-05-19 14:59:49 +00003344></TR
3345><TR
3346><TD
3347WIDTH="20%"
3348ALIGN="RIGHT"
3349VALIGN="TOP"
3350><I
3351CLASS="EMPHASIS"
3352>Returns</I
3353> :</TD
3354><TD
3355WIDTH="80%"
3356ALIGN="LEFT"
3357VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00003358>a newly allocated string.</TD
Daniel Veillardbed7b052001-05-19 14:59:49 +00003359></TR
3360></TBODY
3361></TABLE
3362><P
3363></P
3364></DIV
3365></DIV
3366><HR><DIV
3367CLASS="REFSECT2"
3368><A
Daniel Veillard60087f32001-10-10 09:45:09 +00003369NAME="AEN12201"
Daniel Veillardbed7b052001-05-19 14:59:49 +00003370></A
3371><H3
3372><A
3373NAME="XMLXPATHCASTNUMBERTOSTRING"
3374></A
3375>xmlXPathCastNumberToString ()</H3
3376><TABLE
3377BORDER="0"
3378BGCOLOR="#D6E8FF"
3379WIDTH="100%"
3380CELLPADDING="6"
3381><TR
3382><TD
3383><PRE
3384CLASS="PROGRAMLISTING"
3385><A
3386HREF="libxml-tree.html#XMLCHAR"
3387>xmlChar</A
3388>* xmlXPathCastNumberToString (<GTKDOCLINK
3389HREF="DOUBLE"
3390>double</GTKDOCLINK
3391> val);</PRE
3392></TD
3393></TR
3394></TABLE
3395><P
3396>Converts a number to its string value.</P
3397><P
3398></P
3399><DIV
3400CLASS="INFORMALTABLE"
3401><A
Daniel Veillard60087f32001-10-10 09:45:09 +00003402NAME="AEN12209"
Daniel Veillardbed7b052001-05-19 14:59:49 +00003403></A
3404><P
3405></P
3406><TABLE
3407BORDER="0"
3408WIDTH="100%"
3409BGCOLOR="#FFD0D0"
3410CELLSPACING="0"
3411CELLPADDING="4"
3412CLASS="CALSTABLE"
3413><TBODY
3414><TR
3415><TD
3416WIDTH="20%"
3417ALIGN="RIGHT"
3418VALIGN="TOP"
3419><TT
3420CLASS="PARAMETER"
3421><I
3422>val</I
3423></TT
3424>&nbsp;:</TD
3425><TD
3426WIDTH="80%"
3427ALIGN="LEFT"
3428VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00003429> a number</TD
Daniel Veillardbed7b052001-05-19 14:59:49 +00003430></TR
3431><TR
3432><TD
3433WIDTH="20%"
3434ALIGN="RIGHT"
3435VALIGN="TOP"
3436><I
3437CLASS="EMPHASIS"
3438>Returns</I
3439> :</TD
3440><TD
3441WIDTH="80%"
3442ALIGN="LEFT"
3443VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00003444>a newly allocated string.</TD
Daniel Veillardbed7b052001-05-19 14:59:49 +00003445></TR
3446></TBODY
3447></TABLE
3448><P
3449></P
3450></DIV
3451></DIV
3452><HR><DIV
3453CLASS="REFSECT2"
3454><A
Daniel Veillard60087f32001-10-10 09:45:09 +00003455NAME="AEN12222"
Daniel Veillardbed7b052001-05-19 14:59:49 +00003456></A
3457><H3
3458><A
3459NAME="XMLXPATHCASTNODETOSTRING"
3460></A
3461>xmlXPathCastNodeToString ()</H3
3462><TABLE
3463BORDER="0"
3464BGCOLOR="#D6E8FF"
3465WIDTH="100%"
3466CELLPADDING="6"
3467><TR
3468><TD
3469><PRE
3470CLASS="PROGRAMLISTING"
3471><A
3472HREF="libxml-tree.html#XMLCHAR"
3473>xmlChar</A
3474>* xmlXPathCastNodeToString (<A
3475HREF="libxml-tree.html#XMLNODEPTR"
3476>xmlNodePtr</A
3477> node);</PRE
3478></TD
3479></TR
3480></TABLE
3481><P
3482>Converts a node to its string value.</P
3483><P
3484></P
3485><DIV
3486CLASS="INFORMALTABLE"
3487><A
Daniel Veillard60087f32001-10-10 09:45:09 +00003488NAME="AEN12230"
Daniel Veillardbed7b052001-05-19 14:59:49 +00003489></A
3490><P
3491></P
3492><TABLE
3493BORDER="0"
3494WIDTH="100%"
3495BGCOLOR="#FFD0D0"
3496CELLSPACING="0"
3497CELLPADDING="4"
3498CLASS="CALSTABLE"
3499><TBODY
3500><TR
3501><TD
3502WIDTH="20%"
3503ALIGN="RIGHT"
3504VALIGN="TOP"
3505><TT
3506CLASS="PARAMETER"
3507><I
3508>node</I
3509></TT
3510>&nbsp;:</TD
3511><TD
3512WIDTH="80%"
3513ALIGN="LEFT"
3514VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00003515> a node</TD
Daniel Veillardbed7b052001-05-19 14:59:49 +00003516></TR
3517><TR
3518><TD
3519WIDTH="20%"
3520ALIGN="RIGHT"
3521VALIGN="TOP"
3522><I
3523CLASS="EMPHASIS"
3524>Returns</I
3525> :</TD
3526><TD
3527WIDTH="80%"
3528ALIGN="LEFT"
3529VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00003530>a newly allocated string.</TD
Daniel Veillardbed7b052001-05-19 14:59:49 +00003531></TR
3532></TBODY
3533></TABLE
3534><P
3535></P
3536></DIV
3537></DIV
3538><HR><DIV
3539CLASS="REFSECT2"
3540><A
Daniel Veillard60087f32001-10-10 09:45:09 +00003541NAME="AEN12243"
Daniel Veillardbed7b052001-05-19 14:59:49 +00003542></A
3543><H3
3544><A
3545NAME="XMLXPATHCASTNODESETTOSTRING"
3546></A
3547>xmlXPathCastNodeSetToString ()</H3
3548><TABLE
3549BORDER="0"
3550BGCOLOR="#D6E8FF"
3551WIDTH="100%"
3552CELLPADDING="6"
3553><TR
3554><TD
3555><PRE
3556CLASS="PROGRAMLISTING"
3557><A
3558HREF="libxml-tree.html#XMLCHAR"
3559>xmlChar</A
3560>* xmlXPathCastNodeSetToString (<A
3561HREF="libxml-xpath.html#XMLNODESETPTR"
3562>xmlNodeSetPtr</A
3563> ns);</PRE
3564></TD
3565></TR
3566></TABLE
3567><P
3568>Converts a node-set to its string value.</P
3569><P
3570></P
3571><DIV
3572CLASS="INFORMALTABLE"
3573><A
Daniel Veillard60087f32001-10-10 09:45:09 +00003574NAME="AEN12251"
Daniel Veillardbed7b052001-05-19 14:59:49 +00003575></A
3576><P
3577></P
3578><TABLE
3579BORDER="0"
3580WIDTH="100%"
3581BGCOLOR="#FFD0D0"
3582CELLSPACING="0"
3583CELLPADDING="4"
3584CLASS="CALSTABLE"
3585><TBODY
3586><TR
3587><TD
3588WIDTH="20%"
3589ALIGN="RIGHT"
3590VALIGN="TOP"
3591><TT
3592CLASS="PARAMETER"
3593><I
3594>ns</I
3595></TT
3596>&nbsp;:</TD
3597><TD
3598WIDTH="80%"
3599ALIGN="LEFT"
3600VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00003601> a node-set</TD
Daniel Veillardbed7b052001-05-19 14:59:49 +00003602></TR
3603><TR
3604><TD
3605WIDTH="20%"
3606ALIGN="RIGHT"
3607VALIGN="TOP"
3608><I
3609CLASS="EMPHASIS"
3610>Returns</I
3611> :</TD
3612><TD
3613WIDTH="80%"
3614ALIGN="LEFT"
3615VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00003616>a newly allocated string.</TD
Daniel Veillardbed7b052001-05-19 14:59:49 +00003617></TR
3618></TBODY
3619></TABLE
3620><P
3621></P
3622></DIV
3623></DIV
3624><HR><DIV
3625CLASS="REFSECT2"
3626><A
Daniel Veillard60087f32001-10-10 09:45:09 +00003627NAME="AEN12264"
Daniel Veillardbed7b052001-05-19 14:59:49 +00003628></A
3629><H3
3630><A
3631NAME="XMLXPATHCASTTOSTRING"
3632></A
3633>xmlXPathCastToString ()</H3
3634><TABLE
3635BORDER="0"
3636BGCOLOR="#D6E8FF"
3637WIDTH="100%"
3638CELLPADDING="6"
3639><TR
3640><TD
3641><PRE
3642CLASS="PROGRAMLISTING"
3643><A
3644HREF="libxml-tree.html#XMLCHAR"
3645>xmlChar</A
3646>* xmlXPathCastToString (<A
3647HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
3648>xmlXPathObjectPtr</A
3649> val);</PRE
3650></TD
3651></TR
3652></TABLE
3653><P
3654>Converts an existing object to its <GTKDOCLINK
3655HREF="STRING"
3656>string</GTKDOCLINK
3657>() equivalent</P
3658><P
3659></P
3660><DIV
3661CLASS="INFORMALTABLE"
3662><A
Daniel Veillard60087f32001-10-10 09:45:09 +00003663NAME="AEN12273"
Daniel Veillardbed7b052001-05-19 14:59:49 +00003664></A
3665><P
3666></P
3667><TABLE
3668BORDER="0"
3669WIDTH="100%"
3670BGCOLOR="#FFD0D0"
3671CELLSPACING="0"
3672CELLPADDING="4"
3673CLASS="CALSTABLE"
3674><TBODY
3675><TR
3676><TD
3677WIDTH="20%"
3678ALIGN="RIGHT"
3679VALIGN="TOP"
3680><TT
3681CLASS="PARAMETER"
3682><I
3683>val</I
3684></TT
3685>&nbsp;:</TD
3686><TD
3687WIDTH="80%"
3688ALIGN="LEFT"
3689VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00003690> an XPath object</TD
Daniel Veillardbed7b052001-05-19 14:59:49 +00003691></TR
3692><TR
3693><TD
3694WIDTH="20%"
3695ALIGN="RIGHT"
3696VALIGN="TOP"
3697><I
3698CLASS="EMPHASIS"
3699>Returns</I
3700> :</TD
3701><TD
3702WIDTH="80%"
3703ALIGN="LEFT"
3704VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00003705>the string value of the object, NULL in case of error.
3706A new string is allocated only if needed (val isn't a
3707string object).</TD
Daniel Veillardbed7b052001-05-19 14:59:49 +00003708></TR
3709></TBODY
3710></TABLE
3711><P
3712></P
3713></DIV
3714></DIV
3715><HR><DIV
3716CLASS="REFSECT2"
3717><A
Daniel Veillard60087f32001-10-10 09:45:09 +00003718NAME="AEN12286"
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00003719></A
3720><H3
3721><A
Daniel Veillard4b8328d2001-07-05 22:48:42 +00003722NAME="XMLXPATHCONVERTBOOLEAN"
3723></A
3724>xmlXPathConvertBoolean ()</H3
3725><TABLE
3726BORDER="0"
3727BGCOLOR="#D6E8FF"
3728WIDTH="100%"
3729CELLPADDING="6"
3730><TR
3731><TD
3732><PRE
3733CLASS="PROGRAMLISTING"
3734><A
3735HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
3736>xmlXPathObjectPtr</A
3737> xmlXPathConvertBoolean (<A
3738HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
3739>xmlXPathObjectPtr</A
3740> val);</PRE
3741></TD
3742></TR
3743></TABLE
3744><P
3745>Converts an existing object to its <GTKDOCLINK
3746HREF="BOOLEAN"
3747>boolean</GTKDOCLINK
3748>() equivalent</P
3749><P
3750></P
3751><DIV
3752CLASS="INFORMALTABLE"
3753><A
Daniel Veillard60087f32001-10-10 09:45:09 +00003754NAME="AEN12295"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00003755></A
3756><P
3757></P
3758><TABLE
3759BORDER="0"
3760WIDTH="100%"
3761BGCOLOR="#FFD0D0"
3762CELLSPACING="0"
3763CELLPADDING="4"
3764CLASS="CALSTABLE"
3765><TBODY
3766><TR
3767><TD
3768WIDTH="20%"
3769ALIGN="RIGHT"
3770VALIGN="TOP"
3771><TT
3772CLASS="PARAMETER"
3773><I
3774>val</I
3775></TT
3776>&nbsp;:</TD
3777><TD
3778WIDTH="80%"
3779ALIGN="LEFT"
3780VALIGN="TOP"
3781> an XPath object</TD
3782></TR
3783><TR
3784><TD
3785WIDTH="20%"
3786ALIGN="RIGHT"
3787VALIGN="TOP"
3788><I
3789CLASS="EMPHASIS"
3790>Returns</I
3791> :</TD
3792><TD
3793WIDTH="80%"
3794ALIGN="LEFT"
3795VALIGN="TOP"
3796>the new object, the old one is freed (or the operation
3797is done directly on <TT
3798CLASS="PARAMETER"
3799><I
3800>val</I
3801></TT
3802>)</TD
3803></TR
3804></TBODY
3805></TABLE
3806><P
3807></P
3808></DIV
3809></DIV
3810><HR><DIV
3811CLASS="REFSECT2"
3812><A
Daniel Veillard60087f32001-10-10 09:45:09 +00003813NAME="AEN12309"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00003814></A
3815><H3
3816><A
3817NAME="XMLXPATHCONVERTNUMBER"
3818></A
3819>xmlXPathConvertNumber ()</H3
3820><TABLE
3821BORDER="0"
3822BGCOLOR="#D6E8FF"
3823WIDTH="100%"
3824CELLPADDING="6"
3825><TR
3826><TD
3827><PRE
3828CLASS="PROGRAMLISTING"
3829><A
3830HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
3831>xmlXPathObjectPtr</A
3832> xmlXPathConvertNumber (<A
3833HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
3834>xmlXPathObjectPtr</A
3835> val);</PRE
3836></TD
3837></TR
3838></TABLE
3839><P
3840>Converts an existing object to its <GTKDOCLINK
3841HREF="NUMBER"
3842>number</GTKDOCLINK
3843>() equivalent</P
3844><P
3845></P
3846><DIV
3847CLASS="INFORMALTABLE"
3848><A
Daniel Veillard60087f32001-10-10 09:45:09 +00003849NAME="AEN12318"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00003850></A
3851><P
3852></P
3853><TABLE
3854BORDER="0"
3855WIDTH="100%"
3856BGCOLOR="#FFD0D0"
3857CELLSPACING="0"
3858CELLPADDING="4"
3859CLASS="CALSTABLE"
3860><TBODY
3861><TR
3862><TD
3863WIDTH="20%"
3864ALIGN="RIGHT"
3865VALIGN="TOP"
3866><TT
3867CLASS="PARAMETER"
3868><I
3869>val</I
3870></TT
3871>&nbsp;:</TD
3872><TD
3873WIDTH="80%"
3874ALIGN="LEFT"
3875VALIGN="TOP"
3876> an XPath object</TD
3877></TR
3878><TR
3879><TD
3880WIDTH="20%"
3881ALIGN="RIGHT"
3882VALIGN="TOP"
3883><I
3884CLASS="EMPHASIS"
3885>Returns</I
3886> :</TD
3887><TD
3888WIDTH="80%"
3889ALIGN="LEFT"
3890VALIGN="TOP"
3891>the new object, the old one is freed (or the operation
3892is done directly on <TT
3893CLASS="PARAMETER"
3894><I
3895>val</I
3896></TT
3897>)</TD
3898></TR
3899></TBODY
3900></TABLE
3901><P
3902></P
3903></DIV
3904></DIV
3905><HR><DIV
3906CLASS="REFSECT2"
3907><A
Daniel Veillard60087f32001-10-10 09:45:09 +00003908NAME="AEN12332"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00003909></A
3910><H3
3911><A
3912NAME="XMLXPATHCONVERTSTRING"
3913></A
3914>xmlXPathConvertString ()</H3
3915><TABLE
3916BORDER="0"
3917BGCOLOR="#D6E8FF"
3918WIDTH="100%"
3919CELLPADDING="6"
3920><TR
3921><TD
3922><PRE
3923CLASS="PROGRAMLISTING"
3924><A
3925HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
3926>xmlXPathObjectPtr</A
3927> xmlXPathConvertString (<A
3928HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
3929>xmlXPathObjectPtr</A
3930> val);</PRE
3931></TD
3932></TR
3933></TABLE
3934><P
3935>Converts an existing object to its <GTKDOCLINK
3936HREF="STRING"
3937>string</GTKDOCLINK
3938>() equivalent</P
3939><P
3940></P
3941><DIV
3942CLASS="INFORMALTABLE"
3943><A
Daniel Veillard60087f32001-10-10 09:45:09 +00003944NAME="AEN12341"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00003945></A
3946><P
3947></P
3948><TABLE
3949BORDER="0"
3950WIDTH="100%"
3951BGCOLOR="#FFD0D0"
3952CELLSPACING="0"
3953CELLPADDING="4"
3954CLASS="CALSTABLE"
3955><TBODY
3956><TR
3957><TD
3958WIDTH="20%"
3959ALIGN="RIGHT"
3960VALIGN="TOP"
3961><TT
3962CLASS="PARAMETER"
3963><I
3964>val</I
3965></TT
3966>&nbsp;:</TD
3967><TD
3968WIDTH="80%"
3969ALIGN="LEFT"
3970VALIGN="TOP"
3971> an XPath object</TD
3972></TR
3973><TR
3974><TD
3975WIDTH="20%"
3976ALIGN="RIGHT"
3977VALIGN="TOP"
3978><I
3979CLASS="EMPHASIS"
3980>Returns</I
3981> :</TD
3982><TD
3983WIDTH="80%"
3984ALIGN="LEFT"
3985VALIGN="TOP"
3986>the new object, the old one is freed (or the operation
3987is done directly on <TT
3988CLASS="PARAMETER"
3989><I
3990>val</I
3991></TT
3992>)</TD
3993></TR
3994></TBODY
3995></TABLE
3996><P
3997></P
3998></DIV
3999></DIV
4000><HR><DIV
4001CLASS="REFSECT2"
4002><A
Daniel Veillard60087f32001-10-10 09:45:09 +00004003NAME="AEN12355"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00004004></A
4005><H3
4006><A
Daniel Veillard7e99c632000-10-06 12:59:53 +00004007NAME="XMLXPATHINIT"
4008></A
4009>xmlXPathInit ()</H3
4010><TABLE
4011BORDER="0"
4012BGCOLOR="#D6E8FF"
4013WIDTH="100%"
4014CELLPADDING="6"
4015><TR
4016><TD
4017><PRE
4018CLASS="PROGRAMLISTING"
4019>void xmlXPathInit (void);</PRE
4020></TD
4021></TR
4022></TABLE
4023><P
4024>Initialize the XPath environment</P
4025><P
4026></P
4027></DIV
4028><HR><DIV
4029CLASS="REFSECT2"
4030><A
Daniel Veillard60087f32001-10-10 09:45:09 +00004031NAME="AEN12361"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004032></A
4033><H3
4034><A
4035NAME="XMLXPATHNEWCONTEXT"
4036></A
4037>xmlXPathNewContext ()</H3
4038><TABLE
4039BORDER="0"
4040BGCOLOR="#D6E8FF"
4041WIDTH="100%"
4042CELLPADDING="6"
4043><TR
4044><TD
4045><PRE
4046CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00004047><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00004048HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00004049>xmlXPathContextPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004050> xmlXPathNewContext (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00004051HREF="libxml-tree.html#XMLDOCPTR"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004052>xmlDocPtr</A
Daniel Veillard7f7d1111999-09-22 09:46:25 +00004053> doc);</PRE
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004054></TD
4055></TR
4056></TABLE
4057><P
4058>Create a new xmlXPathContext</P
4059><P
4060></P
4061><DIV
4062CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00004063><A
Daniel Veillard60087f32001-10-10 09:45:09 +00004064NAME="AEN12369"
Daniel Veillardbed7b052001-05-19 14:59:49 +00004065></A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004066><P
4067></P
4068><TABLE
4069BORDER="0"
4070WIDTH="100%"
4071BGCOLOR="#FFD0D0"
4072CELLSPACING="0"
4073CELLPADDING="4"
4074CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00004075><TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004076><TR
4077><TD
4078WIDTH="20%"
4079ALIGN="RIGHT"
4080VALIGN="TOP"
4081><TT
4082CLASS="PARAMETER"
4083><I
4084>doc</I
4085></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00004086>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004087><TD
4088WIDTH="80%"
4089ALIGN="LEFT"
4090VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00004091> the XML document</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004092></TR
4093><TR
4094><TD
4095WIDTH="20%"
4096ALIGN="RIGHT"
4097VALIGN="TOP"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004098><I
4099CLASS="EMPHASIS"
4100>Returns</I
4101> :</TD
4102><TD
4103WIDTH="80%"
4104ALIGN="LEFT"
4105VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00004106>the xmlXPathContext just allocated.</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004107></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00004108></TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004109></TABLE
4110><P
4111></P
4112></DIV
4113></DIV
4114><HR><DIV
4115CLASS="REFSECT2"
4116><A
Daniel Veillard60087f32001-10-10 09:45:09 +00004117NAME="AEN12382"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004118></A
4119><H3
4120><A
4121NAME="XMLXPATHFREECONTEXT"
4122></A
4123>xmlXPathFreeContext ()</H3
4124><TABLE
4125BORDER="0"
4126BGCOLOR="#D6E8FF"
4127WIDTH="100%"
4128CELLPADDING="6"
4129><TR
4130><TD
4131><PRE
4132CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00004133>void xmlXPathFreeContext (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00004134HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00004135>xmlXPathContextPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004136> ctxt);</PRE
4137></TD
4138></TR
4139></TABLE
4140><P
4141>Free up an xmlXPathContext</P
4142><P
4143></P
4144><DIV
4145CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00004146><A
Daniel Veillard60087f32001-10-10 09:45:09 +00004147NAME="AEN12389"
Daniel Veillardbed7b052001-05-19 14:59:49 +00004148></A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004149><P
4150></P
4151><TABLE
4152BORDER="0"
4153WIDTH="100%"
4154BGCOLOR="#FFD0D0"
4155CELLSPACING="0"
4156CELLPADDING="4"
4157CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00004158><TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004159><TR
4160><TD
4161WIDTH="20%"
4162ALIGN="RIGHT"
4163VALIGN="TOP"
4164><TT
4165CLASS="PARAMETER"
4166><I
4167>ctxt</I
4168></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00004169>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004170><TD
4171WIDTH="80%"
4172ALIGN="LEFT"
4173VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00004174> the context to free</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004175></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00004176></TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004177></TABLE
4178><P
4179></P
4180></DIV
4181></DIV
4182><HR><DIV
4183CLASS="REFSECT2"
4184><A
Daniel Veillard60087f32001-10-10 09:45:09 +00004185NAME="AEN12398"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004186></A
4187><H3
4188><A
4189NAME="XMLXPATHEVAL"
4190></A
4191>xmlXPathEval ()</H3
4192><TABLE
4193BORDER="0"
4194BGCOLOR="#D6E8FF"
4195WIDTH="100%"
4196CELLPADDING="6"
4197><TR
4198><TD
4199><PRE
4200CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00004201><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00004202HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00004203>xmlXPathObjectPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004204> xmlXPathEval (const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00004205HREF="libxml-tree.html#XMLCHAR"
Daniel Veillarddd6b3671999-09-23 22:19:22 +00004206>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004207> *str,
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00004208 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00004209HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00004210>xmlXPathContextPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004211> ctxt);</PRE
4212></TD
4213></TR
4214></TABLE
4215><P
4216>Evaluate the XPath Location Path in the given context.</P
4217><P
4218></P
4219><DIV
4220CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00004221><A
Daniel Veillard60087f32001-10-10 09:45:09 +00004222NAME="AEN12407"
Daniel Veillardbed7b052001-05-19 14:59:49 +00004223></A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004224><P
4225></P
4226><TABLE
4227BORDER="0"
4228WIDTH="100%"
4229BGCOLOR="#FFD0D0"
4230CELLSPACING="0"
4231CELLPADDING="4"
4232CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00004233><TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004234><TR
4235><TD
4236WIDTH="20%"
4237ALIGN="RIGHT"
4238VALIGN="TOP"
4239><TT
4240CLASS="PARAMETER"
4241><I
4242>str</I
4243></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00004244>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004245><TD
4246WIDTH="80%"
4247ALIGN="LEFT"
4248VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00004249> the XPath expression</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004250></TR
4251><TR
4252><TD
4253WIDTH="20%"
4254ALIGN="RIGHT"
4255VALIGN="TOP"
4256><TT
4257CLASS="PARAMETER"
4258><I
4259>ctxt</I
4260></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00004261>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004262><TD
4263WIDTH="80%"
4264ALIGN="LEFT"
4265VALIGN="TOP"
Daniel Veillard7e99c632000-10-06 12:59:53 +00004266>&nbsp;</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004267></TR
4268><TR
4269><TD
4270WIDTH="20%"
4271ALIGN="RIGHT"
4272VALIGN="TOP"
4273><I
4274CLASS="EMPHASIS"
4275>Returns</I
4276> :</TD
4277><TD
4278WIDTH="80%"
4279ALIGN="LEFT"
4280VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00004281>the xmlXPathObjectPtr resulting from the eveluation or NULL.
4282the caller has to free the object.</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004283></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00004284></TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004285></TABLE
4286><P
4287></P
4288></DIV
4289></DIV
4290><HR><DIV
4291CLASS="REFSECT2"
4292><A
Daniel Veillard60087f32001-10-10 09:45:09 +00004293NAME="AEN12424"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004294></A
4295><H3
4296><A
4297NAME="XMLXPATHEVALEXPRESSION"
4298></A
4299>xmlXPathEvalExpression ()</H3
4300><TABLE
4301BORDER="0"
4302BGCOLOR="#D6E8FF"
4303WIDTH="100%"
4304CELLPADDING="6"
4305><TR
4306><TD
4307><PRE
4308CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00004309><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00004310HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00004311>xmlXPathObjectPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004312> xmlXPathEvalExpression (const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00004313HREF="libxml-tree.html#XMLCHAR"
Daniel Veillarddd6b3671999-09-23 22:19:22 +00004314>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004315> *str,
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00004316 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00004317HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00004318>xmlXPathContextPtr</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004319> ctxt);</PRE
4320></TD
4321></TR
4322></TABLE
4323><P
4324>Evaluate the XPath expression in the given context.</P
4325><P
4326></P
4327><DIV
4328CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00004329><A
Daniel Veillard60087f32001-10-10 09:45:09 +00004330NAME="AEN12433"
Daniel Veillardbed7b052001-05-19 14:59:49 +00004331></A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004332><P
4333></P
4334><TABLE
4335BORDER="0"
4336WIDTH="100%"
4337BGCOLOR="#FFD0D0"
4338CELLSPACING="0"
4339CELLPADDING="4"
4340CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00004341><TBODY
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004342><TR
4343><TD
4344WIDTH="20%"
4345ALIGN="RIGHT"
4346VALIGN="TOP"
4347><TT
4348CLASS="PARAMETER"
4349><I
4350>str</I
4351></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00004352>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004353><TD
4354WIDTH="80%"
4355ALIGN="LEFT"
4356VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00004357> the XPath expression</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004358></TR
4359><TR
4360><TD
4361WIDTH="20%"
4362ALIGN="RIGHT"
4363VALIGN="TOP"
4364><TT
4365CLASS="PARAMETER"
4366><I
4367>ctxt</I
4368></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00004369>&nbsp;:</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004370><TD
4371WIDTH="80%"
4372ALIGN="LEFT"
4373VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00004374> the XPath context</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004375></TR
4376><TR
4377><TD
4378WIDTH="20%"
4379ALIGN="RIGHT"
4380VALIGN="TOP"
4381><I
4382CLASS="EMPHASIS"
4383>Returns</I
4384> :</TD
4385><TD
4386WIDTH="80%"
4387ALIGN="LEFT"
4388VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00004389>the xmlXPathObjectPtr resulting from the evaluation or NULL.
4390the caller has to free the object.</TD
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00004391></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00004392></TBODY
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00004393></TABLE
4394><P
4395></P
4396></DIV
4397></DIV
4398><HR><DIV
4399CLASS="REFSECT2"
4400><A
Daniel Veillard60087f32001-10-10 09:45:09 +00004401NAME="AEN12450"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00004402></A
4403><H3
4404><A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00004405NAME="XMLXPATHEVALPREDICATE"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00004406></A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00004407>xmlXPathEvalPredicate ()</H3
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00004408><TABLE
4409BORDER="0"
4410BGCOLOR="#D6E8FF"
4411WIDTH="100%"
4412CELLPADDING="6"
4413><TR
4414><TD
4415><PRE
4416CLASS="PROGRAMLISTING"
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00004417>int xmlXPathEvalPredicate (<A
4418HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR"
4419>xmlXPathContextPtr</A
4420> ctxt,
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00004421 <A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00004422HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
4423>xmlXPathObjectPtr</A
4424> res);</PRE
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00004425></TD
4426></TR
4427></TABLE
4428><P
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00004429>Evaluate a predicate result for the current node.
4430A PredicateExpr is evaluated by evaluating the Expr and converting
4431the result to a boolean. If the result is a number, the result will
4432be converted to true if the number is equal to the position of the
4433context node in the context node list (as returned by the position
4434function) and will be converted to false otherwise; if the result
4435is not a number, then the result will be converted as if by a call
4436to the boolean function. </P
4437><P
4438>Return 1 if predicate is true, 0 otherwise</P
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00004439><P
4440></P
4441><DIV
4442CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00004443><A
Daniel Veillard60087f32001-10-10 09:45:09 +00004444NAME="AEN12459"
Daniel Veillardbed7b052001-05-19 14:59:49 +00004445></A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00004446><P
4447></P
4448><TABLE
4449BORDER="0"
4450WIDTH="100%"
4451BGCOLOR="#FFD0D0"
4452CELLSPACING="0"
4453CELLPADDING="4"
4454CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00004455><TBODY
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00004456><TR
4457><TD
4458WIDTH="20%"
4459ALIGN="RIGHT"
4460VALIGN="TOP"
4461><TT
4462CLASS="PARAMETER"
4463><I
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00004464>ctxt</I
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00004465></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00004466>&nbsp;:</TD
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00004467><TD
4468WIDTH="80%"
4469ALIGN="LEFT"
4470VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00004471> the XPath context</TD
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00004472></TR
4473><TR
4474><TD
4475WIDTH="20%"
4476ALIGN="RIGHT"
4477VALIGN="TOP"
4478><TT
4479CLASS="PARAMETER"
4480><I
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00004481>res</I
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00004482></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00004483>&nbsp;:</TD
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00004484><TD
4485WIDTH="80%"
4486ALIGN="LEFT"
4487VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00004488> the Predicate Expression evaluation result</TD
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00004489></TR
4490><TR
4491><TD
4492WIDTH="20%"
4493ALIGN="RIGHT"
4494VALIGN="TOP"
4495><I
4496CLASS="EMPHASIS"
4497>Returns</I
4498> :</TD
4499><TD
4500WIDTH="80%"
4501ALIGN="LEFT"
4502VALIGN="TOP"
Daniel Veillardbed7b052001-05-19 14:59:49 +00004503>&nbsp;</TD
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00004504></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00004505></TBODY
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00004506></TABLE
4507><P
4508></P
4509></DIV
4510></DIV
4511><HR><DIV
4512CLASS="REFSECT2"
4513><A
Daniel Veillard60087f32001-10-10 09:45:09 +00004514NAME="AEN12476"
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00004515></A
4516><H3
4517><A
4518NAME="XMLXPATHCOMPILE"
4519></A
4520>xmlXPathCompile ()</H3
4521><TABLE
4522BORDER="0"
4523BGCOLOR="#D6E8FF"
4524WIDTH="100%"
4525CELLPADDING="6"
4526><TR
4527><TD
4528><PRE
4529CLASS="PROGRAMLISTING"
4530><A
4531HREF="libxml-xpath.html#XMLXPATHCOMPEXPRPTR"
4532>xmlXPathCompExprPtr</A
4533> xmlXPathCompile (const <A
4534HREF="libxml-tree.html#XMLCHAR"
4535>xmlChar</A
4536> *str);</PRE
4537></TD
4538></TR
4539></TABLE
4540><P
4541>Compile an XPath expression</P
4542><P
4543></P
4544><DIV
4545CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00004546><A
Daniel Veillard60087f32001-10-10 09:45:09 +00004547NAME="AEN12484"
Daniel Veillardbed7b052001-05-19 14:59:49 +00004548></A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00004549><P
4550></P
4551><TABLE
4552BORDER="0"
4553WIDTH="100%"
4554BGCOLOR="#FFD0D0"
4555CELLSPACING="0"
4556CELLPADDING="4"
4557CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00004558><TBODY
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00004559><TR
4560><TD
4561WIDTH="20%"
4562ALIGN="RIGHT"
4563VALIGN="TOP"
4564><TT
4565CLASS="PARAMETER"
4566><I
4567>str</I
4568></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00004569>&nbsp;:</TD
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00004570><TD
4571WIDTH="80%"
4572ALIGN="LEFT"
4573VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00004574> the XPath expression</TD
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00004575></TR
4576><TR
4577><TD
4578WIDTH="20%"
4579ALIGN="RIGHT"
4580VALIGN="TOP"
4581><I
4582CLASS="EMPHASIS"
4583>Returns</I
4584> :</TD
4585><TD
4586WIDTH="80%"
4587ALIGN="LEFT"
4588VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00004589>the xmlXPathObjectPtr resulting from the eveluation or NULL.
4590the caller has to free the object.</TD
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00004591></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00004592></TBODY
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00004593></TABLE
4594><P
4595></P
4596></DIV
4597></DIV
4598><HR><DIV
4599CLASS="REFSECT2"
4600><A
Daniel Veillard60087f32001-10-10 09:45:09 +00004601NAME="AEN12497"
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00004602></A
4603><H3
4604><A
4605NAME="XMLXPATHCOMPILEDEVAL"
4606></A
4607>xmlXPathCompiledEval ()</H3
4608><TABLE
4609BORDER="0"
4610BGCOLOR="#D6E8FF"
4611WIDTH="100%"
4612CELLPADDING="6"
4613><TR
4614><TD
4615><PRE
4616CLASS="PROGRAMLISTING"
4617><A
4618HREF="libxml-xpath.html#XMLXPATHOBJECTPTR"
4619>xmlXPathObjectPtr</A
4620> xmlXPathCompiledEval (<A
4621HREF="libxml-xpath.html#XMLXPATHCOMPEXPRPTR"
4622>xmlXPathCompExprPtr</A
4623> comp,
4624 <A
4625HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR"
4626>xmlXPathContextPtr</A
4627> ctx);</PRE
4628></TD
4629></TR
4630></TABLE
4631><P
4632>Evaluate the Precompiled XPath expression in the given context.</P
4633><P
4634></P
4635><DIV
4636CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00004637><A
Daniel Veillard60087f32001-10-10 09:45:09 +00004638NAME="AEN12506"
Daniel Veillardbed7b052001-05-19 14:59:49 +00004639></A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00004640><P
4641></P
4642><TABLE
4643BORDER="0"
4644WIDTH="100%"
4645BGCOLOR="#FFD0D0"
4646CELLSPACING="0"
4647CELLPADDING="4"
4648CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00004649><TBODY
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00004650><TR
4651><TD
4652WIDTH="20%"
4653ALIGN="RIGHT"
4654VALIGN="TOP"
4655><TT
4656CLASS="PARAMETER"
4657><I
4658>comp</I
4659></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00004660>&nbsp;:</TD
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00004661><TD
4662WIDTH="80%"
4663ALIGN="LEFT"
4664VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00004665> the compiled XPath expression</TD
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00004666></TR
4667><TR
4668><TD
4669WIDTH="20%"
4670ALIGN="RIGHT"
4671VALIGN="TOP"
4672><TT
4673CLASS="PARAMETER"
4674><I
4675>ctx</I
4676></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00004677>&nbsp;:</TD
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00004678><TD
4679WIDTH="80%"
4680ALIGN="LEFT"
4681VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00004682> the XPath context</TD
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00004683></TR
4684><TR
4685><TD
4686WIDTH="20%"
4687ALIGN="RIGHT"
4688VALIGN="TOP"
4689><I
4690CLASS="EMPHASIS"
4691>Returns</I
4692> :</TD
4693><TD
4694WIDTH="80%"
4695ALIGN="LEFT"
4696VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00004697>the xmlXPathObjectPtr resulting from the eveluation or NULL.
4698the caller has to free the object.</TD
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00004699></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00004700></TBODY
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00004701></TABLE
4702><P
4703></P
4704></DIV
4705></DIV
4706><HR><DIV
4707CLASS="REFSECT2"
4708><A
Daniel Veillard60087f32001-10-10 09:45:09 +00004709NAME="AEN12523"
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00004710></A
4711><H3
4712><A
4713NAME="XMLXPATHFREECOMPEXPR"
4714></A
4715>xmlXPathFreeCompExpr ()</H3
4716><TABLE
4717BORDER="0"
4718BGCOLOR="#D6E8FF"
4719WIDTH="100%"
4720CELLPADDING="6"
4721><TR
4722><TD
4723><PRE
4724CLASS="PROGRAMLISTING"
4725>void xmlXPathFreeCompExpr (<A
4726HREF="libxml-xpath.html#XMLXPATHCOMPEXPRPTR"
4727>xmlXPathCompExprPtr</A
4728> comp);</PRE
4729></TD
4730></TR
4731></TABLE
4732><P
4733>Free up the memory allocated by <TT
4734CLASS="PARAMETER"
4735><I
4736>comp</I
4737></TT
4738></P
4739><P
4740></P
4741><DIV
4742CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00004743><A
Daniel Veillard60087f32001-10-10 09:45:09 +00004744NAME="AEN12531"
Daniel Veillardbed7b052001-05-19 14:59:49 +00004745></A
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00004746><P
4747></P
4748><TABLE
4749BORDER="0"
4750WIDTH="100%"
4751BGCOLOR="#FFD0D0"
4752CELLSPACING="0"
4753CELLPADDING="4"
4754CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00004755><TBODY
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00004756><TR
4757><TD
4758WIDTH="20%"
4759ALIGN="RIGHT"
4760VALIGN="TOP"
4761><TT
4762CLASS="PARAMETER"
4763><I
4764>comp</I
4765></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00004766>&nbsp;:</TD
Daniel Veillardc7ad7ce2001-03-22 21:45:29 +00004767><TD
4768WIDTH="80%"
4769ALIGN="LEFT"
4770VALIGN="TOP"
Daniel Veillard4b8328d2001-07-05 22:48:42 +00004771> an XPATH comp</TD
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00004772></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00004773></TBODY
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00004774></TABLE
4775><P
4776></P
4777></DIV
4778></DIV
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004779></DIV
4780><DIV
4781CLASS="NAVFOOTER"
Daniel Veillard00fdf371999-10-08 09:40:39 +00004782><BR
4783CLEAR="all"><BR><TABLE
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004784WIDTH="100%"
4785BORDER="0"
4786BGCOLOR="#000000"
4787CELLPADDING="1"
4788CELLSPACING="0"
4789><TR
4790><TD
4791WIDTH="25%"
4792BGCOLOR="#C00000"
4793ALIGN="left"
4794><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00004795HREF="libxml-htmltree.html"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004796><FONT
4797COLOR="#FFFFFF"
4798SIZE="3"
4799><B
4800>&#60;&#60;&#60; Previous Page</B
4801></FONT
4802></A
4803></TD
4804><TD
4805WIDTH="25%"
4806BGCOLOR="#0000C0"
4807ALIGN="center"
4808><FONT
4809COLOR="#FFFFFF"
4810SIZE="3"
4811><B
4812><A
4813HREF="book1.html"
4814><FONT
4815COLOR="#FFFFFF"
4816SIZE="3"
4817><B
4818>Home</B
4819></FONT
4820></A
4821></B
4822></FONT
4823></TD
4824><TD
4825WIDTH="25%"
4826BGCOLOR="#00C000"
4827ALIGN="center"
4828><FONT
4829COLOR="#FFFFFF"
4830SIZE="3"
4831><B
4832><A
Daniel Veillard35008381999-10-25 13:15:52 +00004833HREF="libxml-lib.html"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004834><FONT
4835COLOR="#FFFFFF"
4836SIZE="3"
4837><B
4838>Up</B
4839></FONT
4840></A
4841></B
4842></FONT
4843></TD
4844><TD
4845WIDTH="25%"
4846BGCOLOR="#C00000"
4847ALIGN="right"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00004848><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00004849HREF="libxml-xpathinternals.html"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00004850><FONT
4851COLOR="#FFFFFF"
4852SIZE="3"
4853><B
4854>Next Page &#62;&#62;&#62;</B
4855></FONT
4856></A
4857></TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004858></TR
4859><TR
4860><TD
4861COLSPAN="2"
4862ALIGN="left"
4863><FONT
4864COLOR="#FFFFFF"
4865SIZE="3"
4866><B
4867>HTMLtree</B
4868></FONT
4869></TD
4870><TD
4871COLSPAN="2"
4872ALIGN="right"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00004873><FONT
4874COLOR="#FFFFFF"
4875SIZE="3"
4876><B
Daniel Veillard29a11cc2000-10-25 13:32:39 +00004877>xpathInternals</B
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00004878></FONT
4879></TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00004880></TR
4881></TABLE
4882></DIV
4883></BODY
4884></HTML
4885>