libxml-xpath.html revision f012a64d13d85d53eac0d4d6625508109e7c9e9d
1<HTML 2><HEAD 3><TITLE 4>xpath</TITLE 5><META 6NAME="GENERATOR" 7CONTENT="Modular DocBook HTML Stylesheet Version 1.59"><LINK 8REL="HOME" 9TITLE="Gnome XML Library Reference Manual" 10HREF="book1.html"><LINK 11REL="UP" 12TITLE="Libxml Library Reference" 13HREF="libxml-lib.html"><LINK 14REL="PREVIOUS" 15TITLE="HTMLtree" 16HREF="libxml-htmltree.html"><LINK 17REL="NEXT" 18TITLE="xpathInternals" 19HREF="libxml-xpathinternals.html"></HEAD 20><BODY 21CLASS="REFENTRY" 22BGCOLOR="#FFFFFF" 23TEXT="#000000" 24LINK="#0000FF" 25VLINK="#840084" 26ALINK="#0000FF" 27><DIV 28CLASS="NAVHEADER" 29><TABLE 30WIDTH="100%" 31BORDER="0" 32BGCOLOR="#000000" 33CELLPADDING="1" 34CELLSPACING="0" 35><TR 36><TH 37COLSPAN="4" 38ALIGN="center" 39><FONT 40COLOR="#FFFFFF" 41SIZE="5" 42>Gnome XML Library Reference Manual</FONT 43></TH 44></TR 45><TR 46><TD 47WIDTH="25%" 48BGCOLOR="#C00000" 49ALIGN="left" 50><A 51HREF="libxml-htmltree.html" 52><FONT 53COLOR="#FFFFFF" 54SIZE="3" 55><B 56><<< Previous Page</B 57></FONT 58></A 59></TD 60><TD 61WIDTH="25%" 62BGCOLOR="#0000C0" 63ALIGN="center" 64><FONT 65COLOR="#FFFFFF" 66SIZE="3" 67><B 68><A 69HREF="book1.html" 70><FONT 71COLOR="#FFFFFF" 72SIZE="3" 73><B 74>Home</B 75></FONT 76></A 77></B 78></FONT 79></TD 80><TD 81WIDTH="25%" 82BGCOLOR="#00C000" 83ALIGN="center" 84><FONT 85COLOR="#FFFFFF" 86SIZE="3" 87><B 88><A 89HREF="libxml-lib.html" 90><FONT 91COLOR="#FFFFFF" 92SIZE="3" 93><B 94>Up</B 95></FONT 96></A 97></B 98></FONT 99></TD 100><TD 101WIDTH="25%" 102BGCOLOR="#C00000" 103ALIGN="right" 104><A 105HREF="libxml-xpathinternals.html" 106><FONT 107COLOR="#FFFFFF" 108SIZE="3" 109><B 110>Next Page >>></B 111></FONT 112></A 113></TD 114></TR 115></TABLE 116></DIV 117><H1 118><A 119NAME="LIBXML-XPATH" 120>xpath</A 121></H1 122><DIV 123CLASS="REFNAMEDIV" 124><A 125NAME="AEN11249" 126></A 127><H2 128>Name</H2 129>xpath -- </DIV 130><DIV 131CLASS="REFSYNOPSISDIV" 132><A 133NAME="AEN11252" 134></A 135><H2 136>Synopsis</H2 137><TABLE 138BORDER="0" 139BGCOLOR="#D6E8FF" 140WIDTH="100%" 141CELLPADDING="6" 142><TR 143><TD 144><PRE 145CLASS="SYNOPSIS" 146> 147 148struct <A 149HREF="libxml-xpath.html#XMLXPATHCONTEXT" 150>xmlXPathContext</A 151>; 152typedef <A 153HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR" 154>xmlXPathContextPtr</A 155>; 156struct <A 157HREF="libxml-xpath.html#XMLXPATHPARSERCONTEXT" 158>xmlXPathParserContext</A 159>; 160typedef <A 161HREF="libxml-xpath.html#XMLXPATHPARSERCONTEXTPTR" 162>xmlXPathParserContextPtr</A 163>; 164enum <A 165HREF="libxml-xpath.html#XMLXPATHERROR" 166>xmlXPathError</A 167>; 168struct <A 169HREF="libxml-xpath.html#XMLNODESET" 170>xmlNodeSet</A 171>; 172typedef <A 173HREF="libxml-xpath.html#XMLNODESETPTR" 174>xmlNodeSetPtr</A 175>; 176enum <A 177HREF="libxml-xpath.html#XMLXPATHOBJECTTYPE" 178>xmlXPathObjectType</A 179>; 180struct <A 181HREF="libxml-xpath.html#XMLXPATHOBJECT" 182>xmlXPathObject</A 183>; 184typedef <A 185HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 186>xmlXPathObjectPtr</A 187>; 188int (<A 189HREF="libxml-xpath.html#XMLXPATHCONVERTFUNC" 190>*xmlXPathConvertFunc</A 191>) (<A 192HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 193>xmlXPathObjectPtr</A 194> obj, 195 int type); 196struct <A 197HREF="libxml-xpath.html#XMLXPATHTYPE" 198>xmlXPathType</A 199>; 200typedef <A 201HREF="libxml-xpath.html#XMLXPATHTYPEPTR" 202>xmlXPathTypePtr</A 203>; 204struct <A 205HREF="libxml-xpath.html#XMLXPATHVARIABLE" 206>xmlXPathVariable</A 207>; 208typedef <A 209HREF="libxml-xpath.html#XMLXPATHVARIABLEPTR" 210>xmlXPathVariablePtr</A 211>; 212void (<A 213HREF="libxml-xpath.html#XMLXPATHEVALFUNC" 214>*xmlXPathEvalFunc</A 215>) (<A 216HREF="libxml-xpath.html#XMLXPATHPARSERCONTEXTPTR" 217>xmlXPathParserContextPtr</A 218> ctxt, 219 int nargs); 220struct <A 221HREF="libxml-xpath.html#XMLXPATHFUNCT" 222>xmlXPathFunct</A 223>; 224typedef <A 225HREF="libxml-xpath.html#XMLXPATHFUNCPTR" 226>xmlXPathFuncPtr</A 227>; 228<A 229HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 230>xmlXPathObjectPtr</A 231> (<A 232HREF="libxml-xpath.html#XMLXPATHAXISFUNC" 233>*xmlXPathAxisFunc</A 234>) (<A 235HREF="libxml-xpath.html#XMLXPATHPARSERCONTEXTPTR" 236>xmlXPathParserContextPtr</A 237> ctxt, 238 <A 239HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 240>xmlXPathObjectPtr</A 241> cur); 242struct <A 243HREF="libxml-xpath.html#XMLXPATHAXIS" 244>xmlXPathAxis</A 245>; 246typedef <A 247HREF="libxml-xpath.html#XMLXPATHAXISPTR" 248>xmlXPathAxisPtr</A 249>; 250struct <A 251HREF="libxml-xpath.html#XMLXPATHCOMPEXPR" 252>xmlXPathCompExpr</A 253>; 254typedef <A 255HREF="libxml-xpath.html#XMLXPATHCOMPEXPRPTR" 256>xmlXPathCompExprPtr</A 257>; 258void (<A 259HREF="libxml-xpath.html#XMLXPATHFUNCTION" 260>*xmlXPathFunction</A 261>) (<A 262HREF="libxml-xpath.html#XMLXPATHPARSERCONTEXTPTR" 263>xmlXPathParserContextPtr</A 264> ctxt, 265 int nargs); 266#define <A 267HREF="libxml-xpath.html#XMLXPATHNODESETGETLENGTH" 268>xmlXPathNodeSetGetLength</A 269> (ns) 270#define <A 271HREF="libxml-xpath.html#XMLXPATHNODESETITEM" 272>xmlXPathNodeSetItem</A 273> (ns, index) 274#define <A 275HREF="libxml-xpath.html#XMLXPATHNODESETISEMPTY" 276>xmlXPathNodeSetIsEmpty</A 277> (ns) 278void <A 279HREF="libxml-xpath.html#XMLXPATHFREEOBJECT" 280>xmlXPathFreeObject</A 281> (<A 282HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 283>xmlXPathObjectPtr</A 284> obj); 285<A 286HREF="libxml-xpath.html#XMLNODESETPTR" 287>xmlNodeSetPtr</A 288> <A 289HREF="libxml-xpath.html#XMLXPATHNODESETCREATE" 290>xmlXPathNodeSetCreate</A 291> (<A 292HREF="libxml-tree.html#XMLNODEPTR" 293>xmlNodePtr</A 294> val); 295void <A 296HREF="libxml-xpath.html#XMLXPATHFREENODESETLIST" 297>xmlXPathFreeNodeSetList</A 298> (<A 299HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 300>xmlXPathObjectPtr</A 301> obj); 302void <A 303HREF="libxml-xpath.html#XMLXPATHFREENODESET" 304>xmlXPathFreeNodeSet</A 305> (<A 306HREF="libxml-xpath.html#XMLNODESETPTR" 307>xmlNodeSetPtr</A 308> obj); 309<A 310HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 311>xmlXPathObjectPtr</A 312> <A 313HREF="libxml-xpath.html#XMLXPATHOBJECTCOPY" 314>xmlXPathObjectCopy</A 315> (<A 316HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 317>xmlXPathObjectPtr</A 318> val); 319int <A 320HREF="libxml-xpath.html#XMLXPATHCMPNODES" 321>xmlXPathCmpNodes</A 322> (<A 323HREF="libxml-tree.html#XMLNODEPTR" 324>xmlNodePtr</A 325> node1, 326 <A 327HREF="libxml-tree.html#XMLNODEPTR" 328>xmlNodePtr</A 329> node2); 330int <A 331HREF="libxml-xpath.html#XMLXPATHCASTNUMBERTOBOOLEAN" 332>xmlXPathCastNumberToBoolean</A 333> (<GTKDOCLINK 334HREF="DOUBLE" 335>double</GTKDOCLINK 336> val); 337int <A 338HREF="libxml-xpath.html#XMLXPATHCASTSTRINGTOBOOLEAN" 339>xmlXPathCastStringToBoolean</A 340> (const <A 341HREF="libxml-tree.html#XMLCHAR" 342>xmlChar</A 343> *val); 344int <A 345HREF="libxml-xpath.html#XMLXPATHCASTNODESETTOBOOLEAN" 346>xmlXPathCastNodeSetToBoolean</A 347> (<A 348HREF="libxml-xpath.html#XMLNODESETPTR" 349>xmlNodeSetPtr</A 350> ns); 351int <A 352HREF="libxml-xpath.html#XMLXPATHCASTTOBOOLEAN" 353>xmlXPathCastToBoolean</A 354> (<A 355HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 356>xmlXPathObjectPtr</A 357> val); 358<GTKDOCLINK 359HREF="DOUBLE" 360>double</GTKDOCLINK 361> <A 362HREF="libxml-xpath.html#XMLXPATHCASTBOOLEANTONUMBER" 363>xmlXPathCastBooleanToNumber</A 364> (int val); 365<GTKDOCLINK 366HREF="DOUBLE" 367>double</GTKDOCLINK 368> <A 369HREF="libxml-xpath.html#XMLXPATHCASTSTRINGTONUMBER" 370>xmlXPathCastStringToNumber</A 371> (const <A 372HREF="libxml-tree.html#XMLCHAR" 373>xmlChar</A 374> *val); 375<GTKDOCLINK 376HREF="DOUBLE" 377>double</GTKDOCLINK 378> <A 379HREF="libxml-xpath.html#XMLXPATHCASTNODETONUMBER" 380>xmlXPathCastNodeToNumber</A 381> (<A 382HREF="libxml-tree.html#XMLNODEPTR" 383>xmlNodePtr</A 384> node); 385<GTKDOCLINK 386HREF="DOUBLE" 387>double</GTKDOCLINK 388> <A 389HREF="libxml-xpath.html#XMLXPATHCASTNODESETTONUMBER" 390>xmlXPathCastNodeSetToNumber</A 391> (<A 392HREF="libxml-xpath.html#XMLNODESETPTR" 393>xmlNodeSetPtr</A 394> ns); 395<GTKDOCLINK 396HREF="DOUBLE" 397>double</GTKDOCLINK 398> <A 399HREF="libxml-xpath.html#XMLXPATHCASTTONUMBER" 400>xmlXPathCastToNumber</A 401> (<A 402HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 403>xmlXPathObjectPtr</A 404> val); 405<A 406HREF="libxml-tree.html#XMLCHAR" 407>xmlChar</A 408>* <A 409HREF="libxml-xpath.html#XMLXPATHCASTBOOLEANTOSTRING" 410>xmlXPathCastBooleanToString</A 411> (int val); 412<A 413HREF="libxml-tree.html#XMLCHAR" 414>xmlChar</A 415>* <A 416HREF="libxml-xpath.html#XMLXPATHCASTNUMBERTOSTRING" 417>xmlXPathCastNumberToString</A 418> (<GTKDOCLINK 419HREF="DOUBLE" 420>double</GTKDOCLINK 421> val); 422<A 423HREF="libxml-tree.html#XMLCHAR" 424>xmlChar</A 425>* <A 426HREF="libxml-xpath.html#XMLXPATHCASTNODETOSTRING" 427>xmlXPathCastNodeToString</A 428> (<A 429HREF="libxml-tree.html#XMLNODEPTR" 430>xmlNodePtr</A 431> node); 432<A 433HREF="libxml-tree.html#XMLCHAR" 434>xmlChar</A 435>* <A 436HREF="libxml-xpath.html#XMLXPATHCASTNODESETTOSTRING" 437>xmlXPathCastNodeSetToString</A 438> (<A 439HREF="libxml-xpath.html#XMLNODESETPTR" 440>xmlNodeSetPtr</A 441> ns); 442<A 443HREF="libxml-tree.html#XMLCHAR" 444>xmlChar</A 445>* <A 446HREF="libxml-xpath.html#XMLXPATHCASTTOSTRING" 447>xmlXPathCastToString</A 448> (<A 449HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 450>xmlXPathObjectPtr</A 451> val); 452<A 453HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 454>xmlXPathObjectPtr</A 455> <A 456HREF="libxml-xpath.html#XMLXPATHCONVERTBOOLEAN" 457>xmlXPathConvertBoolean</A 458> (<A 459HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 460>xmlXPathObjectPtr</A 461> val); 462<A 463HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 464>xmlXPathObjectPtr</A 465> <A 466HREF="libxml-xpath.html#XMLXPATHCONVERTNUMBER" 467>xmlXPathConvertNumber</A 468> (<A 469HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 470>xmlXPathObjectPtr</A 471> val); 472<A 473HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 474>xmlXPathObjectPtr</A 475> <A 476HREF="libxml-xpath.html#XMLXPATHCONVERTSTRING" 477>xmlXPathConvertString</A 478> (<A 479HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 480>xmlXPathObjectPtr</A 481> val); 482void <A 483HREF="libxml-xpath.html#XMLXPATHINIT" 484>xmlXPathInit</A 485> (void); 486<A 487HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR" 488>xmlXPathContextPtr</A 489> <A 490HREF="libxml-xpath.html#XMLXPATHNEWCONTEXT" 491>xmlXPathNewContext</A 492> (<A 493HREF="libxml-tree.html#XMLDOCPTR" 494>xmlDocPtr</A 495> doc); 496void <A 497HREF="libxml-xpath.html#XMLXPATHFREECONTEXT" 498>xmlXPathFreeContext</A 499> (<A 500HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR" 501>xmlXPathContextPtr</A 502> ctxt); 503<A 504HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 505>xmlXPathObjectPtr</A 506> <A 507HREF="libxml-xpath.html#XMLXPATHEVAL" 508>xmlXPathEval</A 509> (const <A 510HREF="libxml-tree.html#XMLCHAR" 511>xmlChar</A 512> *str, 513 <A 514HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR" 515>xmlXPathContextPtr</A 516> ctxt); 517<A 518HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 519>xmlXPathObjectPtr</A 520> <A 521HREF="libxml-xpath.html#XMLXPATHEVALEXPRESSION" 522>xmlXPathEvalExpression</A 523> (const <A 524HREF="libxml-tree.html#XMLCHAR" 525>xmlChar</A 526> *str, 527 <A 528HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR" 529>xmlXPathContextPtr</A 530> ctxt); 531int <A 532HREF="libxml-xpath.html#XMLXPATHEVALPREDICATE" 533>xmlXPathEvalPredicate</A 534> (<A 535HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR" 536>xmlXPathContextPtr</A 537> ctxt, 538 <A 539HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 540>xmlXPathObjectPtr</A 541> res); 542<A 543HREF="libxml-xpath.html#XMLXPATHCOMPEXPRPTR" 544>xmlXPathCompExprPtr</A 545> <A 546HREF="libxml-xpath.html#XMLXPATHCOMPILE" 547>xmlXPathCompile</A 548> (const <A 549HREF="libxml-tree.html#XMLCHAR" 550>xmlChar</A 551> *str); 552<A 553HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 554>xmlXPathObjectPtr</A 555> <A 556HREF="libxml-xpath.html#XMLXPATHCOMPILEDEVAL" 557>xmlXPathCompiledEval</A 558> (<A 559HREF="libxml-xpath.html#XMLXPATHCOMPEXPRPTR" 560>xmlXPathCompExprPtr</A 561> comp, 562 <A 563HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR" 564>xmlXPathContextPtr</A 565> ctx); 566void <A 567HREF="libxml-xpath.html#XMLXPATHFREECOMPEXPR" 568>xmlXPathFreeCompExpr</A 569> (<A 570HREF="libxml-xpath.html#XMLXPATHCOMPEXPRPTR" 571>xmlXPathCompExprPtr</A 572> comp);</PRE 573></TD 574></TR 575></TABLE 576></DIV 577><DIV 578CLASS="REFSECT1" 579><A 580NAME="AEN11374" 581></A 582><H2 583>Description</H2 584><P 585></P 586></DIV 587><DIV 588CLASS="REFSECT1" 589><A 590NAME="AEN11377" 591></A 592><H2 593>Details</H2 594><DIV 595CLASS="REFSECT2" 596><A 597NAME="AEN11379" 598></A 599><H3 600><A 601NAME="XMLXPATHCONTEXT" 602></A 603>struct xmlXPathContext</H3 604><TABLE 605BORDER="0" 606BGCOLOR="#D6E8FF" 607WIDTH="100%" 608CELLPADDING="6" 609><TR 610><TD 611><PRE 612CLASS="PROGRAMLISTING" 613>struct xmlXPathContext { 614 xmlDocPtr doc; /* The current document */ 615 xmlNodePtr node; /* The current node */ 616 617 int nb_variables_unused; /* unused (hash table) */ 618 int max_variables_unused; /* unused (hash table) */ 619 xmlHashTablePtr varHash; /* Hash table of defined variables */ 620 621 int nb_types; /* number of defined types */ 622 int max_types; /* max number of types */ 623 xmlXPathTypePtr types; /* Array of defined types */ 624 625 int nb_funcs_unused; /* unused (hash table) */ 626 int max_funcs_unused; /* unused (hash table) */ 627 xmlHashTablePtr funcHash; /* Hash table of defined funcs */ 628 629 int nb_axis; /* number of defined axis */ 630 int max_axis; /* max number of axis */ 631 xmlXPathAxisPtr axis; /* Array of defined axis */ 632 633 /* the namespace nodes of the context node */ 634 xmlNsPtr *namespaces; /* Array of namespaces */ 635 int nsNr; /* number of namespace in scope */ 636 void *user; /* function to free */ 637 638 /* extra variables */ 639 int contextSize; /* the context size */ 640 int proximityPosition; /* the proximity position */ 641 642 /* extra stuff for XPointer */ 643 int xptr; /* it this an XPointer context */ 644 xmlNodePtr here; /* for here() */ 645 xmlNodePtr origin; /* for origin() */ 646 647 /* the set of namespace declarations in scope for the expression */ 648 xmlHashTablePtr nsHash; /* The namespaces hash table */ 649 void *varLookupFunc; /* variable lookup func */ 650 void *varLookupData; /* variable lookup data */ 651 652 /* Possibility to link in an extra item */ 653 void *extra; /* needed for XSLT */ 654 655 /* The function name and URI when calling a function */ 656 const xmlChar *function; 657 const xmlChar *functionURI; 658};</PRE 659></TD 660></TR 661></TABLE 662><P 663></P 664></DIV 665><HR><DIV 666CLASS="REFSECT2" 667><A 668NAME="AEN11384" 669></A 670><H3 671><A 672NAME="XMLXPATHCONTEXTPTR" 673></A 674>xmlXPathContextPtr</H3 675><TABLE 676BORDER="0" 677BGCOLOR="#D6E8FF" 678WIDTH="100%" 679CELLPADDING="6" 680><TR 681><TD 682><PRE 683CLASS="PROGRAMLISTING" 684>typedef xmlXPathContext *xmlXPathContextPtr;</PRE 685></TD 686></TR 687></TABLE 688><P 689></P 690></DIV 691><HR><DIV 692CLASS="REFSECT2" 693><A 694NAME="AEN11389" 695></A 696><H3 697><A 698NAME="XMLXPATHPARSERCONTEXT" 699></A 700>struct xmlXPathParserContext</H3 701><TABLE 702BORDER="0" 703BGCOLOR="#D6E8FF" 704WIDTH="100%" 705CELLPADDING="6" 706><TR 707><TD 708><PRE 709CLASS="PROGRAMLISTING" 710>struct xmlXPathParserContext { 711 const xmlChar *cur; /* the current char being parsed */ 712 const xmlChar *base; /* the full expression */ 713 714 int error; /* error code */ 715 716 xmlXPathContextPtr context; /* the evaluation context */ 717 xmlXPathObjectPtr value; /* the current value */ 718 int valueNr; /* number of values stacked */ 719 int valueMax; /* max number of values stacked */ 720 xmlXPathObjectPtr *valueTab; /* stack of values */ 721 722 xmlXPathCompExprPtr comp; /* the precompiled expression */ 723 int xptr; /* it this an XPointer expression */ 724 xmlNodePtr ancestor; /* used for walking preceding axis */ 725};</PRE 726></TD 727></TR 728></TABLE 729><P 730></P 731></DIV 732><HR><DIV 733CLASS="REFSECT2" 734><A 735NAME="AEN11394" 736></A 737><H3 738><A 739NAME="XMLXPATHPARSERCONTEXTPTR" 740></A 741>xmlXPathParserContextPtr</H3 742><TABLE 743BORDER="0" 744BGCOLOR="#D6E8FF" 745WIDTH="100%" 746CELLPADDING="6" 747><TR 748><TD 749><PRE 750CLASS="PROGRAMLISTING" 751>typedef xmlXPathParserContext *xmlXPathParserContextPtr;</PRE 752></TD 753></TR 754></TABLE 755><P 756></P 757></DIV 758><HR><DIV 759CLASS="REFSECT2" 760><A 761NAME="AEN11399" 762></A 763><H3 764><A 765NAME="XMLXPATHERROR" 766></A 767>enum xmlXPathError</H3 768><TABLE 769BORDER="0" 770BGCOLOR="#D6E8FF" 771WIDTH="100%" 772CELLPADDING="6" 773><TR 774><TD 775><PRE 776CLASS="PROGRAMLISTING" 777>typedef enum { 778 XPATH_EXPRESSION_OK = 0, 779 XPATH_NUMBER_ERROR, 780 XPATH_UNFINISHED_LITERAL_ERROR, 781 XPATH_START_LITERAL_ERROR, 782 XPATH_VARIABLE_REF_ERROR, 783 XPATH_UNDEF_VARIABLE_ERROR, 784 XPATH_INVALID_PREDICATE_ERROR, 785 XPATH_EXPR_ERROR, 786 XPATH_UNCLOSED_ERROR, 787 XPATH_UNKNOWN_FUNC_ERROR, 788 XPATH_INVALID_OPERAND, 789 XPATH_INVALID_TYPE, 790 XPATH_INVALID_ARITY, 791 XPATH_INVALID_CTXT_SIZE, 792 XPATH_INVALID_CTXT_POSITION, 793 XPATH_MEMORY_ERROR, 794 XPTR_SYNTAX_ERROR, 795 XPTR_RESOURCE_ERROR, 796 XPTR_SUB_RESOURCE_ERROR, 797 XPATH_UNDEF_PREFIX_ERROR, 798 XPATH_ENCODING_ERROR, 799 XPATH_INVALID_CHAR_ERROR 800} xmlXPathError;</PRE 801></TD 802></TR 803></TABLE 804><P 805></P 806></DIV 807><HR><DIV 808CLASS="REFSECT2" 809><A 810NAME="AEN11404" 811></A 812><H3 813><A 814NAME="XMLNODESET" 815></A 816>struct xmlNodeSet</H3 817><TABLE 818BORDER="0" 819BGCOLOR="#D6E8FF" 820WIDTH="100%" 821CELLPADDING="6" 822><TR 823><TD 824><PRE 825CLASS="PROGRAMLISTING" 826>struct xmlNodeSet { 827 int nodeNr; /* number of nodes in the set */ 828 int nodeMax; /* size of the array as allocated */ 829 xmlNodePtr *nodeTab; /* array of nodes in no particular order */ 830};</PRE 831></TD 832></TR 833></TABLE 834><P 835></P 836></DIV 837><HR><DIV 838CLASS="REFSECT2" 839><A 840NAME="AEN11409" 841></A 842><H3 843><A 844NAME="XMLNODESETPTR" 845></A 846>xmlNodeSetPtr</H3 847><TABLE 848BORDER="0" 849BGCOLOR="#D6E8FF" 850WIDTH="100%" 851CELLPADDING="6" 852><TR 853><TD 854><PRE 855CLASS="PROGRAMLISTING" 856>typedef xmlNodeSet *xmlNodeSetPtr;</PRE 857></TD 858></TR 859></TABLE 860><P 861></P 862></DIV 863><HR><DIV 864CLASS="REFSECT2" 865><A 866NAME="AEN11414" 867></A 868><H3 869><A 870NAME="XMLXPATHOBJECTTYPE" 871></A 872>enum xmlXPathObjectType</H3 873><TABLE 874BORDER="0" 875BGCOLOR="#D6E8FF" 876WIDTH="100%" 877CELLPADDING="6" 878><TR 879><TD 880><PRE 881CLASS="PROGRAMLISTING" 882>typedef enum { 883 XPATH_UNDEFINED = 0, 884 XPATH_NODESET = 1, 885 XPATH_BOOLEAN = 2, 886 XPATH_NUMBER = 3, 887 XPATH_STRING = 4, 888 XPATH_POINT = 5, 889 XPATH_RANGE = 6, 890 XPATH_LOCATIONSET = 7, 891 XPATH_USERS = 8, 892 XPATH_XSLT_TREE = 9 /* An XSLT value tree, non modifiable */ 893} xmlXPathObjectType;</PRE 894></TD 895></TR 896></TABLE 897><P 898></P 899></DIV 900><HR><DIV 901CLASS="REFSECT2" 902><A 903NAME="AEN11419" 904></A 905><H3 906><A 907NAME="XMLXPATHOBJECT" 908></A 909>struct xmlXPathObject</H3 910><TABLE 911BORDER="0" 912BGCOLOR="#D6E8FF" 913WIDTH="100%" 914CELLPADDING="6" 915><TR 916><TD 917><PRE 918CLASS="PROGRAMLISTING" 919>struct xmlXPathObject { 920 xmlXPathObjectType type; 921 xmlNodeSetPtr nodesetval; 922 int boolval; 923 double floatval; 924 xmlChar *stringval; 925 void *user; 926 int index; 927 void *user2; 928 int index2; 929};</PRE 930></TD 931></TR 932></TABLE 933><P 934></P 935></DIV 936><HR><DIV 937CLASS="REFSECT2" 938><A 939NAME="AEN11424" 940></A 941><H3 942><A 943NAME="XMLXPATHOBJECTPTR" 944></A 945>xmlXPathObjectPtr</H3 946><TABLE 947BORDER="0" 948BGCOLOR="#D6E8FF" 949WIDTH="100%" 950CELLPADDING="6" 951><TR 952><TD 953><PRE 954CLASS="PROGRAMLISTING" 955>typedef xmlXPathObject *xmlXPathObjectPtr;</PRE 956></TD 957></TR 958></TABLE 959><P 960></P 961></DIV 962><HR><DIV 963CLASS="REFSECT2" 964><A 965NAME="AEN11429" 966></A 967><H3 968><A 969NAME="XMLXPATHCONVERTFUNC" 970></A 971>xmlXPathConvertFunc ()</H3 972><TABLE 973BORDER="0" 974BGCOLOR="#D6E8FF" 975WIDTH="100%" 976CELLPADDING="6" 977><TR 978><TD 979><PRE 980CLASS="PROGRAMLISTING" 981>int (*xmlXPathConvertFunc) (<A 982HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 983>xmlXPathObjectPtr</A 984> obj, 985 int type);</PRE 986></TD 987></TR 988></TABLE 989><P 990></P 991><DIV 992CLASS="INFORMALTABLE" 993><A 994NAME="AEN11435" 995></A 996><P 997></P 998><TABLE 999BORDER="0" 1000WIDTH="100%" 1001BGCOLOR="#FFD0D0" 1002CELLSPACING="0" 1003CELLPADDING="4" 1004CLASS="CALSTABLE" 1005><TBODY 1006><TR 1007><TD 1008WIDTH="20%" 1009ALIGN="RIGHT" 1010VALIGN="TOP" 1011><TT 1012CLASS="PARAMETER" 1013><I 1014>obj</I 1015></TT 1016> :</TD 1017><TD 1018WIDTH="80%" 1019ALIGN="LEFT" 1020VALIGN="TOP" 1021> </TD 1022></TR 1023><TR 1024><TD 1025WIDTH="20%" 1026ALIGN="RIGHT" 1027VALIGN="TOP" 1028><TT 1029CLASS="PARAMETER" 1030><I 1031>type</I 1032></TT 1033> :</TD 1034><TD 1035WIDTH="80%" 1036ALIGN="LEFT" 1037VALIGN="TOP" 1038> </TD 1039></TR 1040><TR 1041><TD 1042WIDTH="20%" 1043ALIGN="RIGHT" 1044VALIGN="TOP" 1045><I 1046CLASS="EMPHASIS" 1047>Returns</I 1048> :</TD 1049><TD 1050WIDTH="80%" 1051ALIGN="LEFT" 1052VALIGN="TOP" 1053> </TD 1054></TR 1055></TBODY 1056></TABLE 1057><P 1058></P 1059></DIV 1060></DIV 1061><HR><DIV 1062CLASS="REFSECT2" 1063><A 1064NAME="AEN11452" 1065></A 1066><H3 1067><A 1068NAME="XMLXPATHTYPE" 1069></A 1070>struct xmlXPathType</H3 1071><TABLE 1072BORDER="0" 1073BGCOLOR="#D6E8FF" 1074WIDTH="100%" 1075CELLPADDING="6" 1076><TR 1077><TD 1078><PRE 1079CLASS="PROGRAMLISTING" 1080>struct xmlXPathType { 1081 const xmlChar *name; /* the type name */ 1082 xmlXPathConvertFunc func; /* the conversion function */ 1083};</PRE 1084></TD 1085></TR 1086></TABLE 1087><P 1088></P 1089></DIV 1090><HR><DIV 1091CLASS="REFSECT2" 1092><A 1093NAME="AEN11457" 1094></A 1095><H3 1096><A 1097NAME="XMLXPATHTYPEPTR" 1098></A 1099>xmlXPathTypePtr</H3 1100><TABLE 1101BORDER="0" 1102BGCOLOR="#D6E8FF" 1103WIDTH="100%" 1104CELLPADDING="6" 1105><TR 1106><TD 1107><PRE 1108CLASS="PROGRAMLISTING" 1109>typedef xmlXPathType *xmlXPathTypePtr;</PRE 1110></TD 1111></TR 1112></TABLE 1113><P 1114></P 1115></DIV 1116><HR><DIV 1117CLASS="REFSECT2" 1118><A 1119NAME="AEN11462" 1120></A 1121><H3 1122><A 1123NAME="XMLXPATHVARIABLE" 1124></A 1125>struct xmlXPathVariable</H3 1126><TABLE 1127BORDER="0" 1128BGCOLOR="#D6E8FF" 1129WIDTH="100%" 1130CELLPADDING="6" 1131><TR 1132><TD 1133><PRE 1134CLASS="PROGRAMLISTING" 1135>struct xmlXPathVariable { 1136 const xmlChar *name; /* the variable name */ 1137 xmlXPathObjectPtr value; /* the value */ 1138};</PRE 1139></TD 1140></TR 1141></TABLE 1142><P 1143></P 1144></DIV 1145><HR><DIV 1146CLASS="REFSECT2" 1147><A 1148NAME="AEN11467" 1149></A 1150><H3 1151><A 1152NAME="XMLXPATHVARIABLEPTR" 1153></A 1154>xmlXPathVariablePtr</H3 1155><TABLE 1156BORDER="0" 1157BGCOLOR="#D6E8FF" 1158WIDTH="100%" 1159CELLPADDING="6" 1160><TR 1161><TD 1162><PRE 1163CLASS="PROGRAMLISTING" 1164>typedef xmlXPathVariable *xmlXPathVariablePtr;</PRE 1165></TD 1166></TR 1167></TABLE 1168><P 1169></P 1170></DIV 1171><HR><DIV 1172CLASS="REFSECT2" 1173><A 1174NAME="AEN11472" 1175></A 1176><H3 1177><A 1178NAME="XMLXPATHEVALFUNC" 1179></A 1180>xmlXPathEvalFunc ()</H3 1181><TABLE 1182BORDER="0" 1183BGCOLOR="#D6E8FF" 1184WIDTH="100%" 1185CELLPADDING="6" 1186><TR 1187><TD 1188><PRE 1189CLASS="PROGRAMLISTING" 1190>void (*xmlXPathEvalFunc) (<A 1191HREF="libxml-xpath.html#XMLXPATHPARSERCONTEXTPTR" 1192>xmlXPathParserContextPtr</A 1193> ctxt, 1194 int nargs);</PRE 1195></TD 1196></TR 1197></TABLE 1198><P 1199></P 1200><DIV 1201CLASS="INFORMALTABLE" 1202><A 1203NAME="AEN11478" 1204></A 1205><P 1206></P 1207><TABLE 1208BORDER="0" 1209WIDTH="100%" 1210BGCOLOR="#FFD0D0" 1211CELLSPACING="0" 1212CELLPADDING="4" 1213CLASS="CALSTABLE" 1214><TBODY 1215><TR 1216><TD 1217WIDTH="20%" 1218ALIGN="RIGHT" 1219VALIGN="TOP" 1220><TT 1221CLASS="PARAMETER" 1222><I 1223>ctxt</I 1224></TT 1225> :</TD 1226><TD 1227WIDTH="80%" 1228ALIGN="LEFT" 1229VALIGN="TOP" 1230> </TD 1231></TR 1232><TR 1233><TD 1234WIDTH="20%" 1235ALIGN="RIGHT" 1236VALIGN="TOP" 1237><TT 1238CLASS="PARAMETER" 1239><I 1240>nargs</I 1241></TT 1242> :</TD 1243><TD 1244WIDTH="80%" 1245ALIGN="LEFT" 1246VALIGN="TOP" 1247> </TD 1248></TR 1249></TBODY 1250></TABLE 1251><P 1252></P 1253></DIV 1254></DIV 1255><HR><DIV 1256CLASS="REFSECT2" 1257><A 1258NAME="AEN11491" 1259></A 1260><H3 1261><A 1262NAME="XMLXPATHFUNCT" 1263></A 1264>struct xmlXPathFunct</H3 1265><TABLE 1266BORDER="0" 1267BGCOLOR="#D6E8FF" 1268WIDTH="100%" 1269CELLPADDING="6" 1270><TR 1271><TD 1272><PRE 1273CLASS="PROGRAMLISTING" 1274>struct xmlXPathFunct { 1275 const xmlChar *name; /* the function name */ 1276 xmlXPathEvalFunc func; /* the evaluation function */ 1277};</PRE 1278></TD 1279></TR 1280></TABLE 1281><P 1282></P 1283></DIV 1284><HR><DIV 1285CLASS="REFSECT2" 1286><A 1287NAME="AEN11496" 1288></A 1289><H3 1290><A 1291NAME="XMLXPATHFUNCPTR" 1292></A 1293>xmlXPathFuncPtr</H3 1294><TABLE 1295BORDER="0" 1296BGCOLOR="#D6E8FF" 1297WIDTH="100%" 1298CELLPADDING="6" 1299><TR 1300><TD 1301><PRE 1302CLASS="PROGRAMLISTING" 1303>typedef xmlXPathFunct *xmlXPathFuncPtr;</PRE 1304></TD 1305></TR 1306></TABLE 1307><P 1308></P 1309></DIV 1310><HR><DIV 1311CLASS="REFSECT2" 1312><A 1313NAME="AEN11501" 1314></A 1315><H3 1316><A 1317NAME="XMLXPATHAXISFUNC" 1318></A 1319>xmlXPathAxisFunc ()</H3 1320><TABLE 1321BORDER="0" 1322BGCOLOR="#D6E8FF" 1323WIDTH="100%" 1324CELLPADDING="6" 1325><TR 1326><TD 1327><PRE 1328CLASS="PROGRAMLISTING" 1329><A 1330HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 1331>xmlXPathObjectPtr</A 1332> (*xmlXPathAxisFunc) (<A 1333HREF="libxml-xpath.html#XMLXPATHPARSERCONTEXTPTR" 1334>xmlXPathParserContextPtr</A 1335> ctxt, 1336 <A 1337HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 1338>xmlXPathObjectPtr</A 1339> cur);</PRE 1340></TD 1341></TR 1342></TABLE 1343><P 1344></P 1345><DIV 1346CLASS="INFORMALTABLE" 1347><A 1348NAME="AEN11509" 1349></A 1350><P 1351></P 1352><TABLE 1353BORDER="0" 1354WIDTH="100%" 1355BGCOLOR="#FFD0D0" 1356CELLSPACING="0" 1357CELLPADDING="4" 1358CLASS="CALSTABLE" 1359><TBODY 1360><TR 1361><TD 1362WIDTH="20%" 1363ALIGN="RIGHT" 1364VALIGN="TOP" 1365><TT 1366CLASS="PARAMETER" 1367><I 1368>ctxt</I 1369></TT 1370> :</TD 1371><TD 1372WIDTH="80%" 1373ALIGN="LEFT" 1374VALIGN="TOP" 1375> </TD 1376></TR 1377><TR 1378><TD 1379WIDTH="20%" 1380ALIGN="RIGHT" 1381VALIGN="TOP" 1382><TT 1383CLASS="PARAMETER" 1384><I 1385>cur</I 1386></TT 1387> :</TD 1388><TD 1389WIDTH="80%" 1390ALIGN="LEFT" 1391VALIGN="TOP" 1392> </TD 1393></TR 1394><TR 1395><TD 1396WIDTH="20%" 1397ALIGN="RIGHT" 1398VALIGN="TOP" 1399><I 1400CLASS="EMPHASIS" 1401>Returns</I 1402> :</TD 1403><TD 1404WIDTH="80%" 1405ALIGN="LEFT" 1406VALIGN="TOP" 1407> </TD 1408></TR 1409></TBODY 1410></TABLE 1411><P 1412></P 1413></DIV 1414></DIV 1415><HR><DIV 1416CLASS="REFSECT2" 1417><A 1418NAME="AEN11526" 1419></A 1420><H3 1421><A 1422NAME="XMLXPATHAXIS" 1423></A 1424>struct xmlXPathAxis</H3 1425><TABLE 1426BORDER="0" 1427BGCOLOR="#D6E8FF" 1428WIDTH="100%" 1429CELLPADDING="6" 1430><TR 1431><TD 1432><PRE 1433CLASS="PROGRAMLISTING" 1434>struct xmlXPathAxis { 1435 const xmlChar *name; /* the axis name */ 1436 xmlXPathAxisFunc func; /* the search function */ 1437};</PRE 1438></TD 1439></TR 1440></TABLE 1441><P 1442></P 1443></DIV 1444><HR><DIV 1445CLASS="REFSECT2" 1446><A 1447NAME="AEN11531" 1448></A 1449><H3 1450><A 1451NAME="XMLXPATHAXISPTR" 1452></A 1453>xmlXPathAxisPtr</H3 1454><TABLE 1455BORDER="0" 1456BGCOLOR="#D6E8FF" 1457WIDTH="100%" 1458CELLPADDING="6" 1459><TR 1460><TD 1461><PRE 1462CLASS="PROGRAMLISTING" 1463>typedef xmlXPathAxis *xmlXPathAxisPtr;</PRE 1464></TD 1465></TR 1466></TABLE 1467><P 1468></P 1469></DIV 1470><HR><DIV 1471CLASS="REFSECT2" 1472><A 1473NAME="AEN11536" 1474></A 1475><H3 1476><A 1477NAME="XMLXPATHCOMPEXPR" 1478></A 1479>struct xmlXPathCompExpr</H3 1480><TABLE 1481BORDER="0" 1482BGCOLOR="#D6E8FF" 1483WIDTH="100%" 1484CELLPADDING="6" 1485><TR 1486><TD 1487><PRE 1488CLASS="PROGRAMLISTING" 1489>struct xmlXPathCompExpr;</PRE 1490></TD 1491></TR 1492></TABLE 1493><P 1494>[14] Expr ::= OrExpr 1495[21] OrExpr ::= AndExpr 1496| OrExpr 'or' AndExpr </P 1497><P 1498>Parse and compile an expression</P 1499><P 1500></P 1501></DIV 1502><HR><DIV 1503CLASS="REFSECT2" 1504><A 1505NAME="AEN11543" 1506></A 1507><H3 1508><A 1509NAME="XMLXPATHCOMPEXPRPTR" 1510></A 1511>xmlXPathCompExprPtr</H3 1512><TABLE 1513BORDER="0" 1514BGCOLOR="#D6E8FF" 1515WIDTH="100%" 1516CELLPADDING="6" 1517><TR 1518><TD 1519><PRE 1520CLASS="PROGRAMLISTING" 1521>typedef xmlXPathCompExpr *xmlXPathCompExprPtr;</PRE 1522></TD 1523></TR 1524></TABLE 1525><P 1526></P 1527></DIV 1528><HR><DIV 1529CLASS="REFSECT2" 1530><A 1531NAME="AEN11548" 1532></A 1533><H3 1534><A 1535NAME="XMLXPATHFUNCTION" 1536></A 1537>xmlXPathFunction ()</H3 1538><TABLE 1539BORDER="0" 1540BGCOLOR="#D6E8FF" 1541WIDTH="100%" 1542CELLPADDING="6" 1543><TR 1544><TD 1545><PRE 1546CLASS="PROGRAMLISTING" 1547>void (*xmlXPathFunction) (<A 1548HREF="libxml-xpath.html#XMLXPATHPARSERCONTEXTPTR" 1549>xmlXPathParserContextPtr</A 1550> ctxt, 1551 int nargs);</PRE 1552></TD 1553></TR 1554></TABLE 1555><P 1556></P 1557><DIV 1558CLASS="INFORMALTABLE" 1559><A 1560NAME="AEN11554" 1561></A 1562><P 1563></P 1564><TABLE 1565BORDER="0" 1566WIDTH="100%" 1567BGCOLOR="#FFD0D0" 1568CELLSPACING="0" 1569CELLPADDING="4" 1570CLASS="CALSTABLE" 1571><TBODY 1572><TR 1573><TD 1574WIDTH="20%" 1575ALIGN="RIGHT" 1576VALIGN="TOP" 1577><TT 1578CLASS="PARAMETER" 1579><I 1580>ctxt</I 1581></TT 1582> :</TD 1583><TD 1584WIDTH="80%" 1585ALIGN="LEFT" 1586VALIGN="TOP" 1587> </TD 1588></TR 1589><TR 1590><TD 1591WIDTH="20%" 1592ALIGN="RIGHT" 1593VALIGN="TOP" 1594><TT 1595CLASS="PARAMETER" 1596><I 1597>nargs</I 1598></TT 1599> :</TD 1600><TD 1601WIDTH="80%" 1602ALIGN="LEFT" 1603VALIGN="TOP" 1604> </TD 1605></TR 1606></TBODY 1607></TABLE 1608><P 1609></P 1610></DIV 1611></DIV 1612><HR><DIV 1613CLASS="REFSECT2" 1614><A 1615NAME="AEN11567" 1616></A 1617><H3 1618><A 1619NAME="XMLXPATHNODESETGETLENGTH" 1620></A 1621>xmlXPathNodeSetGetLength()</H3 1622><TABLE 1623BORDER="0" 1624BGCOLOR="#D6E8FF" 1625WIDTH="100%" 1626CELLPADDING="6" 1627><TR 1628><TD 1629><PRE 1630CLASS="PROGRAMLISTING" 1631>#define xmlXPathNodeSetGetLength(ns) ((ns) ? (ns)->nodeNr : 0)</PRE 1632></TD 1633></TR 1634></TABLE 1635><P 1636></P 1637><DIV 1638CLASS="INFORMALTABLE" 1639><A 1640NAME="AEN11572" 1641></A 1642><P 1643></P 1644><TABLE 1645BORDER="0" 1646WIDTH="100%" 1647BGCOLOR="#FFD0D0" 1648CELLSPACING="0" 1649CELLPADDING="4" 1650CLASS="CALSTABLE" 1651><TBODY 1652><TR 1653><TD 1654WIDTH="20%" 1655ALIGN="RIGHT" 1656VALIGN="TOP" 1657><TT 1658CLASS="PARAMETER" 1659><I 1660>ns</I 1661></TT 1662> :</TD 1663><TD 1664WIDTH="80%" 1665ALIGN="LEFT" 1666VALIGN="TOP" 1667> </TD 1668></TR 1669></TBODY 1670></TABLE 1671><P 1672></P 1673></DIV 1674></DIV 1675><HR><DIV 1676CLASS="REFSECT2" 1677><A 1678NAME="AEN11581" 1679></A 1680><H3 1681><A 1682NAME="XMLXPATHNODESETITEM" 1683></A 1684>xmlXPathNodeSetItem()</H3 1685><TABLE 1686BORDER="0" 1687BGCOLOR="#D6E8FF" 1688WIDTH="100%" 1689CELLPADDING="6" 1690><TR 1691><TD 1692><PRE 1693CLASS="PROGRAMLISTING" 1694>#define xmlXPathNodeSetItem(ns, index)</PRE 1695></TD 1696></TR 1697></TABLE 1698><P 1699></P 1700><DIV 1701CLASS="INFORMALTABLE" 1702><A 1703NAME="AEN11586" 1704></A 1705><P 1706></P 1707><TABLE 1708BORDER="0" 1709WIDTH="100%" 1710BGCOLOR="#FFD0D0" 1711CELLSPACING="0" 1712CELLPADDING="4" 1713CLASS="CALSTABLE" 1714><TBODY 1715><TR 1716><TD 1717WIDTH="20%" 1718ALIGN="RIGHT" 1719VALIGN="TOP" 1720><TT 1721CLASS="PARAMETER" 1722><I 1723>ns</I 1724></TT 1725> :</TD 1726><TD 1727WIDTH="80%" 1728ALIGN="LEFT" 1729VALIGN="TOP" 1730> </TD 1731></TR 1732><TR 1733><TD 1734WIDTH="20%" 1735ALIGN="RIGHT" 1736VALIGN="TOP" 1737><TT 1738CLASS="PARAMETER" 1739><I 1740>index</I 1741></TT 1742> :</TD 1743><TD 1744WIDTH="80%" 1745ALIGN="LEFT" 1746VALIGN="TOP" 1747> </TD 1748></TR 1749></TBODY 1750></TABLE 1751><P 1752></P 1753></DIV 1754></DIV 1755><HR><DIV 1756CLASS="REFSECT2" 1757><A 1758NAME="AEN11599" 1759></A 1760><H3 1761><A 1762NAME="XMLXPATHNODESETISEMPTY" 1763></A 1764>xmlXPathNodeSetIsEmpty()</H3 1765><TABLE 1766BORDER="0" 1767BGCOLOR="#D6E8FF" 1768WIDTH="100%" 1769CELLPADDING="6" 1770><TR 1771><TD 1772><PRE 1773CLASS="PROGRAMLISTING" 1774>#define xmlXPathNodeSetIsEmpty(ns)</PRE 1775></TD 1776></TR 1777></TABLE 1778><P 1779></P 1780><DIV 1781CLASS="INFORMALTABLE" 1782><A 1783NAME="AEN11604" 1784></A 1785><P 1786></P 1787><TABLE 1788BORDER="0" 1789WIDTH="100%" 1790BGCOLOR="#FFD0D0" 1791CELLSPACING="0" 1792CELLPADDING="4" 1793CLASS="CALSTABLE" 1794><TBODY 1795><TR 1796><TD 1797WIDTH="20%" 1798ALIGN="RIGHT" 1799VALIGN="TOP" 1800><TT 1801CLASS="PARAMETER" 1802><I 1803>ns</I 1804></TT 1805> :</TD 1806><TD 1807WIDTH="80%" 1808ALIGN="LEFT" 1809VALIGN="TOP" 1810> </TD 1811></TR 1812></TBODY 1813></TABLE 1814><P 1815></P 1816></DIV 1817></DIV 1818><HR><DIV 1819CLASS="REFSECT2" 1820><A 1821NAME="AEN11613" 1822></A 1823><H3 1824><A 1825NAME="XMLXPATHFREEOBJECT" 1826></A 1827>xmlXPathFreeObject ()</H3 1828><TABLE 1829BORDER="0" 1830BGCOLOR="#D6E8FF" 1831WIDTH="100%" 1832CELLPADDING="6" 1833><TR 1834><TD 1835><PRE 1836CLASS="PROGRAMLISTING" 1837>void xmlXPathFreeObject (<A 1838HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 1839>xmlXPathObjectPtr</A 1840> obj);</PRE 1841></TD 1842></TR 1843></TABLE 1844><P 1845>Free up an xmlXPathObjectPtr object.</P 1846><P 1847></P 1848><DIV 1849CLASS="INFORMALTABLE" 1850><A 1851NAME="AEN11620" 1852></A 1853><P 1854></P 1855><TABLE 1856BORDER="0" 1857WIDTH="100%" 1858BGCOLOR="#FFD0D0" 1859CELLSPACING="0" 1860CELLPADDING="4" 1861CLASS="CALSTABLE" 1862><TBODY 1863><TR 1864><TD 1865WIDTH="20%" 1866ALIGN="RIGHT" 1867VALIGN="TOP" 1868><TT 1869CLASS="PARAMETER" 1870><I 1871>obj</I 1872></TT 1873> :</TD 1874><TD 1875WIDTH="80%" 1876ALIGN="LEFT" 1877VALIGN="TOP" 1878> the object to free</TD 1879></TR 1880></TBODY 1881></TABLE 1882><P 1883></P 1884></DIV 1885></DIV 1886><HR><DIV 1887CLASS="REFSECT2" 1888><A 1889NAME="AEN11629" 1890></A 1891><H3 1892><A 1893NAME="XMLXPATHNODESETCREATE" 1894></A 1895>xmlXPathNodeSetCreate ()</H3 1896><TABLE 1897BORDER="0" 1898BGCOLOR="#D6E8FF" 1899WIDTH="100%" 1900CELLPADDING="6" 1901><TR 1902><TD 1903><PRE 1904CLASS="PROGRAMLISTING" 1905><A 1906HREF="libxml-xpath.html#XMLNODESETPTR" 1907>xmlNodeSetPtr</A 1908> xmlXPathNodeSetCreate (<A 1909HREF="libxml-tree.html#XMLNODEPTR" 1910>xmlNodePtr</A 1911> val);</PRE 1912></TD 1913></TR 1914></TABLE 1915><P 1916>Create a new xmlNodeSetPtr of type double and of value <TT 1917CLASS="PARAMETER" 1918><I 1919>val</I 1920></TT 1921></P 1922><P 1923></P 1924><DIV 1925CLASS="INFORMALTABLE" 1926><A 1927NAME="AEN11638" 1928></A 1929><P 1930></P 1931><TABLE 1932BORDER="0" 1933WIDTH="100%" 1934BGCOLOR="#FFD0D0" 1935CELLSPACING="0" 1936CELLPADDING="4" 1937CLASS="CALSTABLE" 1938><TBODY 1939><TR 1940><TD 1941WIDTH="20%" 1942ALIGN="RIGHT" 1943VALIGN="TOP" 1944><TT 1945CLASS="PARAMETER" 1946><I 1947>val</I 1948></TT 1949> :</TD 1950><TD 1951WIDTH="80%" 1952ALIGN="LEFT" 1953VALIGN="TOP" 1954> an initial xmlNodePtr, or NULL</TD 1955></TR 1956><TR 1957><TD 1958WIDTH="20%" 1959ALIGN="RIGHT" 1960VALIGN="TOP" 1961><I 1962CLASS="EMPHASIS" 1963>Returns</I 1964> :</TD 1965><TD 1966WIDTH="80%" 1967ALIGN="LEFT" 1968VALIGN="TOP" 1969>the newly created object.</TD 1970></TR 1971></TBODY 1972></TABLE 1973><P 1974></P 1975></DIV 1976></DIV 1977><HR><DIV 1978CLASS="REFSECT2" 1979><A 1980NAME="AEN11651" 1981></A 1982><H3 1983><A 1984NAME="XMLXPATHFREENODESETLIST" 1985></A 1986>xmlXPathFreeNodeSetList ()</H3 1987><TABLE 1988BORDER="0" 1989BGCOLOR="#D6E8FF" 1990WIDTH="100%" 1991CELLPADDING="6" 1992><TR 1993><TD 1994><PRE 1995CLASS="PROGRAMLISTING" 1996>void xmlXPathFreeNodeSetList (<A 1997HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 1998>xmlXPathObjectPtr</A 1999> obj);</PRE 2000></TD 2001></TR 2002></TABLE 2003><P 2004>Free up the xmlXPathObjectPtr <TT 2005CLASS="PARAMETER" 2006><I 2007>obj</I 2008></TT 2009> but don't deallocate the objects in 2010the list contrary to <A 2011HREF="libxml-xpath.html#XMLXPATHFREEOBJECT" 2012>xmlXPathFreeObject</A 2013>().</P 2014><P 2015></P 2016><DIV 2017CLASS="INFORMALTABLE" 2018><A 2019NAME="AEN11660" 2020></A 2021><P 2022></P 2023><TABLE 2024BORDER="0" 2025WIDTH="100%" 2026BGCOLOR="#FFD0D0" 2027CELLSPACING="0" 2028CELLPADDING="4" 2029CLASS="CALSTABLE" 2030><TBODY 2031><TR 2032><TD 2033WIDTH="20%" 2034ALIGN="RIGHT" 2035VALIGN="TOP" 2036><TT 2037CLASS="PARAMETER" 2038><I 2039>obj</I 2040></TT 2041> :</TD 2042><TD 2043WIDTH="80%" 2044ALIGN="LEFT" 2045VALIGN="TOP" 2046> an existing NodeSetList object</TD 2047></TR 2048></TBODY 2049></TABLE 2050><P 2051></P 2052></DIV 2053></DIV 2054><HR><DIV 2055CLASS="REFSECT2" 2056><A 2057NAME="AEN11669" 2058></A 2059><H3 2060><A 2061NAME="XMLXPATHFREENODESET" 2062></A 2063>xmlXPathFreeNodeSet ()</H3 2064><TABLE 2065BORDER="0" 2066BGCOLOR="#D6E8FF" 2067WIDTH="100%" 2068CELLPADDING="6" 2069><TR 2070><TD 2071><PRE 2072CLASS="PROGRAMLISTING" 2073>void xmlXPathFreeNodeSet (<A 2074HREF="libxml-xpath.html#XMLNODESETPTR" 2075>xmlNodeSetPtr</A 2076> obj);</PRE 2077></TD 2078></TR 2079></TABLE 2080><P 2081>Free the NodeSet compound (not the actual nodes !).</P 2082><P 2083></P 2084><DIV 2085CLASS="INFORMALTABLE" 2086><A 2087NAME="AEN11676" 2088></A 2089><P 2090></P 2091><TABLE 2092BORDER="0" 2093WIDTH="100%" 2094BGCOLOR="#FFD0D0" 2095CELLSPACING="0" 2096CELLPADDING="4" 2097CLASS="CALSTABLE" 2098><TBODY 2099><TR 2100><TD 2101WIDTH="20%" 2102ALIGN="RIGHT" 2103VALIGN="TOP" 2104><TT 2105CLASS="PARAMETER" 2106><I 2107>obj</I 2108></TT 2109> :</TD 2110><TD 2111WIDTH="80%" 2112ALIGN="LEFT" 2113VALIGN="TOP" 2114> the xmlNodeSetPtr to free</TD 2115></TR 2116></TBODY 2117></TABLE 2118><P 2119></P 2120></DIV 2121></DIV 2122><HR><DIV 2123CLASS="REFSECT2" 2124><A 2125NAME="AEN11685" 2126></A 2127><H3 2128><A 2129NAME="XMLXPATHOBJECTCOPY" 2130></A 2131>xmlXPathObjectCopy ()</H3 2132><TABLE 2133BORDER="0" 2134BGCOLOR="#D6E8FF" 2135WIDTH="100%" 2136CELLPADDING="6" 2137><TR 2138><TD 2139><PRE 2140CLASS="PROGRAMLISTING" 2141><A 2142HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 2143>xmlXPathObjectPtr</A 2144> xmlXPathObjectCopy (<A 2145HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 2146>xmlXPathObjectPtr</A 2147> val);</PRE 2148></TD 2149></TR 2150></TABLE 2151><P 2152>allocate a new copy of a given object</P 2153><P 2154></P 2155><DIV 2156CLASS="INFORMALTABLE" 2157><A 2158NAME="AEN11693" 2159></A 2160><P 2161></P 2162><TABLE 2163BORDER="0" 2164WIDTH="100%" 2165BGCOLOR="#FFD0D0" 2166CELLSPACING="0" 2167CELLPADDING="4" 2168CLASS="CALSTABLE" 2169><TBODY 2170><TR 2171><TD 2172WIDTH="20%" 2173ALIGN="RIGHT" 2174VALIGN="TOP" 2175><TT 2176CLASS="PARAMETER" 2177><I 2178>val</I 2179></TT 2180> :</TD 2181><TD 2182WIDTH="80%" 2183ALIGN="LEFT" 2184VALIGN="TOP" 2185> the original object</TD 2186></TR 2187><TR 2188><TD 2189WIDTH="20%" 2190ALIGN="RIGHT" 2191VALIGN="TOP" 2192><I 2193CLASS="EMPHASIS" 2194>Returns</I 2195> :</TD 2196><TD 2197WIDTH="80%" 2198ALIGN="LEFT" 2199VALIGN="TOP" 2200>the newly created object.</TD 2201></TR 2202></TBODY 2203></TABLE 2204><P 2205></P 2206></DIV 2207></DIV 2208><HR><DIV 2209CLASS="REFSECT2" 2210><A 2211NAME="AEN11706" 2212></A 2213><H3 2214><A 2215NAME="XMLXPATHCMPNODES" 2216></A 2217>xmlXPathCmpNodes ()</H3 2218><TABLE 2219BORDER="0" 2220BGCOLOR="#D6E8FF" 2221WIDTH="100%" 2222CELLPADDING="6" 2223><TR 2224><TD 2225><PRE 2226CLASS="PROGRAMLISTING" 2227>int xmlXPathCmpNodes (<A 2228HREF="libxml-tree.html#XMLNODEPTR" 2229>xmlNodePtr</A 2230> node1, 2231 <A 2232HREF="libxml-tree.html#XMLNODEPTR" 2233>xmlNodePtr</A 2234> node2);</PRE 2235></TD 2236></TR 2237></TABLE 2238><P 2239>Compare two nodes w.r.t document order</P 2240><P 2241></P 2242><DIV 2243CLASS="INFORMALTABLE" 2244><A 2245NAME="AEN11714" 2246></A 2247><P 2248></P 2249><TABLE 2250BORDER="0" 2251WIDTH="100%" 2252BGCOLOR="#FFD0D0" 2253CELLSPACING="0" 2254CELLPADDING="4" 2255CLASS="CALSTABLE" 2256><TBODY 2257><TR 2258><TD 2259WIDTH="20%" 2260ALIGN="RIGHT" 2261VALIGN="TOP" 2262><TT 2263CLASS="PARAMETER" 2264><I 2265>node1</I 2266></TT 2267> :</TD 2268><TD 2269WIDTH="80%" 2270ALIGN="LEFT" 2271VALIGN="TOP" 2272> the first node</TD 2273></TR 2274><TR 2275><TD 2276WIDTH="20%" 2277ALIGN="RIGHT" 2278VALIGN="TOP" 2279><TT 2280CLASS="PARAMETER" 2281><I 2282>node2</I 2283></TT 2284> :</TD 2285><TD 2286WIDTH="80%" 2287ALIGN="LEFT" 2288VALIGN="TOP" 2289> the second node</TD 2290></TR 2291><TR 2292><TD 2293WIDTH="20%" 2294ALIGN="RIGHT" 2295VALIGN="TOP" 2296><I 2297CLASS="EMPHASIS" 2298>Returns</I 2299> :</TD 2300><TD 2301WIDTH="80%" 2302ALIGN="LEFT" 2303VALIGN="TOP" 2304>-2 in case of error 1 if first point < second point, 0 if 2305that's the same node, -1 otherwise</TD 2306></TR 2307></TBODY 2308></TABLE 2309><P 2310></P 2311></DIV 2312></DIV 2313><HR><DIV 2314CLASS="REFSECT2" 2315><A 2316NAME="AEN11731" 2317></A 2318><H3 2319><A 2320NAME="XMLXPATHCASTNUMBERTOBOOLEAN" 2321></A 2322>xmlXPathCastNumberToBoolean ()</H3 2323><TABLE 2324BORDER="0" 2325BGCOLOR="#D6E8FF" 2326WIDTH="100%" 2327CELLPADDING="6" 2328><TR 2329><TD 2330><PRE 2331CLASS="PROGRAMLISTING" 2332>int xmlXPathCastNumberToBoolean (<GTKDOCLINK 2333HREF="DOUBLE" 2334>double</GTKDOCLINK 2335> val);</PRE 2336></TD 2337></TR 2338></TABLE 2339><P 2340>Converts a number to its boolean value</P 2341><P 2342></P 2343><DIV 2344CLASS="INFORMALTABLE" 2345><A 2346NAME="AEN11738" 2347></A 2348><P 2349></P 2350><TABLE 2351BORDER="0" 2352WIDTH="100%" 2353BGCOLOR="#FFD0D0" 2354CELLSPACING="0" 2355CELLPADDING="4" 2356CLASS="CALSTABLE" 2357><TBODY 2358><TR 2359><TD 2360WIDTH="20%" 2361ALIGN="RIGHT" 2362VALIGN="TOP" 2363><TT 2364CLASS="PARAMETER" 2365><I 2366>val</I 2367></TT 2368> :</TD 2369><TD 2370WIDTH="80%" 2371ALIGN="LEFT" 2372VALIGN="TOP" 2373> a number</TD 2374></TR 2375><TR 2376><TD 2377WIDTH="20%" 2378ALIGN="RIGHT" 2379VALIGN="TOP" 2380><I 2381CLASS="EMPHASIS" 2382>Returns</I 2383> :</TD 2384><TD 2385WIDTH="80%" 2386ALIGN="LEFT" 2387VALIGN="TOP" 2388>the boolean value</TD 2389></TR 2390></TBODY 2391></TABLE 2392><P 2393></P 2394></DIV 2395></DIV 2396><HR><DIV 2397CLASS="REFSECT2" 2398><A 2399NAME="AEN11751" 2400></A 2401><H3 2402><A 2403NAME="XMLXPATHCASTSTRINGTOBOOLEAN" 2404></A 2405>xmlXPathCastStringToBoolean ()</H3 2406><TABLE 2407BORDER="0" 2408BGCOLOR="#D6E8FF" 2409WIDTH="100%" 2410CELLPADDING="6" 2411><TR 2412><TD 2413><PRE 2414CLASS="PROGRAMLISTING" 2415>int xmlXPathCastStringToBoolean (const <A 2416HREF="libxml-tree.html#XMLCHAR" 2417>xmlChar</A 2418> *val);</PRE 2419></TD 2420></TR 2421></TABLE 2422><P 2423>Converts a string to its boolean value</P 2424><P 2425></P 2426><DIV 2427CLASS="INFORMALTABLE" 2428><A 2429NAME="AEN11758" 2430></A 2431><P 2432></P 2433><TABLE 2434BORDER="0" 2435WIDTH="100%" 2436BGCOLOR="#FFD0D0" 2437CELLSPACING="0" 2438CELLPADDING="4" 2439CLASS="CALSTABLE" 2440><TBODY 2441><TR 2442><TD 2443WIDTH="20%" 2444ALIGN="RIGHT" 2445VALIGN="TOP" 2446><TT 2447CLASS="PARAMETER" 2448><I 2449>val</I 2450></TT 2451> :</TD 2452><TD 2453WIDTH="80%" 2454ALIGN="LEFT" 2455VALIGN="TOP" 2456> a string</TD 2457></TR 2458><TR 2459><TD 2460WIDTH="20%" 2461ALIGN="RIGHT" 2462VALIGN="TOP" 2463><I 2464CLASS="EMPHASIS" 2465>Returns</I 2466> :</TD 2467><TD 2468WIDTH="80%" 2469ALIGN="LEFT" 2470VALIGN="TOP" 2471>the boolean value</TD 2472></TR 2473></TBODY 2474></TABLE 2475><P 2476></P 2477></DIV 2478></DIV 2479><HR><DIV 2480CLASS="REFSECT2" 2481><A 2482NAME="AEN11771" 2483></A 2484><H3 2485><A 2486NAME="XMLXPATHCASTNODESETTOBOOLEAN" 2487></A 2488>xmlXPathCastNodeSetToBoolean ()</H3 2489><TABLE 2490BORDER="0" 2491BGCOLOR="#D6E8FF" 2492WIDTH="100%" 2493CELLPADDING="6" 2494><TR 2495><TD 2496><PRE 2497CLASS="PROGRAMLISTING" 2498>int xmlXPathCastNodeSetToBoolean (<A 2499HREF="libxml-xpath.html#XMLNODESETPTR" 2500>xmlNodeSetPtr</A 2501> ns);</PRE 2502></TD 2503></TR 2504></TABLE 2505><P 2506>Converts a node-set to its boolean value</P 2507><P 2508></P 2509><DIV 2510CLASS="INFORMALTABLE" 2511><A 2512NAME="AEN11778" 2513></A 2514><P 2515></P 2516><TABLE 2517BORDER="0" 2518WIDTH="100%" 2519BGCOLOR="#FFD0D0" 2520CELLSPACING="0" 2521CELLPADDING="4" 2522CLASS="CALSTABLE" 2523><TBODY 2524><TR 2525><TD 2526WIDTH="20%" 2527ALIGN="RIGHT" 2528VALIGN="TOP" 2529><TT 2530CLASS="PARAMETER" 2531><I 2532>ns</I 2533></TT 2534> :</TD 2535><TD 2536WIDTH="80%" 2537ALIGN="LEFT" 2538VALIGN="TOP" 2539> a node-set</TD 2540></TR 2541><TR 2542><TD 2543WIDTH="20%" 2544ALIGN="RIGHT" 2545VALIGN="TOP" 2546><I 2547CLASS="EMPHASIS" 2548>Returns</I 2549> :</TD 2550><TD 2551WIDTH="80%" 2552ALIGN="LEFT" 2553VALIGN="TOP" 2554>the boolean value</TD 2555></TR 2556></TBODY 2557></TABLE 2558><P 2559></P 2560></DIV 2561></DIV 2562><HR><DIV 2563CLASS="REFSECT2" 2564><A 2565NAME="AEN11791" 2566></A 2567><H3 2568><A 2569NAME="XMLXPATHCASTTOBOOLEAN" 2570></A 2571>xmlXPathCastToBoolean ()</H3 2572><TABLE 2573BORDER="0" 2574BGCOLOR="#D6E8FF" 2575WIDTH="100%" 2576CELLPADDING="6" 2577><TR 2578><TD 2579><PRE 2580CLASS="PROGRAMLISTING" 2581>int xmlXPathCastToBoolean (<A 2582HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 2583>xmlXPathObjectPtr</A 2584> val);</PRE 2585></TD 2586></TR 2587></TABLE 2588><P 2589>Converts an XPath object to its boolean value</P 2590><P 2591></P 2592><DIV 2593CLASS="INFORMALTABLE" 2594><A 2595NAME="AEN11798" 2596></A 2597><P 2598></P 2599><TABLE 2600BORDER="0" 2601WIDTH="100%" 2602BGCOLOR="#FFD0D0" 2603CELLSPACING="0" 2604CELLPADDING="4" 2605CLASS="CALSTABLE" 2606><TBODY 2607><TR 2608><TD 2609WIDTH="20%" 2610ALIGN="RIGHT" 2611VALIGN="TOP" 2612><TT 2613CLASS="PARAMETER" 2614><I 2615>val</I 2616></TT 2617> :</TD 2618><TD 2619WIDTH="80%" 2620ALIGN="LEFT" 2621VALIGN="TOP" 2622> an XPath object</TD 2623></TR 2624><TR 2625><TD 2626WIDTH="20%" 2627ALIGN="RIGHT" 2628VALIGN="TOP" 2629><I 2630CLASS="EMPHASIS" 2631>Returns</I 2632> :</TD 2633><TD 2634WIDTH="80%" 2635ALIGN="LEFT" 2636VALIGN="TOP" 2637>the boolean value</TD 2638></TR 2639></TBODY 2640></TABLE 2641><P 2642></P 2643></DIV 2644></DIV 2645><HR><DIV 2646CLASS="REFSECT2" 2647><A 2648NAME="AEN11811" 2649></A 2650><H3 2651><A 2652NAME="XMLXPATHCASTBOOLEANTONUMBER" 2653></A 2654>xmlXPathCastBooleanToNumber ()</H3 2655><TABLE 2656BORDER="0" 2657BGCOLOR="#D6E8FF" 2658WIDTH="100%" 2659CELLPADDING="6" 2660><TR 2661><TD 2662><PRE 2663CLASS="PROGRAMLISTING" 2664><GTKDOCLINK 2665HREF="DOUBLE" 2666>double</GTKDOCLINK 2667> xmlXPathCastBooleanToNumber (int val);</PRE 2668></TD 2669></TR 2670></TABLE 2671><P 2672>Converts a boolean to its number value</P 2673><P 2674></P 2675><DIV 2676CLASS="INFORMALTABLE" 2677><A 2678NAME="AEN11818" 2679></A 2680><P 2681></P 2682><TABLE 2683BORDER="0" 2684WIDTH="100%" 2685BGCOLOR="#FFD0D0" 2686CELLSPACING="0" 2687CELLPADDING="4" 2688CLASS="CALSTABLE" 2689><TBODY 2690><TR 2691><TD 2692WIDTH="20%" 2693ALIGN="RIGHT" 2694VALIGN="TOP" 2695><TT 2696CLASS="PARAMETER" 2697><I 2698>val</I 2699></TT 2700> :</TD 2701><TD 2702WIDTH="80%" 2703ALIGN="LEFT" 2704VALIGN="TOP" 2705> a boolean</TD 2706></TR 2707><TR 2708><TD 2709WIDTH="20%" 2710ALIGN="RIGHT" 2711VALIGN="TOP" 2712><I 2713CLASS="EMPHASIS" 2714>Returns</I 2715> :</TD 2716><TD 2717WIDTH="80%" 2718ALIGN="LEFT" 2719VALIGN="TOP" 2720>the number value</TD 2721></TR 2722></TBODY 2723></TABLE 2724><P 2725></P 2726></DIV 2727></DIV 2728><HR><DIV 2729CLASS="REFSECT2" 2730><A 2731NAME="AEN11831" 2732></A 2733><H3 2734><A 2735NAME="XMLXPATHCASTSTRINGTONUMBER" 2736></A 2737>xmlXPathCastStringToNumber ()</H3 2738><TABLE 2739BORDER="0" 2740BGCOLOR="#D6E8FF" 2741WIDTH="100%" 2742CELLPADDING="6" 2743><TR 2744><TD 2745><PRE 2746CLASS="PROGRAMLISTING" 2747><GTKDOCLINK 2748HREF="DOUBLE" 2749>double</GTKDOCLINK 2750> xmlXPathCastStringToNumber (const <A 2751HREF="libxml-tree.html#XMLCHAR" 2752>xmlChar</A 2753> *val);</PRE 2754></TD 2755></TR 2756></TABLE 2757><P 2758>Converts a string to its number value</P 2759><P 2760></P 2761><DIV 2762CLASS="INFORMALTABLE" 2763><A 2764NAME="AEN11839" 2765></A 2766><P 2767></P 2768><TABLE 2769BORDER="0" 2770WIDTH="100%" 2771BGCOLOR="#FFD0D0" 2772CELLSPACING="0" 2773CELLPADDING="4" 2774CLASS="CALSTABLE" 2775><TBODY 2776><TR 2777><TD 2778WIDTH="20%" 2779ALIGN="RIGHT" 2780VALIGN="TOP" 2781><TT 2782CLASS="PARAMETER" 2783><I 2784>val</I 2785></TT 2786> :</TD 2787><TD 2788WIDTH="80%" 2789ALIGN="LEFT" 2790VALIGN="TOP" 2791> a string</TD 2792></TR 2793><TR 2794><TD 2795WIDTH="20%" 2796ALIGN="RIGHT" 2797VALIGN="TOP" 2798><I 2799CLASS="EMPHASIS" 2800>Returns</I 2801> :</TD 2802><TD 2803WIDTH="80%" 2804ALIGN="LEFT" 2805VALIGN="TOP" 2806>the number value</TD 2807></TR 2808></TBODY 2809></TABLE 2810><P 2811></P 2812></DIV 2813></DIV 2814><HR><DIV 2815CLASS="REFSECT2" 2816><A 2817NAME="AEN11852" 2818></A 2819><H3 2820><A 2821NAME="XMLXPATHCASTNODETONUMBER" 2822></A 2823>xmlXPathCastNodeToNumber ()</H3 2824><TABLE 2825BORDER="0" 2826BGCOLOR="#D6E8FF" 2827WIDTH="100%" 2828CELLPADDING="6" 2829><TR 2830><TD 2831><PRE 2832CLASS="PROGRAMLISTING" 2833><GTKDOCLINK 2834HREF="DOUBLE" 2835>double</GTKDOCLINK 2836> xmlXPathCastNodeToNumber (<A 2837HREF="libxml-tree.html#XMLNODEPTR" 2838>xmlNodePtr</A 2839> node);</PRE 2840></TD 2841></TR 2842></TABLE 2843><P 2844>Converts a node to its number value</P 2845><P 2846></P 2847><DIV 2848CLASS="INFORMALTABLE" 2849><A 2850NAME="AEN11860" 2851></A 2852><P 2853></P 2854><TABLE 2855BORDER="0" 2856WIDTH="100%" 2857BGCOLOR="#FFD0D0" 2858CELLSPACING="0" 2859CELLPADDING="4" 2860CLASS="CALSTABLE" 2861><TBODY 2862><TR 2863><TD 2864WIDTH="20%" 2865ALIGN="RIGHT" 2866VALIGN="TOP" 2867><TT 2868CLASS="PARAMETER" 2869><I 2870>node</I 2871></TT 2872> :</TD 2873><TD 2874WIDTH="80%" 2875ALIGN="LEFT" 2876VALIGN="TOP" 2877> a node</TD 2878></TR 2879><TR 2880><TD 2881WIDTH="20%" 2882ALIGN="RIGHT" 2883VALIGN="TOP" 2884><I 2885CLASS="EMPHASIS" 2886>Returns</I 2887> :</TD 2888><TD 2889WIDTH="80%" 2890ALIGN="LEFT" 2891VALIGN="TOP" 2892>the number value</TD 2893></TR 2894></TBODY 2895></TABLE 2896><P 2897></P 2898></DIV 2899></DIV 2900><HR><DIV 2901CLASS="REFSECT2" 2902><A 2903NAME="AEN11873" 2904></A 2905><H3 2906><A 2907NAME="XMLXPATHCASTNODESETTONUMBER" 2908></A 2909>xmlXPathCastNodeSetToNumber ()</H3 2910><TABLE 2911BORDER="0" 2912BGCOLOR="#D6E8FF" 2913WIDTH="100%" 2914CELLPADDING="6" 2915><TR 2916><TD 2917><PRE 2918CLASS="PROGRAMLISTING" 2919><GTKDOCLINK 2920HREF="DOUBLE" 2921>double</GTKDOCLINK 2922> xmlXPathCastNodeSetToNumber (<A 2923HREF="libxml-xpath.html#XMLNODESETPTR" 2924>xmlNodeSetPtr</A 2925> ns);</PRE 2926></TD 2927></TR 2928></TABLE 2929><P 2930>Converts a node-set to its number value</P 2931><P 2932></P 2933><DIV 2934CLASS="INFORMALTABLE" 2935><A 2936NAME="AEN11881" 2937></A 2938><P 2939></P 2940><TABLE 2941BORDER="0" 2942WIDTH="100%" 2943BGCOLOR="#FFD0D0" 2944CELLSPACING="0" 2945CELLPADDING="4" 2946CLASS="CALSTABLE" 2947><TBODY 2948><TR 2949><TD 2950WIDTH="20%" 2951ALIGN="RIGHT" 2952VALIGN="TOP" 2953><TT 2954CLASS="PARAMETER" 2955><I 2956>ns</I 2957></TT 2958> :</TD 2959><TD 2960WIDTH="80%" 2961ALIGN="LEFT" 2962VALIGN="TOP" 2963> a node-set</TD 2964></TR 2965><TR 2966><TD 2967WIDTH="20%" 2968ALIGN="RIGHT" 2969VALIGN="TOP" 2970><I 2971CLASS="EMPHASIS" 2972>Returns</I 2973> :</TD 2974><TD 2975WIDTH="80%" 2976ALIGN="LEFT" 2977VALIGN="TOP" 2978>the number value</TD 2979></TR 2980></TBODY 2981></TABLE 2982><P 2983></P 2984></DIV 2985></DIV 2986><HR><DIV 2987CLASS="REFSECT2" 2988><A 2989NAME="AEN11894" 2990></A 2991><H3 2992><A 2993NAME="XMLXPATHCASTTONUMBER" 2994></A 2995>xmlXPathCastToNumber ()</H3 2996><TABLE 2997BORDER="0" 2998BGCOLOR="#D6E8FF" 2999WIDTH="100%" 3000CELLPADDING="6" 3001><TR 3002><TD 3003><PRE 3004CLASS="PROGRAMLISTING" 3005><GTKDOCLINK 3006HREF="DOUBLE" 3007>double</GTKDOCLINK 3008> xmlXPathCastToNumber (<A 3009HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 3010>xmlXPathObjectPtr</A 3011> val);</PRE 3012></TD 3013></TR 3014></TABLE 3015><P 3016>Converts an XPath object to its number value</P 3017><P 3018></P 3019><DIV 3020CLASS="INFORMALTABLE" 3021><A 3022NAME="AEN11902" 3023></A 3024><P 3025></P 3026><TABLE 3027BORDER="0" 3028WIDTH="100%" 3029BGCOLOR="#FFD0D0" 3030CELLSPACING="0" 3031CELLPADDING="4" 3032CLASS="CALSTABLE" 3033><TBODY 3034><TR 3035><TD 3036WIDTH="20%" 3037ALIGN="RIGHT" 3038VALIGN="TOP" 3039><TT 3040CLASS="PARAMETER" 3041><I 3042>val</I 3043></TT 3044> :</TD 3045><TD 3046WIDTH="80%" 3047ALIGN="LEFT" 3048VALIGN="TOP" 3049> an XPath object</TD 3050></TR 3051><TR 3052><TD 3053WIDTH="20%" 3054ALIGN="RIGHT" 3055VALIGN="TOP" 3056><I 3057CLASS="EMPHASIS" 3058>Returns</I 3059> :</TD 3060><TD 3061WIDTH="80%" 3062ALIGN="LEFT" 3063VALIGN="TOP" 3064>the number value</TD 3065></TR 3066></TBODY 3067></TABLE 3068><P 3069></P 3070></DIV 3071></DIV 3072><HR><DIV 3073CLASS="REFSECT2" 3074><A 3075NAME="AEN11915" 3076></A 3077><H3 3078><A 3079NAME="XMLXPATHCASTBOOLEANTOSTRING" 3080></A 3081>xmlXPathCastBooleanToString ()</H3 3082><TABLE 3083BORDER="0" 3084BGCOLOR="#D6E8FF" 3085WIDTH="100%" 3086CELLPADDING="6" 3087><TR 3088><TD 3089><PRE 3090CLASS="PROGRAMLISTING" 3091><A 3092HREF="libxml-tree.html#XMLCHAR" 3093>xmlChar</A 3094>* xmlXPathCastBooleanToString (int val);</PRE 3095></TD 3096></TR 3097></TABLE 3098><P 3099>Converts a boolean to its string value.</P 3100><P 3101></P 3102><DIV 3103CLASS="INFORMALTABLE" 3104><A 3105NAME="AEN11922" 3106></A 3107><P 3108></P 3109><TABLE 3110BORDER="0" 3111WIDTH="100%" 3112BGCOLOR="#FFD0D0" 3113CELLSPACING="0" 3114CELLPADDING="4" 3115CLASS="CALSTABLE" 3116><TBODY 3117><TR 3118><TD 3119WIDTH="20%" 3120ALIGN="RIGHT" 3121VALIGN="TOP" 3122><TT 3123CLASS="PARAMETER" 3124><I 3125>val</I 3126></TT 3127> :</TD 3128><TD 3129WIDTH="80%" 3130ALIGN="LEFT" 3131VALIGN="TOP" 3132> a boolean</TD 3133></TR 3134><TR 3135><TD 3136WIDTH="20%" 3137ALIGN="RIGHT" 3138VALIGN="TOP" 3139><I 3140CLASS="EMPHASIS" 3141>Returns</I 3142> :</TD 3143><TD 3144WIDTH="80%" 3145ALIGN="LEFT" 3146VALIGN="TOP" 3147>a newly allocated string.</TD 3148></TR 3149></TBODY 3150></TABLE 3151><P 3152></P 3153></DIV 3154></DIV 3155><HR><DIV 3156CLASS="REFSECT2" 3157><A 3158NAME="AEN11935" 3159></A 3160><H3 3161><A 3162NAME="XMLXPATHCASTNUMBERTOSTRING" 3163></A 3164>xmlXPathCastNumberToString ()</H3 3165><TABLE 3166BORDER="0" 3167BGCOLOR="#D6E8FF" 3168WIDTH="100%" 3169CELLPADDING="6" 3170><TR 3171><TD 3172><PRE 3173CLASS="PROGRAMLISTING" 3174><A 3175HREF="libxml-tree.html#XMLCHAR" 3176>xmlChar</A 3177>* xmlXPathCastNumberToString (<GTKDOCLINK 3178HREF="DOUBLE" 3179>double</GTKDOCLINK 3180> val);</PRE 3181></TD 3182></TR 3183></TABLE 3184><P 3185>Converts a number to its string value.</P 3186><P 3187></P 3188><DIV 3189CLASS="INFORMALTABLE" 3190><A 3191NAME="AEN11943" 3192></A 3193><P 3194></P 3195><TABLE 3196BORDER="0" 3197WIDTH="100%" 3198BGCOLOR="#FFD0D0" 3199CELLSPACING="0" 3200CELLPADDING="4" 3201CLASS="CALSTABLE" 3202><TBODY 3203><TR 3204><TD 3205WIDTH="20%" 3206ALIGN="RIGHT" 3207VALIGN="TOP" 3208><TT 3209CLASS="PARAMETER" 3210><I 3211>val</I 3212></TT 3213> :</TD 3214><TD 3215WIDTH="80%" 3216ALIGN="LEFT" 3217VALIGN="TOP" 3218> a number</TD 3219></TR 3220><TR 3221><TD 3222WIDTH="20%" 3223ALIGN="RIGHT" 3224VALIGN="TOP" 3225><I 3226CLASS="EMPHASIS" 3227>Returns</I 3228> :</TD 3229><TD 3230WIDTH="80%" 3231ALIGN="LEFT" 3232VALIGN="TOP" 3233>a newly allocated string.</TD 3234></TR 3235></TBODY 3236></TABLE 3237><P 3238></P 3239></DIV 3240></DIV 3241><HR><DIV 3242CLASS="REFSECT2" 3243><A 3244NAME="AEN11956" 3245></A 3246><H3 3247><A 3248NAME="XMLXPATHCASTNODETOSTRING" 3249></A 3250>xmlXPathCastNodeToString ()</H3 3251><TABLE 3252BORDER="0" 3253BGCOLOR="#D6E8FF" 3254WIDTH="100%" 3255CELLPADDING="6" 3256><TR 3257><TD 3258><PRE 3259CLASS="PROGRAMLISTING" 3260><A 3261HREF="libxml-tree.html#XMLCHAR" 3262>xmlChar</A 3263>* xmlXPathCastNodeToString (<A 3264HREF="libxml-tree.html#XMLNODEPTR" 3265>xmlNodePtr</A 3266> node);</PRE 3267></TD 3268></TR 3269></TABLE 3270><P 3271>Converts a node to its string value.</P 3272><P 3273></P 3274><DIV 3275CLASS="INFORMALTABLE" 3276><A 3277NAME="AEN11964" 3278></A 3279><P 3280></P 3281><TABLE 3282BORDER="0" 3283WIDTH="100%" 3284BGCOLOR="#FFD0D0" 3285CELLSPACING="0" 3286CELLPADDING="4" 3287CLASS="CALSTABLE" 3288><TBODY 3289><TR 3290><TD 3291WIDTH="20%" 3292ALIGN="RIGHT" 3293VALIGN="TOP" 3294><TT 3295CLASS="PARAMETER" 3296><I 3297>node</I 3298></TT 3299> :</TD 3300><TD 3301WIDTH="80%" 3302ALIGN="LEFT" 3303VALIGN="TOP" 3304> a node</TD 3305></TR 3306><TR 3307><TD 3308WIDTH="20%" 3309ALIGN="RIGHT" 3310VALIGN="TOP" 3311><I 3312CLASS="EMPHASIS" 3313>Returns</I 3314> :</TD 3315><TD 3316WIDTH="80%" 3317ALIGN="LEFT" 3318VALIGN="TOP" 3319>a newly allocated string.</TD 3320></TR 3321></TBODY 3322></TABLE 3323><P 3324></P 3325></DIV 3326></DIV 3327><HR><DIV 3328CLASS="REFSECT2" 3329><A 3330NAME="AEN11977" 3331></A 3332><H3 3333><A 3334NAME="XMLXPATHCASTNODESETTOSTRING" 3335></A 3336>xmlXPathCastNodeSetToString ()</H3 3337><TABLE 3338BORDER="0" 3339BGCOLOR="#D6E8FF" 3340WIDTH="100%" 3341CELLPADDING="6" 3342><TR 3343><TD 3344><PRE 3345CLASS="PROGRAMLISTING" 3346><A 3347HREF="libxml-tree.html#XMLCHAR" 3348>xmlChar</A 3349>* xmlXPathCastNodeSetToString (<A 3350HREF="libxml-xpath.html#XMLNODESETPTR" 3351>xmlNodeSetPtr</A 3352> ns);</PRE 3353></TD 3354></TR 3355></TABLE 3356><P 3357>Converts a node-set to its string value.</P 3358><P 3359></P 3360><DIV 3361CLASS="INFORMALTABLE" 3362><A 3363NAME="AEN11985" 3364></A 3365><P 3366></P 3367><TABLE 3368BORDER="0" 3369WIDTH="100%" 3370BGCOLOR="#FFD0D0" 3371CELLSPACING="0" 3372CELLPADDING="4" 3373CLASS="CALSTABLE" 3374><TBODY 3375><TR 3376><TD 3377WIDTH="20%" 3378ALIGN="RIGHT" 3379VALIGN="TOP" 3380><TT 3381CLASS="PARAMETER" 3382><I 3383>ns</I 3384></TT 3385> :</TD 3386><TD 3387WIDTH="80%" 3388ALIGN="LEFT" 3389VALIGN="TOP" 3390> a node-set</TD 3391></TR 3392><TR 3393><TD 3394WIDTH="20%" 3395ALIGN="RIGHT" 3396VALIGN="TOP" 3397><I 3398CLASS="EMPHASIS" 3399>Returns</I 3400> :</TD 3401><TD 3402WIDTH="80%" 3403ALIGN="LEFT" 3404VALIGN="TOP" 3405>a newly allocated string.</TD 3406></TR 3407></TBODY 3408></TABLE 3409><P 3410></P 3411></DIV 3412></DIV 3413><HR><DIV 3414CLASS="REFSECT2" 3415><A 3416NAME="AEN11998" 3417></A 3418><H3 3419><A 3420NAME="XMLXPATHCASTTOSTRING" 3421></A 3422>xmlXPathCastToString ()</H3 3423><TABLE 3424BORDER="0" 3425BGCOLOR="#D6E8FF" 3426WIDTH="100%" 3427CELLPADDING="6" 3428><TR 3429><TD 3430><PRE 3431CLASS="PROGRAMLISTING" 3432><A 3433HREF="libxml-tree.html#XMLCHAR" 3434>xmlChar</A 3435>* xmlXPathCastToString (<A 3436HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 3437>xmlXPathObjectPtr</A 3438> val);</PRE 3439></TD 3440></TR 3441></TABLE 3442><P 3443>Converts an existing object to its <GTKDOCLINK 3444HREF="STRING" 3445>string</GTKDOCLINK 3446>() equivalent</P 3447><P 3448></P 3449><DIV 3450CLASS="INFORMALTABLE" 3451><A 3452NAME="AEN12007" 3453></A 3454><P 3455></P 3456><TABLE 3457BORDER="0" 3458WIDTH="100%" 3459BGCOLOR="#FFD0D0" 3460CELLSPACING="0" 3461CELLPADDING="4" 3462CLASS="CALSTABLE" 3463><TBODY 3464><TR 3465><TD 3466WIDTH="20%" 3467ALIGN="RIGHT" 3468VALIGN="TOP" 3469><TT 3470CLASS="PARAMETER" 3471><I 3472>val</I 3473></TT 3474> :</TD 3475><TD 3476WIDTH="80%" 3477ALIGN="LEFT" 3478VALIGN="TOP" 3479> an XPath object</TD 3480></TR 3481><TR 3482><TD 3483WIDTH="20%" 3484ALIGN="RIGHT" 3485VALIGN="TOP" 3486><I 3487CLASS="EMPHASIS" 3488>Returns</I 3489> :</TD 3490><TD 3491WIDTH="80%" 3492ALIGN="LEFT" 3493VALIGN="TOP" 3494>the string value of the object, NULL in case of error. 3495A new string is allocated only if needed (val isn't a 3496string object).</TD 3497></TR 3498></TBODY 3499></TABLE 3500><P 3501></P 3502></DIV 3503></DIV 3504><HR><DIV 3505CLASS="REFSECT2" 3506><A 3507NAME="AEN12020" 3508></A 3509><H3 3510><A 3511NAME="XMLXPATHCONVERTBOOLEAN" 3512></A 3513>xmlXPathConvertBoolean ()</H3 3514><TABLE 3515BORDER="0" 3516BGCOLOR="#D6E8FF" 3517WIDTH="100%" 3518CELLPADDING="6" 3519><TR 3520><TD 3521><PRE 3522CLASS="PROGRAMLISTING" 3523><A 3524HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 3525>xmlXPathObjectPtr</A 3526> xmlXPathConvertBoolean (<A 3527HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 3528>xmlXPathObjectPtr</A 3529> val);</PRE 3530></TD 3531></TR 3532></TABLE 3533><P 3534>Converts an existing object to its <GTKDOCLINK 3535HREF="BOOLEAN" 3536>boolean</GTKDOCLINK 3537>() equivalent</P 3538><P 3539></P 3540><DIV 3541CLASS="INFORMALTABLE" 3542><A 3543NAME="AEN12029" 3544></A 3545><P 3546></P 3547><TABLE 3548BORDER="0" 3549WIDTH="100%" 3550BGCOLOR="#FFD0D0" 3551CELLSPACING="0" 3552CELLPADDING="4" 3553CLASS="CALSTABLE" 3554><TBODY 3555><TR 3556><TD 3557WIDTH="20%" 3558ALIGN="RIGHT" 3559VALIGN="TOP" 3560><TT 3561CLASS="PARAMETER" 3562><I 3563>val</I 3564></TT 3565> :</TD 3566><TD 3567WIDTH="80%" 3568ALIGN="LEFT" 3569VALIGN="TOP" 3570> an XPath object</TD 3571></TR 3572><TR 3573><TD 3574WIDTH="20%" 3575ALIGN="RIGHT" 3576VALIGN="TOP" 3577><I 3578CLASS="EMPHASIS" 3579>Returns</I 3580> :</TD 3581><TD 3582WIDTH="80%" 3583ALIGN="LEFT" 3584VALIGN="TOP" 3585>the new object, the old one is freed (or the operation 3586is done directly on <TT 3587CLASS="PARAMETER" 3588><I 3589>val</I 3590></TT 3591>)</TD 3592></TR 3593></TBODY 3594></TABLE 3595><P 3596></P 3597></DIV 3598></DIV 3599><HR><DIV 3600CLASS="REFSECT2" 3601><A 3602NAME="AEN12043" 3603></A 3604><H3 3605><A 3606NAME="XMLXPATHCONVERTNUMBER" 3607></A 3608>xmlXPathConvertNumber ()</H3 3609><TABLE 3610BORDER="0" 3611BGCOLOR="#D6E8FF" 3612WIDTH="100%" 3613CELLPADDING="6" 3614><TR 3615><TD 3616><PRE 3617CLASS="PROGRAMLISTING" 3618><A 3619HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 3620>xmlXPathObjectPtr</A 3621> xmlXPathConvertNumber (<A 3622HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 3623>xmlXPathObjectPtr</A 3624> val);</PRE 3625></TD 3626></TR 3627></TABLE 3628><P 3629>Converts an existing object to its <GTKDOCLINK 3630HREF="NUMBER" 3631>number</GTKDOCLINK 3632>() equivalent</P 3633><P 3634></P 3635><DIV 3636CLASS="INFORMALTABLE" 3637><A 3638NAME="AEN12052" 3639></A 3640><P 3641></P 3642><TABLE 3643BORDER="0" 3644WIDTH="100%" 3645BGCOLOR="#FFD0D0" 3646CELLSPACING="0" 3647CELLPADDING="4" 3648CLASS="CALSTABLE" 3649><TBODY 3650><TR 3651><TD 3652WIDTH="20%" 3653ALIGN="RIGHT" 3654VALIGN="TOP" 3655><TT 3656CLASS="PARAMETER" 3657><I 3658>val</I 3659></TT 3660> :</TD 3661><TD 3662WIDTH="80%" 3663ALIGN="LEFT" 3664VALIGN="TOP" 3665> an XPath object</TD 3666></TR 3667><TR 3668><TD 3669WIDTH="20%" 3670ALIGN="RIGHT" 3671VALIGN="TOP" 3672><I 3673CLASS="EMPHASIS" 3674>Returns</I 3675> :</TD 3676><TD 3677WIDTH="80%" 3678ALIGN="LEFT" 3679VALIGN="TOP" 3680>the new object, the old one is freed (or the operation 3681is done directly on <TT 3682CLASS="PARAMETER" 3683><I 3684>val</I 3685></TT 3686>)</TD 3687></TR 3688></TBODY 3689></TABLE 3690><P 3691></P 3692></DIV 3693></DIV 3694><HR><DIV 3695CLASS="REFSECT2" 3696><A 3697NAME="AEN12066" 3698></A 3699><H3 3700><A 3701NAME="XMLXPATHCONVERTSTRING" 3702></A 3703>xmlXPathConvertString ()</H3 3704><TABLE 3705BORDER="0" 3706BGCOLOR="#D6E8FF" 3707WIDTH="100%" 3708CELLPADDING="6" 3709><TR 3710><TD 3711><PRE 3712CLASS="PROGRAMLISTING" 3713><A 3714HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 3715>xmlXPathObjectPtr</A 3716> xmlXPathConvertString (<A 3717HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 3718>xmlXPathObjectPtr</A 3719> val);</PRE 3720></TD 3721></TR 3722></TABLE 3723><P 3724>Converts an existing object to its <GTKDOCLINK 3725HREF="STRING" 3726>string</GTKDOCLINK 3727>() equivalent</P 3728><P 3729></P 3730><DIV 3731CLASS="INFORMALTABLE" 3732><A 3733NAME="AEN12075" 3734></A 3735><P 3736></P 3737><TABLE 3738BORDER="0" 3739WIDTH="100%" 3740BGCOLOR="#FFD0D0" 3741CELLSPACING="0" 3742CELLPADDING="4" 3743CLASS="CALSTABLE" 3744><TBODY 3745><TR 3746><TD 3747WIDTH="20%" 3748ALIGN="RIGHT" 3749VALIGN="TOP" 3750><TT 3751CLASS="PARAMETER" 3752><I 3753>val</I 3754></TT 3755> :</TD 3756><TD 3757WIDTH="80%" 3758ALIGN="LEFT" 3759VALIGN="TOP" 3760> an XPath object</TD 3761></TR 3762><TR 3763><TD 3764WIDTH="20%" 3765ALIGN="RIGHT" 3766VALIGN="TOP" 3767><I 3768CLASS="EMPHASIS" 3769>Returns</I 3770> :</TD 3771><TD 3772WIDTH="80%" 3773ALIGN="LEFT" 3774VALIGN="TOP" 3775>the new object, the old one is freed (or the operation 3776is done directly on <TT 3777CLASS="PARAMETER" 3778><I 3779>val</I 3780></TT 3781>)</TD 3782></TR 3783></TBODY 3784></TABLE 3785><P 3786></P 3787></DIV 3788></DIV 3789><HR><DIV 3790CLASS="REFSECT2" 3791><A 3792NAME="AEN12089" 3793></A 3794><H3 3795><A 3796NAME="XMLXPATHINIT" 3797></A 3798>xmlXPathInit ()</H3 3799><TABLE 3800BORDER="0" 3801BGCOLOR="#D6E8FF" 3802WIDTH="100%" 3803CELLPADDING="6" 3804><TR 3805><TD 3806><PRE 3807CLASS="PROGRAMLISTING" 3808>void xmlXPathInit (void);</PRE 3809></TD 3810></TR 3811></TABLE 3812><P 3813>Initialize the XPath environment</P 3814><P 3815></P 3816></DIV 3817><HR><DIV 3818CLASS="REFSECT2" 3819><A 3820NAME="AEN12095" 3821></A 3822><H3 3823><A 3824NAME="XMLXPATHNEWCONTEXT" 3825></A 3826>xmlXPathNewContext ()</H3 3827><TABLE 3828BORDER="0" 3829BGCOLOR="#D6E8FF" 3830WIDTH="100%" 3831CELLPADDING="6" 3832><TR 3833><TD 3834><PRE 3835CLASS="PROGRAMLISTING" 3836><A 3837HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR" 3838>xmlXPathContextPtr</A 3839> xmlXPathNewContext (<A 3840HREF="libxml-tree.html#XMLDOCPTR" 3841>xmlDocPtr</A 3842> doc);</PRE 3843></TD 3844></TR 3845></TABLE 3846><P 3847>Create a new xmlXPathContext</P 3848><P 3849></P 3850><DIV 3851CLASS="INFORMALTABLE" 3852><A 3853NAME="AEN12103" 3854></A 3855><P 3856></P 3857><TABLE 3858BORDER="0" 3859WIDTH="100%" 3860BGCOLOR="#FFD0D0" 3861CELLSPACING="0" 3862CELLPADDING="4" 3863CLASS="CALSTABLE" 3864><TBODY 3865><TR 3866><TD 3867WIDTH="20%" 3868ALIGN="RIGHT" 3869VALIGN="TOP" 3870><TT 3871CLASS="PARAMETER" 3872><I 3873>doc</I 3874></TT 3875> :</TD 3876><TD 3877WIDTH="80%" 3878ALIGN="LEFT" 3879VALIGN="TOP" 3880> the XML document</TD 3881></TR 3882><TR 3883><TD 3884WIDTH="20%" 3885ALIGN="RIGHT" 3886VALIGN="TOP" 3887><I 3888CLASS="EMPHASIS" 3889>Returns</I 3890> :</TD 3891><TD 3892WIDTH="80%" 3893ALIGN="LEFT" 3894VALIGN="TOP" 3895>the xmlXPathContext just allocated.</TD 3896></TR 3897></TBODY 3898></TABLE 3899><P 3900></P 3901></DIV 3902></DIV 3903><HR><DIV 3904CLASS="REFSECT2" 3905><A 3906NAME="AEN12116" 3907></A 3908><H3 3909><A 3910NAME="XMLXPATHFREECONTEXT" 3911></A 3912>xmlXPathFreeContext ()</H3 3913><TABLE 3914BORDER="0" 3915BGCOLOR="#D6E8FF" 3916WIDTH="100%" 3917CELLPADDING="6" 3918><TR 3919><TD 3920><PRE 3921CLASS="PROGRAMLISTING" 3922>void xmlXPathFreeContext (<A 3923HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR" 3924>xmlXPathContextPtr</A 3925> ctxt);</PRE 3926></TD 3927></TR 3928></TABLE 3929><P 3930>Free up an xmlXPathContext</P 3931><P 3932></P 3933><DIV 3934CLASS="INFORMALTABLE" 3935><A 3936NAME="AEN12123" 3937></A 3938><P 3939></P 3940><TABLE 3941BORDER="0" 3942WIDTH="100%" 3943BGCOLOR="#FFD0D0" 3944CELLSPACING="0" 3945CELLPADDING="4" 3946CLASS="CALSTABLE" 3947><TBODY 3948><TR 3949><TD 3950WIDTH="20%" 3951ALIGN="RIGHT" 3952VALIGN="TOP" 3953><TT 3954CLASS="PARAMETER" 3955><I 3956>ctxt</I 3957></TT 3958> :</TD 3959><TD 3960WIDTH="80%" 3961ALIGN="LEFT" 3962VALIGN="TOP" 3963> the context to free</TD 3964></TR 3965></TBODY 3966></TABLE 3967><P 3968></P 3969></DIV 3970></DIV 3971><HR><DIV 3972CLASS="REFSECT2" 3973><A 3974NAME="AEN12132" 3975></A 3976><H3 3977><A 3978NAME="XMLXPATHEVAL" 3979></A 3980>xmlXPathEval ()</H3 3981><TABLE 3982BORDER="0" 3983BGCOLOR="#D6E8FF" 3984WIDTH="100%" 3985CELLPADDING="6" 3986><TR 3987><TD 3988><PRE 3989CLASS="PROGRAMLISTING" 3990><A 3991HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 3992>xmlXPathObjectPtr</A 3993> xmlXPathEval (const <A 3994HREF="libxml-tree.html#XMLCHAR" 3995>xmlChar</A 3996> *str, 3997 <A 3998HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR" 3999>xmlXPathContextPtr</A 4000> ctxt);</PRE 4001></TD 4002></TR 4003></TABLE 4004><P 4005>Evaluate the XPath Location Path in the given context.</P 4006><P 4007></P 4008><DIV 4009CLASS="INFORMALTABLE" 4010><A 4011NAME="AEN12141" 4012></A 4013><P 4014></P 4015><TABLE 4016BORDER="0" 4017WIDTH="100%" 4018BGCOLOR="#FFD0D0" 4019CELLSPACING="0" 4020CELLPADDING="4" 4021CLASS="CALSTABLE" 4022><TBODY 4023><TR 4024><TD 4025WIDTH="20%" 4026ALIGN="RIGHT" 4027VALIGN="TOP" 4028><TT 4029CLASS="PARAMETER" 4030><I 4031>str</I 4032></TT 4033> :</TD 4034><TD 4035WIDTH="80%" 4036ALIGN="LEFT" 4037VALIGN="TOP" 4038> the XPath expression</TD 4039></TR 4040><TR 4041><TD 4042WIDTH="20%" 4043ALIGN="RIGHT" 4044VALIGN="TOP" 4045><TT 4046CLASS="PARAMETER" 4047><I 4048>ctxt</I 4049></TT 4050> :</TD 4051><TD 4052WIDTH="80%" 4053ALIGN="LEFT" 4054VALIGN="TOP" 4055> </TD 4056></TR 4057><TR 4058><TD 4059WIDTH="20%" 4060ALIGN="RIGHT" 4061VALIGN="TOP" 4062><I 4063CLASS="EMPHASIS" 4064>Returns</I 4065> :</TD 4066><TD 4067WIDTH="80%" 4068ALIGN="LEFT" 4069VALIGN="TOP" 4070>the xmlXPathObjectPtr resulting from the eveluation or NULL. 4071the caller has to free the object.</TD 4072></TR 4073></TBODY 4074></TABLE 4075><P 4076></P 4077></DIV 4078></DIV 4079><HR><DIV 4080CLASS="REFSECT2" 4081><A 4082NAME="AEN12158" 4083></A 4084><H3 4085><A 4086NAME="XMLXPATHEVALEXPRESSION" 4087></A 4088>xmlXPathEvalExpression ()</H3 4089><TABLE 4090BORDER="0" 4091BGCOLOR="#D6E8FF" 4092WIDTH="100%" 4093CELLPADDING="6" 4094><TR 4095><TD 4096><PRE 4097CLASS="PROGRAMLISTING" 4098><A 4099HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 4100>xmlXPathObjectPtr</A 4101> xmlXPathEvalExpression (const <A 4102HREF="libxml-tree.html#XMLCHAR" 4103>xmlChar</A 4104> *str, 4105 <A 4106HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR" 4107>xmlXPathContextPtr</A 4108> ctxt);</PRE 4109></TD 4110></TR 4111></TABLE 4112><P 4113>Evaluate the XPath expression in the given context.</P 4114><P 4115></P 4116><DIV 4117CLASS="INFORMALTABLE" 4118><A 4119NAME="AEN12167" 4120></A 4121><P 4122></P 4123><TABLE 4124BORDER="0" 4125WIDTH="100%" 4126BGCOLOR="#FFD0D0" 4127CELLSPACING="0" 4128CELLPADDING="4" 4129CLASS="CALSTABLE" 4130><TBODY 4131><TR 4132><TD 4133WIDTH="20%" 4134ALIGN="RIGHT" 4135VALIGN="TOP" 4136><TT 4137CLASS="PARAMETER" 4138><I 4139>str</I 4140></TT 4141> :</TD 4142><TD 4143WIDTH="80%" 4144ALIGN="LEFT" 4145VALIGN="TOP" 4146> the XPath expression</TD 4147></TR 4148><TR 4149><TD 4150WIDTH="20%" 4151ALIGN="RIGHT" 4152VALIGN="TOP" 4153><TT 4154CLASS="PARAMETER" 4155><I 4156>ctxt</I 4157></TT 4158> :</TD 4159><TD 4160WIDTH="80%" 4161ALIGN="LEFT" 4162VALIGN="TOP" 4163> the XPath context</TD 4164></TR 4165><TR 4166><TD 4167WIDTH="20%" 4168ALIGN="RIGHT" 4169VALIGN="TOP" 4170><I 4171CLASS="EMPHASIS" 4172>Returns</I 4173> :</TD 4174><TD 4175WIDTH="80%" 4176ALIGN="LEFT" 4177VALIGN="TOP" 4178>the xmlXPathObjectPtr resulting from the evaluation or NULL. 4179the caller has to free the object.</TD 4180></TR 4181></TBODY 4182></TABLE 4183><P 4184></P 4185></DIV 4186></DIV 4187><HR><DIV 4188CLASS="REFSECT2" 4189><A 4190NAME="AEN12184" 4191></A 4192><H3 4193><A 4194NAME="XMLXPATHEVALPREDICATE" 4195></A 4196>xmlXPathEvalPredicate ()</H3 4197><TABLE 4198BORDER="0" 4199BGCOLOR="#D6E8FF" 4200WIDTH="100%" 4201CELLPADDING="6" 4202><TR 4203><TD 4204><PRE 4205CLASS="PROGRAMLISTING" 4206>int xmlXPathEvalPredicate (<A 4207HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR" 4208>xmlXPathContextPtr</A 4209> ctxt, 4210 <A 4211HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 4212>xmlXPathObjectPtr</A 4213> res);</PRE 4214></TD 4215></TR 4216></TABLE 4217><P 4218>Evaluate a predicate result for the current node. 4219A PredicateExpr is evaluated by evaluating the Expr and converting 4220the result to a boolean. If the result is a number, the result will 4221be converted to true if the number is equal to the position of the 4222context node in the context node list (as returned by the position 4223function) and will be converted to false otherwise; if the result 4224is not a number, then the result will be converted as if by a call 4225to the boolean function. </P 4226><P 4227>Return 1 if predicate is true, 0 otherwise</P 4228><P 4229></P 4230><DIV 4231CLASS="INFORMALTABLE" 4232><A 4233NAME="AEN12193" 4234></A 4235><P 4236></P 4237><TABLE 4238BORDER="0" 4239WIDTH="100%" 4240BGCOLOR="#FFD0D0" 4241CELLSPACING="0" 4242CELLPADDING="4" 4243CLASS="CALSTABLE" 4244><TBODY 4245><TR 4246><TD 4247WIDTH="20%" 4248ALIGN="RIGHT" 4249VALIGN="TOP" 4250><TT 4251CLASS="PARAMETER" 4252><I 4253>ctxt</I 4254></TT 4255> :</TD 4256><TD 4257WIDTH="80%" 4258ALIGN="LEFT" 4259VALIGN="TOP" 4260> the XPath context</TD 4261></TR 4262><TR 4263><TD 4264WIDTH="20%" 4265ALIGN="RIGHT" 4266VALIGN="TOP" 4267><TT 4268CLASS="PARAMETER" 4269><I 4270>res</I 4271></TT 4272> :</TD 4273><TD 4274WIDTH="80%" 4275ALIGN="LEFT" 4276VALIGN="TOP" 4277> the Predicate Expression evaluation result</TD 4278></TR 4279><TR 4280><TD 4281WIDTH="20%" 4282ALIGN="RIGHT" 4283VALIGN="TOP" 4284><I 4285CLASS="EMPHASIS" 4286>Returns</I 4287> :</TD 4288><TD 4289WIDTH="80%" 4290ALIGN="LEFT" 4291VALIGN="TOP" 4292> </TD 4293></TR 4294></TBODY 4295></TABLE 4296><P 4297></P 4298></DIV 4299></DIV 4300><HR><DIV 4301CLASS="REFSECT2" 4302><A 4303NAME="AEN12210" 4304></A 4305><H3 4306><A 4307NAME="XMLXPATHCOMPILE" 4308></A 4309>xmlXPathCompile ()</H3 4310><TABLE 4311BORDER="0" 4312BGCOLOR="#D6E8FF" 4313WIDTH="100%" 4314CELLPADDING="6" 4315><TR 4316><TD 4317><PRE 4318CLASS="PROGRAMLISTING" 4319><A 4320HREF="libxml-xpath.html#XMLXPATHCOMPEXPRPTR" 4321>xmlXPathCompExprPtr</A 4322> xmlXPathCompile (const <A 4323HREF="libxml-tree.html#XMLCHAR" 4324>xmlChar</A 4325> *str);</PRE 4326></TD 4327></TR 4328></TABLE 4329><P 4330>Compile an XPath expression</P 4331><P 4332></P 4333><DIV 4334CLASS="INFORMALTABLE" 4335><A 4336NAME="AEN12218" 4337></A 4338><P 4339></P 4340><TABLE 4341BORDER="0" 4342WIDTH="100%" 4343BGCOLOR="#FFD0D0" 4344CELLSPACING="0" 4345CELLPADDING="4" 4346CLASS="CALSTABLE" 4347><TBODY 4348><TR 4349><TD 4350WIDTH="20%" 4351ALIGN="RIGHT" 4352VALIGN="TOP" 4353><TT 4354CLASS="PARAMETER" 4355><I 4356>str</I 4357></TT 4358> :</TD 4359><TD 4360WIDTH="80%" 4361ALIGN="LEFT" 4362VALIGN="TOP" 4363> the XPath expression</TD 4364></TR 4365><TR 4366><TD 4367WIDTH="20%" 4368ALIGN="RIGHT" 4369VALIGN="TOP" 4370><I 4371CLASS="EMPHASIS" 4372>Returns</I 4373> :</TD 4374><TD 4375WIDTH="80%" 4376ALIGN="LEFT" 4377VALIGN="TOP" 4378>the xmlXPathObjectPtr resulting from the eveluation or NULL. 4379the caller has to free the object.</TD 4380></TR 4381></TBODY 4382></TABLE 4383><P 4384></P 4385></DIV 4386></DIV 4387><HR><DIV 4388CLASS="REFSECT2" 4389><A 4390NAME="AEN12231" 4391></A 4392><H3 4393><A 4394NAME="XMLXPATHCOMPILEDEVAL" 4395></A 4396>xmlXPathCompiledEval ()</H3 4397><TABLE 4398BORDER="0" 4399BGCOLOR="#D6E8FF" 4400WIDTH="100%" 4401CELLPADDING="6" 4402><TR 4403><TD 4404><PRE 4405CLASS="PROGRAMLISTING" 4406><A 4407HREF="libxml-xpath.html#XMLXPATHOBJECTPTR" 4408>xmlXPathObjectPtr</A 4409> xmlXPathCompiledEval (<A 4410HREF="libxml-xpath.html#XMLXPATHCOMPEXPRPTR" 4411>xmlXPathCompExprPtr</A 4412> comp, 4413 <A 4414HREF="libxml-xpath.html#XMLXPATHCONTEXTPTR" 4415>xmlXPathContextPtr</A 4416> ctx);</PRE 4417></TD 4418></TR 4419></TABLE 4420><P 4421>Evaluate the Precompiled XPath expression in the given context.</P 4422><P 4423></P 4424><DIV 4425CLASS="INFORMALTABLE" 4426><A 4427NAME="AEN12240" 4428></A 4429><P 4430></P 4431><TABLE 4432BORDER="0" 4433WIDTH="100%" 4434BGCOLOR="#FFD0D0" 4435CELLSPACING="0" 4436CELLPADDING="4" 4437CLASS="CALSTABLE" 4438><TBODY 4439><TR 4440><TD 4441WIDTH="20%" 4442ALIGN="RIGHT" 4443VALIGN="TOP" 4444><TT 4445CLASS="PARAMETER" 4446><I 4447>comp</I 4448></TT 4449> :</TD 4450><TD 4451WIDTH="80%" 4452ALIGN="LEFT" 4453VALIGN="TOP" 4454> the compiled XPath expression</TD 4455></TR 4456><TR 4457><TD 4458WIDTH="20%" 4459ALIGN="RIGHT" 4460VALIGN="TOP" 4461><TT 4462CLASS="PARAMETER" 4463><I 4464>ctx</I 4465></TT 4466> :</TD 4467><TD 4468WIDTH="80%" 4469ALIGN="LEFT" 4470VALIGN="TOP" 4471> the XPath context</TD 4472></TR 4473><TR 4474><TD 4475WIDTH="20%" 4476ALIGN="RIGHT" 4477VALIGN="TOP" 4478><I 4479CLASS="EMPHASIS" 4480>Returns</I 4481> :</TD 4482><TD 4483WIDTH="80%" 4484ALIGN="LEFT" 4485VALIGN="TOP" 4486>the xmlXPathObjectPtr resulting from the eveluation or NULL. 4487the caller has to free the object.</TD 4488></TR 4489></TBODY 4490></TABLE 4491><P 4492></P 4493></DIV 4494></DIV 4495><HR><DIV 4496CLASS="REFSECT2" 4497><A 4498NAME="AEN12257" 4499></A 4500><H3 4501><A 4502NAME="XMLXPATHFREECOMPEXPR" 4503></A 4504>xmlXPathFreeCompExpr ()</H3 4505><TABLE 4506BORDER="0" 4507BGCOLOR="#D6E8FF" 4508WIDTH="100%" 4509CELLPADDING="6" 4510><TR 4511><TD 4512><PRE 4513CLASS="PROGRAMLISTING" 4514>void xmlXPathFreeCompExpr (<A 4515HREF="libxml-xpath.html#XMLXPATHCOMPEXPRPTR" 4516>xmlXPathCompExprPtr</A 4517> comp);</PRE 4518></TD 4519></TR 4520></TABLE 4521><P 4522>Free up the memory allocated by <TT 4523CLASS="PARAMETER" 4524><I 4525>comp</I 4526></TT 4527></P 4528><P 4529></P 4530><DIV 4531CLASS="INFORMALTABLE" 4532><A 4533NAME="AEN12265" 4534></A 4535><P 4536></P 4537><TABLE 4538BORDER="0" 4539WIDTH="100%" 4540BGCOLOR="#FFD0D0" 4541CELLSPACING="0" 4542CELLPADDING="4" 4543CLASS="CALSTABLE" 4544><TBODY 4545><TR 4546><TD 4547WIDTH="20%" 4548ALIGN="RIGHT" 4549VALIGN="TOP" 4550><TT 4551CLASS="PARAMETER" 4552><I 4553>comp</I 4554></TT 4555> :</TD 4556><TD 4557WIDTH="80%" 4558ALIGN="LEFT" 4559VALIGN="TOP" 4560> an XPATH comp</TD 4561></TR 4562></TBODY 4563></TABLE 4564><P 4565></P 4566></DIV 4567></DIV 4568></DIV 4569><DIV 4570CLASS="NAVFOOTER" 4571><BR 4572CLEAR="all"><BR><TABLE 4573WIDTH="100%" 4574BORDER="0" 4575BGCOLOR="#000000" 4576CELLPADDING="1" 4577CELLSPACING="0" 4578><TR 4579><TD 4580WIDTH="25%" 4581BGCOLOR="#C00000" 4582ALIGN="left" 4583><A 4584HREF="libxml-htmltree.html" 4585><FONT 4586COLOR="#FFFFFF" 4587SIZE="3" 4588><B 4589><<< Previous Page</B 4590></FONT 4591></A 4592></TD 4593><TD 4594WIDTH="25%" 4595BGCOLOR="#0000C0" 4596ALIGN="center" 4597><FONT 4598COLOR="#FFFFFF" 4599SIZE="3" 4600><B 4601><A 4602HREF="book1.html" 4603><FONT 4604COLOR="#FFFFFF" 4605SIZE="3" 4606><B 4607>Home</B 4608></FONT 4609></A 4610></B 4611></FONT 4612></TD 4613><TD 4614WIDTH="25%" 4615BGCOLOR="#00C000" 4616ALIGN="center" 4617><FONT 4618COLOR="#FFFFFF" 4619SIZE="3" 4620><B 4621><A 4622HREF="libxml-lib.html" 4623><FONT 4624COLOR="#FFFFFF" 4625SIZE="3" 4626><B 4627>Up</B 4628></FONT 4629></A 4630></B 4631></FONT 4632></TD 4633><TD 4634WIDTH="25%" 4635BGCOLOR="#C00000" 4636ALIGN="right" 4637><A 4638HREF="libxml-xpathinternals.html" 4639><FONT 4640COLOR="#FFFFFF" 4641SIZE="3" 4642><B 4643>Next Page >>></B 4644></FONT 4645></A 4646></TD 4647></TR 4648><TR 4649><TD 4650COLSPAN="2" 4651ALIGN="left" 4652><FONT 4653COLOR="#FFFFFF" 4654SIZE="3" 4655><B 4656>HTMLtree</B 4657></FONT 4658></TD 4659><TD 4660COLSPAN="2" 4661ALIGN="right" 4662><FONT 4663COLOR="#FFFFFF" 4664SIZE="3" 4665><B 4666>xpathInternals</B 4667></FONT 4668></TD 4669></TR 4670></TABLE 4671></DIV 4672></BODY 4673></HTML 4674>