Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1 | /* |
| 2 | * xpath.c: interface for XML Path Language implementation |
| 3 | * |
| 4 | * Reference: W3C Working Draft 5 July 1999 |
| 5 | * http://www.w3.org/Style/XSL/Group/1999/07/xpath-19990705.html |
| 6 | * |
| 7 | * See COPYRIGHT for the status of this software |
| 8 | * |
| 9 | * Author: Daniel.Veillard@w3.org |
| 10 | */ |
| 11 | |
| 12 | #ifndef __XML_XPATH_H__ |
| 13 | #define __XML_XPATH_H__ |
| 14 | |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 15 | #include <libxml/tree.h> |
Daniel Veillard | b24054a | 1999-12-18 15:32:46 +0000 | [diff] [blame] | 16 | |
Daniel Veillard | e4e5131 | 1999-12-18 15:32:46 +0000 | [diff] [blame] | 17 | #ifdef __cplusplus |
Daniel Veillard | 5cb5ab8 | 1999-12-21 15:35:29 +0000 | [diff] [blame] | 18 | extern "C" { |
Daniel Veillard | e4e5131 | 1999-12-18 15:32:46 +0000 | [diff] [blame] | 19 | #endif |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 20 | |
Daniel Veillard | 71b656e | 2000-01-05 14:46:17 +0000 | [diff] [blame] | 21 | typedef struct _xmlXPathContext xmlXPathContext; |
| 22 | typedef xmlXPathContext *xmlXPathContextPtr; |
| 23 | typedef struct _xmlXPathParserContext xmlXPathParserContext; |
| 24 | typedef xmlXPathParserContext *xmlXPathParserContextPtr; |
Daniel Veillard | c08a2c6 | 1999-09-08 21:35:25 +0000 | [diff] [blame] | 25 | |
Daniel Veillard | 55b91f2 | 2000-10-05 16:30:11 +0000 | [diff] [blame] | 26 | /** |
| 27 | * The set of XPath error codes |
| 28 | */ |
| 29 | |
| 30 | typedef enum { |
| 31 | XPATH_EXPRESSION_OK = 0, |
| 32 | XPATH_NUMBER_ERROR, |
| 33 | XPATH_UNFINISHED_LITERAL_ERROR, |
| 34 | XPATH_START_LITERAL_ERROR, |
| 35 | XPATH_VARIABLE_REF_ERROR, |
| 36 | XPATH_UNDEF_VARIABLE_ERROR, |
| 37 | XPATH_INVALID_PREDICATE_ERROR, |
| 38 | XPATH_EXPR_ERROR, |
| 39 | XPATH_UNCLOSED_ERROR, |
| 40 | XPATH_UNKNOWN_FUNC_ERROR, |
| 41 | XPATH_INVALID_OPERAND, |
| 42 | XPATH_INVALID_TYPE, |
| 43 | XPATH_INVALID_ARITY, |
| 44 | XPATH_INVALID_CTXT_SIZE, |
Daniel Veillard | b71379b | 2000-10-09 12:30:39 +0000 | [diff] [blame] | 45 | XPATH_INVALID_CTXT_POSITION, |
| 46 | XPATH_MEMORY_ERROR, |
| 47 | XPTR_SYNTAX_ERROR, |
| 48 | XPTR_RESOURCE_ERROR, |
| 49 | XPTR_SUB_RESOURCE_ERROR |
Daniel Veillard | 55b91f2 | 2000-10-05 16:30:11 +0000 | [diff] [blame] | 50 | } xmlXPathError; |
| 51 | |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 52 | /* |
| 53 | * A node-set (an unordered collection of nodes without duplicates) |
| 54 | */ |
Daniel Veillard | 71b656e | 2000-01-05 14:46:17 +0000 | [diff] [blame] | 55 | typedef struct _xmlNodeSet xmlNodeSet; |
| 56 | typedef xmlNodeSet *xmlNodeSetPtr; |
| 57 | struct _xmlNodeSet { |
Daniel Veillard | be80396 | 2000-06-28 23:40:59 +0000 | [diff] [blame] | 58 | int nodeNr; /* number of nodes in the set */ |
| 59 | int nodeMax; /* size of the array as allocated */ |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 60 | xmlNodePtr *nodeTab; /* array of nodes in no particular order */ |
Daniel Veillard | 71b656e | 2000-01-05 14:46:17 +0000 | [diff] [blame] | 61 | }; |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 62 | |
| 63 | /* |
| 64 | * An expression is evaluated to yield an object, which |
| 65 | * has one of the following four basic types: |
| 66 | * - node-set |
| 67 | * - boolean |
| 68 | * - number |
| 69 | * - string |
Daniel Veillard | be80396 | 2000-06-28 23:40:59 +0000 | [diff] [blame] | 70 | * |
| 71 | * @@ XPointer will add more types ! |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 72 | */ |
| 73 | |
Daniel Veillard | f09e7e3 | 2000-10-01 15:53:30 +0000 | [diff] [blame] | 74 | typedef enum { |
| 75 | XPATH_UNDEFINED = 0, |
| 76 | XPATH_NODESET = 1, |
| 77 | XPATH_BOOLEAN = 2, |
| 78 | XPATH_NUMBER = 3, |
| 79 | XPATH_STRING = 4, |
Daniel Veillard | ac26030 | 2000-10-04 13:33:43 +0000 | [diff] [blame] | 80 | XPATH_POINT = 5, |
| 81 | XPATH_RANGE = 6, |
| 82 | XPATH_LOCATIONSET = 7, |
| 83 | XPATH_USERS = 8 |
Daniel Veillard | f09e7e3 | 2000-10-01 15:53:30 +0000 | [diff] [blame] | 84 | } xmlXPathObjectType; |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 85 | |
Daniel Veillard | 71b656e | 2000-01-05 14:46:17 +0000 | [diff] [blame] | 86 | typedef struct _xmlXPathObject xmlXPathObject; |
| 87 | typedef xmlXPathObject *xmlXPathObjectPtr; |
| 88 | struct _xmlXPathObject { |
Daniel Veillard | f09e7e3 | 2000-10-01 15:53:30 +0000 | [diff] [blame] | 89 | xmlXPathObjectType type; |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 90 | xmlNodeSetPtr nodesetval; |
| 91 | int boolval; |
Daniel Veillard | e2d034d | 1999-07-27 19:52:06 +0000 | [diff] [blame] | 92 | double floatval; |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 93 | xmlChar *stringval; |
Daniel Veillard | c08a2c6 | 1999-09-08 21:35:25 +0000 | [diff] [blame] | 94 | void *user; |
Daniel Veillard | ac26030 | 2000-10-04 13:33:43 +0000 | [diff] [blame] | 95 | int index; |
| 96 | void *user2; |
| 97 | int index2; |
Daniel Veillard | 71b656e | 2000-01-05 14:46:17 +0000 | [diff] [blame] | 98 | }; |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 99 | |
Daniel Veillard | c08a2c6 | 1999-09-08 21:35:25 +0000 | [diff] [blame] | 100 | /* |
| 101 | * A conversion function is associated to a type and used to cast |
| 102 | * the new type to primitive values. |
| 103 | */ |
| 104 | typedef int (*xmlXPathConvertFunc) (xmlXPathObjectPtr obj, int type); |
| 105 | |
| 106 | /* |
| 107 | * Extra type: a name and a conversion function. |
| 108 | */ |
| 109 | |
Daniel Veillard | 71b656e | 2000-01-05 14:46:17 +0000 | [diff] [blame] | 110 | typedef struct _xmlXPathType xmlXPathType; |
| 111 | typedef xmlXPathType *xmlXPathTypePtr; |
| 112 | struct _xmlXPathType { |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 113 | const xmlChar *name; /* the type name */ |
Daniel Veillard | c08a2c6 | 1999-09-08 21:35:25 +0000 | [diff] [blame] | 114 | xmlXPathConvertFunc func; /* the conversion function */ |
Daniel Veillard | 71b656e | 2000-01-05 14:46:17 +0000 | [diff] [blame] | 115 | }; |
Daniel Veillard | c08a2c6 | 1999-09-08 21:35:25 +0000 | [diff] [blame] | 116 | |
| 117 | /* |
| 118 | * Extra variable: a name and a value. |
| 119 | */ |
| 120 | |
Daniel Veillard | 71b656e | 2000-01-05 14:46:17 +0000 | [diff] [blame] | 121 | typedef struct _xmlXPathVariable xmlXPathVariable; |
| 122 | typedef xmlXPathVariable *xmlXPathVariablePtr; |
| 123 | struct _xmlXPathVariable { |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 124 | const xmlChar *name; /* the variable name */ |
Daniel Veillard | c08a2c6 | 1999-09-08 21:35:25 +0000 | [diff] [blame] | 125 | xmlXPathObjectPtr value; /* the value */ |
Daniel Veillard | 71b656e | 2000-01-05 14:46:17 +0000 | [diff] [blame] | 126 | }; |
Daniel Veillard | c08a2c6 | 1999-09-08 21:35:25 +0000 | [diff] [blame] | 127 | |
| 128 | /* |
| 129 | * an evaluation function, the parameters are on the context stack |
| 130 | */ |
| 131 | |
| 132 | typedef void (*xmlXPathEvalFunc)(xmlXPathParserContextPtr ctxt, int nargs); |
| 133 | |
| 134 | /* |
| 135 | * Extra function: a name and a evaluation function. |
| 136 | */ |
| 137 | |
Daniel Veillard | 71b656e | 2000-01-05 14:46:17 +0000 | [diff] [blame] | 138 | typedef struct _xmlXPathFunct xmlXPathFunct; |
| 139 | typedef xmlXPathFunct *xmlXPathFuncPtr; |
| 140 | struct _xmlXPathFunct { |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 141 | const xmlChar *name; /* the function name */ |
Daniel Veillard | c08a2c6 | 1999-09-08 21:35:25 +0000 | [diff] [blame] | 142 | xmlXPathEvalFunc func; /* the evaluation function */ |
Daniel Veillard | 71b656e | 2000-01-05 14:46:17 +0000 | [diff] [blame] | 143 | }; |
Daniel Veillard | c08a2c6 | 1999-09-08 21:35:25 +0000 | [diff] [blame] | 144 | |
| 145 | /* |
| 146 | * An axis traversal function. To traverse an axis, the engine calls |
| 147 | * the first time with cur == NULL and repeat until the function returns |
| 148 | * NULL indicating the end of the axis traversal. |
| 149 | */ |
| 150 | |
| 151 | typedef xmlXPathObjectPtr (*xmlXPathAxisFunc) (xmlXPathParserContextPtr ctxt, |
| 152 | xmlXPathObjectPtr cur); |
| 153 | |
| 154 | /* |
| 155 | * Extra axis: a name and an axis function. |
| 156 | */ |
| 157 | |
Daniel Veillard | 71b656e | 2000-01-05 14:46:17 +0000 | [diff] [blame] | 158 | typedef struct _xmlXPathAxis xmlXPathAxis; |
| 159 | typedef xmlXPathAxis *xmlXPathAxisPtr; |
| 160 | struct _xmlXPathAxis { |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 161 | const xmlChar *name; /* the axis name */ |
Daniel Veillard | c08a2c6 | 1999-09-08 21:35:25 +0000 | [diff] [blame] | 162 | xmlXPathAxisFunc func; /* the search function */ |
Daniel Veillard | 71b656e | 2000-01-05 14:46:17 +0000 | [diff] [blame] | 163 | }; |
Daniel Veillard | c08a2c6 | 1999-09-08 21:35:25 +0000 | [diff] [blame] | 164 | |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 165 | /* |
| 166 | * Expression evaluation occurs with respect to a context. |
| 167 | * he context consists of: |
| 168 | * - a node (the context node) |
| 169 | * - a node list (the context node list) |
| 170 | * - a set of variable bindings |
| 171 | * - a function library |
| 172 | * - the set of namespace declarations in scope for the expression |
| 173 | */ |
| 174 | |
Daniel Veillard | 71b656e | 2000-01-05 14:46:17 +0000 | [diff] [blame] | 175 | struct _xmlXPathContext { |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 176 | xmlDocPtr doc; /* The current document */ |
| 177 | xmlNodePtr node; /* The current node */ |
Daniel Veillard | c08a2c6 | 1999-09-08 21:35:25 +0000 | [diff] [blame] | 178 | |
| 179 | int nb_variables; /* number of defined variables */ |
| 180 | int max_variables; /* max number of variables */ |
| 181 | xmlXPathVariablePtr *variables; /* Array of defined variables */ |
| 182 | |
| 183 | int nb_types; /* number of defined types */ |
| 184 | int max_types; /* max number of types */ |
| 185 | xmlXPathTypePtr *types; /* Array of defined types */ |
| 186 | |
| 187 | int nb_funcs; /* number of defined funcs */ |
| 188 | int max_funcs; /* max number of funcs */ |
| 189 | xmlXPathFuncPtr *funcs; /* Array of defined funcs */ |
| 190 | |
| 191 | int nb_axis; /* number of defined axis */ |
| 192 | int max_axis; /* max number of axis */ |
| 193 | xmlXPathAxisPtr *axis; /* Array of defined axis */ |
| 194 | |
| 195 | /* Namespace traversal should be implemented with user */ |
Daniel Veillard | b96e643 | 1999-08-29 21:02:19 +0000 | [diff] [blame] | 196 | xmlNsPtr *namespaces; /* The namespaces lookup */ |
| 197 | int nsNr; /* the current Namespace index */ |
Daniel Veillard | c08a2c6 | 1999-09-08 21:35:25 +0000 | [diff] [blame] | 198 | void *user; /* user defined extra info */ |
Daniel Veillard | f09e7e3 | 2000-10-01 15:53:30 +0000 | [diff] [blame] | 199 | |
| 200 | /* extra variables */ |
| 201 | int contextSize; /* the context size */ |
| 202 | int proximityPosition; /* the proximity position */ |
Daniel Veillard | ac26030 | 2000-10-04 13:33:43 +0000 | [diff] [blame] | 203 | |
| 204 | /* extra stuff for XPointer */ |
| 205 | int xptr; /* it this an XPointer context */ |
| 206 | xmlNodePtr here; /* for here() */ |
| 207 | xmlNodePtr origin; /* for origin() */ |
Daniel Veillard | 71b656e | 2000-01-05 14:46:17 +0000 | [diff] [blame] | 208 | }; |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 209 | |
| 210 | /* |
| 211 | * An XPath parser context, it contains pure parsing informations, |
| 212 | * an xmlXPathContext, and the stack of objects. |
| 213 | */ |
Daniel Veillard | 71b656e | 2000-01-05 14:46:17 +0000 | [diff] [blame] | 214 | struct _xmlXPathParserContext { |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 215 | const xmlChar *cur; /* the current char being parsed */ |
| 216 | const xmlChar *base; /* the full expression */ |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 217 | |
| 218 | int error; /* error code */ |
| 219 | |
| 220 | xmlXPathContextPtr context; /* the evaluation context */ |
| 221 | xmlXPathObjectPtr value; /* the current value */ |
| 222 | int valueNr; /* number of values stacked */ |
| 223 | int valueMax; /* max number of values stacked */ |
| 224 | xmlXPathObjectPtr *valueTab; /* stack of values */ |
Daniel Veillard | 71b656e | 2000-01-05 14:46:17 +0000 | [diff] [blame] | 225 | }; |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 226 | |
| 227 | /* |
| 228 | * An XPath function |
| 229 | * The arguments (if any) are popped out of the context stack |
| 230 | * and the result is pushed on the stack. |
| 231 | */ |
| 232 | |
| 233 | typedef void (*xmlXPathFunction) (xmlXPathParserContextPtr ctxt, int nargs); |
| 234 | |
| 235 | /************************************************************************ |
| 236 | * * |
Daniel Veillard | 55b91f2 | 2000-10-05 16:30:11 +0000 | [diff] [blame] | 237 | * Helpers * |
| 238 | * * |
| 239 | ************************************************************************/ |
| 240 | |
| 241 | #define CHECK_ERROR \ |
| 242 | if (ctxt->error != XPATH_EXPRESSION_OK) return |
| 243 | |
| 244 | #define CHECK_ERROR0 \ |
| 245 | if (ctxt->error != XPATH_EXPRESSION_OK) return(0) |
| 246 | |
| 247 | #define XP_ERROR(X) \ |
| 248 | { xmlXPatherror(ctxt, __FILE__, __LINE__, X); \ |
| 249 | ctxt->error = (X); return; } |
| 250 | |
| 251 | #define XP_ERROR0(X) \ |
| 252 | { xmlXPatherror(ctxt, __FILE__, __LINE__, X); \ |
| 253 | ctxt->error = (X); return(0); } |
| 254 | |
| 255 | #define CHECK_TYPE(typeval) \ |
| 256 | if ((ctxt->value == NULL) || (ctxt->value->type != typeval)) \ |
| 257 | XP_ERROR(XPATH_INVALID_TYPE) \ |
| 258 | |
| 259 | #define CHECK_ARITY(x) \ |
| 260 | if (nargs != (x)) { \ |
| 261 | XP_ERROR(XPATH_INVALID_ARITY); \ |
| 262 | } \ |
| 263 | |
| 264 | void xmlXPatherror (xmlXPathParserContextPtr ctxt, |
| 265 | const char *file, |
| 266 | int line, |
| 267 | int no); |
| 268 | |
| 269 | /** |
Daniel Veillard | b71379b | 2000-10-09 12:30:39 +0000 | [diff] [blame] | 270 | * Utilities to extend XPath (XPointer) |
Daniel Veillard | 55b91f2 | 2000-10-05 16:30:11 +0000 | [diff] [blame] | 271 | */ |
Daniel Veillard | b71379b | 2000-10-09 12:30:39 +0000 | [diff] [blame] | 272 | xmlXPathParserContextPtr |
| 273 | xmlXPathNewParserContext (const xmlChar *str, |
| 274 | xmlXPathContextPtr ctxt); |
| 275 | void xmlXPathFreeParserContext (xmlXPathParserContextPtr ctxt); |
| 276 | |
Daniel Veillard | 55b91f2 | 2000-10-05 16:30:11 +0000 | [diff] [blame] | 277 | xmlXPathObjectPtr valuePop (xmlXPathParserContextPtr ctxt); |
| 278 | int valuePush (xmlXPathParserContextPtr ctxt, |
Daniel Veillard | 7e99c63 | 2000-10-06 12:59:53 +0000 | [diff] [blame] | 279 | xmlXPathObjectPtr value); |
| 280 | |
| 281 | xmlXPathObjectPtr xmlXPathNewString (const xmlChar *val); |
| 282 | xmlXPathObjectPtr xmlXPathNewNodeSet (xmlNodePtr val); |
| 283 | void xmlXPathNodeSetAdd (xmlNodeSetPtr cur, |
| 284 | xmlNodePtr val); |
| 285 | |
| 286 | |
| 287 | void xmlXPathIdFunction (xmlXPathParserContextPtr ctxt, |
| 288 | int nargs); |
| 289 | void xmlXPathRoot (xmlXPathParserContextPtr ctxt); |
| 290 | void xmlXPathEvalExpr (xmlXPathParserContextPtr ctxt); |
Daniel Veillard | 2d38f04 | 2000-10-11 10:54:10 +0000 | [diff] [blame] | 291 | xmlChar * xmlXPathParseName (xmlXPathParserContextPtr ctxt); |
Daniel Veillard | 55b91f2 | 2000-10-05 16:30:11 +0000 | [diff] [blame] | 292 | |
| 293 | /************************************************************************ |
| 294 | * * |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 295 | * Public API * |
| 296 | * * |
| 297 | ************************************************************************/ |
| 298 | |
Daniel Veillard | c08a2c6 | 1999-09-08 21:35:25 +0000 | [diff] [blame] | 299 | /** |
Daniel Veillard | 2d38f04 | 2000-10-11 10:54:10 +0000 | [diff] [blame] | 300 | * Extending a context |
Daniel Veillard | c08a2c6 | 1999-09-08 21:35:25 +0000 | [diff] [blame] | 301 | */ |
Daniel Veillard | 2d38f04 | 2000-10-11 10:54:10 +0000 | [diff] [blame] | 302 | int xmlXPathRegisterFunc (xmlXPathContextPtr ctxt, |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 303 | const xmlChar *name, |
Daniel Veillard | c08a2c6 | 1999-09-08 21:35:25 +0000 | [diff] [blame] | 304 | xmlXPathFunction f); |
Daniel Veillard | 2d38f04 | 2000-10-11 10:54:10 +0000 | [diff] [blame] | 305 | int xmlXPathRegisterVariable (xmlXPathContextPtr ctxt, |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 306 | const xmlChar *name, |
Daniel Veillard | 2d38f04 | 2000-10-11 10:54:10 +0000 | [diff] [blame] | 307 | xmlXPathObjectPtr value); |
Daniel Veillard | c08a2c6 | 1999-09-08 21:35:25 +0000 | [diff] [blame] | 308 | |
| 309 | /** |
| 310 | * Evaluation functions. |
| 311 | */ |
Daniel Veillard | ac26030 | 2000-10-04 13:33:43 +0000 | [diff] [blame] | 312 | void xmlXPathInit (void); |
Daniel Veillard | c08a2c6 | 1999-09-08 21:35:25 +0000 | [diff] [blame] | 313 | xmlXPathContextPtr xmlXPathNewContext (xmlDocPtr doc); |
Daniel Veillard | b96e643 | 1999-08-29 21:02:19 +0000 | [diff] [blame] | 314 | void xmlXPathFreeContext (xmlXPathContextPtr ctxt); |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 315 | xmlXPathObjectPtr xmlXPathEval (const xmlChar *str, |
Daniel Veillard | b96e643 | 1999-08-29 21:02:19 +0000 | [diff] [blame] | 316 | xmlXPathContextPtr ctxt); |
Daniel Veillard | ac26030 | 2000-10-04 13:33:43 +0000 | [diff] [blame] | 317 | xmlXPathObjectPtr xmlXPathEvalXPtrExpr (const xmlChar *str, |
| 318 | xmlXPathContextPtr ctxt); |
Daniel Veillard | b96e643 | 1999-08-29 21:02:19 +0000 | [diff] [blame] | 319 | void xmlXPathFreeObject (xmlXPathObjectPtr obj); |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 320 | xmlXPathObjectPtr xmlXPathEvalExpression (const xmlChar *str, |
Daniel Veillard | b96e643 | 1999-08-29 21:02:19 +0000 | [diff] [blame] | 321 | xmlXPathContextPtr ctxt); |
Daniel Veillard | dbfd641 | 1999-12-28 16:35:14 +0000 | [diff] [blame] | 322 | xmlNodeSetPtr xmlXPathNodeSetCreate (xmlNodePtr val); |
| 323 | void xmlXPathFreeNodeSetList (xmlXPathObjectPtr obj); |
| 324 | void xmlXPathFreeNodeSet (xmlNodeSetPtr obj); |
Daniel Veillard | 2d38f04 | 2000-10-11 10:54:10 +0000 | [diff] [blame] | 325 | xmlXPathObjectPtr xmlXPathObjectCopy (xmlXPathObjectPtr val); |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 326 | |
Daniel Veillard | 55b91f2 | 2000-10-05 16:30:11 +0000 | [diff] [blame] | 327 | |
Daniel Veillard | e4e5131 | 1999-12-18 15:32:46 +0000 | [diff] [blame] | 328 | #ifdef __cplusplus |
| 329 | } |
| 330 | #endif |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 331 | #endif /* ! __XML_XPATH_H__ */ |