typedef struct _xmlXPathContext | xmlXPathContext |
typedef xmlXPathContext * | xmlXPathContextPtr |
typedef struct _xmlXPathParserContext | xmlXPathParserContext |
typedef xmlXPathParserContext * | xmlXPathParserContextPtr |
The set of XPath error codes.
typedef struct _xmlNodeSet | xmlNodeSet |
typedef xmlNodeSet * | xmlNodeSetPtr |
Enumerator | Value | Description |
---|---|---|
XPATH_UNDEFINED | 0 | |
XPATH_NODESET | 1 | |
XPATH_BOOLEAN | 2 | |
XPATH_NUMBER | 3 | |
XPATH_STRING | 4 | |
XPATH_POINT | 5 | |
XPATH_RANGE | 6 | |
XPATH_LOCATIONSET | 7 | |
XPATH_USERS | 8 | |
XPATH_XSLT_TREE | 9 |
typedef struct _xmlXPathObject | xmlXPathObject |
typedef xmlXPathObject * | xmlXPathObjectPtr |
typedef int(* | xmlXPathConvertFunc |
xmlXPathConvertFunc: A conversion function is associated to a type and used to cast the new type to primitive values.
Returns -1 in case of error, 0 otherwise
typedef struct _xmlXPathType | xmlXPathType |
typedef xmlXPathType * | xmlXPathTypePtr |
typedef struct _xmlXPathVariable | xmlXPathVariable |
typedef xmlXPathVariable * | xmlXPathVariablePtr |
typedef void(* | xmlXPathEvalFunc |
xmlXPathEvalFunc: An XPath evaluation function, the parameters are on the XPath context stack.
typedef struct _xmlXPathFunct | xmlXPathFunct |
typedef xmlXPathFunct * | xmlXPathFuncPtr |
typedef xmlXPathObjectPtr(* | xmlXPathAxisFunc |
xmlXPathAxisFunc: An axis traversal function. To traverse an axis, the engine calls the first time with cur == NULL and repeat until the function returns NULL indicating the end of the axis traversal.
Returns the next node in that axis or NULL if at the end of the axis.
typedef struct _xmlXPathAxis | xmlXPathAxis |
typedef xmlXPathAxis * | xmlXPathAxisPtr |
typedef const xmlChar *(* | xeXPathNsResolverFunc |
Callback for resolving prefix names into namespace URIs
Resolving is made with aCtxt context.
This function is used internally by for implementation of namespace-resovling feature in XPath API of XML Engine (MXmlEngNamespaceResolver interface is called by libxml2)
typedef struct _xmlXPathStepOp | xmlXPathStepOp |
typedef xmlXPathStepOp * | xmlXPathStepOpPtr |
The initial size of 'steps' table in the precompiled XPath exression
Double-it policy for growth is used in the code
typedef struct _xmlXPathCompExpr | xmlXPathCompExpr |
typedef xmlXPathCompExpr * | xmlXPathCompExprPtr |
typedef void(* | xmlXPathFunction |
xmlXPathFunction: An XPath function. The arguments (if any) are popped out from the context stack and the result is pushed on the stack.
xmlXPathNodeSetGetLength: Implements a functionality similar to the DOM NodeList.length.
Returns the number of nodes in the node-set.
xmlXPathNodeSetItem: Implements a functionality similar to the DOM NodeList.item().
Returns the xmlNodePtr at the given index in ns or NULL if index is out of range (0 to length-1)
xmlXPathNodeSetIsEmpty: Checks whether ns is empty or not.
Returns TRUE if ns is an empty node-set.
XMLPUBFUN void XMLCALL | xmlXPathFreeObject | ( | xmlXPathObjectPtr | obj | ) |
XMLPUBFUN xmlNodeSetPtr XMLCALL | xmlXPathNodeSetCreate | ( | xmlNodePtr | val | ) |
XMLPUBFUN void XMLCALL | xmlXPathFreeNodeSetList | ( | xmlXPathObjectPtr | obj | ) |
XMLPUBFUN void XMLCALL | xmlXPathFreeNodeSet | ( | xmlNodeSetPtr | obj | ) |
XMLPUBFUN xmlXPathObjectPtr XMLCALL | xmlXPathObjectCopy | ( | xmlXPathObjectPtr | val | ) |
XMLPUBFUN int XMLCALL | xmlXPathCmpNodes | ( | xmlNodePtr | node1, |
xmlNodePtr | node2 | |||
) |
XMLPUBFUN int XMLCALL | xmlXPathCastNumberToBoolean | ( | double | val | ) |
Conversion functions to basic types.
XMLPUBFUN int XMLCALL | xmlXPathCastStringToBoolean | ( | const xmlChar * | val | ) |
XMLPUBFUN int XMLCALL | xmlXPathCastNodeSetToBoolean | ( | xmlNodeSetPtr | ns | ) |
XMLPUBFUN int XMLCALL | xmlXPathCastToBoolean | ( | xmlXPathObjectPtr | val | ) |
XMLPUBFUN double XMLCALL | xmlXPathCastBooleanToNumber | ( | int | val | ) |
XMLPUBFUN double XMLCALL | xmlXPathCastStringToNumber | ( | const xmlChar * | val | ) |
XMLPUBFUN double XMLCALL | xmlXPathCastNodeToNumber | ( | xmlNodePtr | node | ) |
XMLPUBFUN double XMLCALL | xmlXPathCastNodeSetToNumber | ( | xmlNodeSetPtr | ns | ) |
XMLPUBFUN double XMLCALL | xmlXPathCastToNumber | ( | xmlXPathObjectPtr | val | ) |
XMLPUBFUN xmlChar *XMLCALL | xmlXPathCastBooleanToString | ( | int | val | ) |
XMLPUBFUN xmlChar *XMLCALL | xmlXPathCastNumberToString | ( | double | val | ) |
XMLPUBFUN xmlChar *XMLCALL | xmlXPathCastNodeToString | ( | xmlNodePtr | node | ) |
XMLPUBFUN xmlChar *XMLCALL | xmlXPathCastNodeSetToString | ( | xmlNodeSetPtr | ns | ) |
XMLPUBFUN xmlChar *XMLCALL | xmlXPathCastToString | ( | xmlXPathObjectPtr | val | ) |
XMLPUBFUN xmlXPathObjectPtr XMLCALL | xmlXPathConvertBoolean | ( | xmlXPathObjectPtr | val | ) |
XMLPUBFUN xmlXPathObjectPtr XMLCALL | xmlXPathConvertNumber | ( | xmlXPathObjectPtr | val | ) |
XMLPUBFUN xmlXPathObjectPtr XMLCALL | xmlXPathConvertString | ( | xmlXPathObjectPtr | val | ) |
XMLPUBFUN void XMLCALL | xmlXPathInit | ( | void | ) |
Context handling.
XMLPUBFUN xmlXPathContextPtr XMLCALL | xmlXPathNewContext | ( | xmlDocPtr | doc | ) |
XMLPUBFUN void XMLCALL | xmlXPathFreeContext | ( | xmlXPathContextPtr | ctxt | ) |
XMLPUBFUN xmlXPathObjectPtr XMLCALL | xmlXPathEval | ( | const xmlChar * | str, |
xmlXPathContextPtr | ctx | |||
) |
XMLPUBFUN xmlXPathObjectPtr XMLCALL | xmlXPathEvalExpression | ( | const xmlChar * | str, |
xmlXPathContextPtr | ctxt | |||
) |
XMLPUBFUN int XMLCALL | xmlXPathEvalPredicate | ( | xmlXPathContextPtr | ctxt, |
xmlXPathObjectPtr | res | |||
) |
XMLPUBFUN xmlXPathCompExprPtr XMLCALL | xmlXPathCompile | ( | const xmlChar * | str | ) |
Separate compilation/evaluation entry points.
XMLPUBFUN xmlXPathCompExprPtr XMLCALL | xmlXPathCtxtCompile | ( | xmlXPathContextPtr | ctxt, |
const xmlChar * | str | |||
) |
XMLPUBFUN xmlXPathObjectPtr XMLCALL | xmlXPathCompiledEval | ( | xmlXPathCompExprPtr | comp, |
xmlXPathContextPtr | ctx | |||
) |
XMLPUBFUN void XMLCALL | xmlXPathFreeCompExpr | ( | xmlXPathCompExprPtr | comp | ) |