libxml2_xpath.h File Reference

Typedef xmlXPathContext

typedef struct _xmlXPathContextxmlXPathContext

Typedef xmlXPathContextPtr

typedef xmlXPathContext *xmlXPathContextPtr

Typedef xmlXPathParserContext

typedef struct _xmlXPathParserContextxmlXPathParserContext

Typedef xmlXPathParserContextPtr

typedef xmlXPathParserContext *xmlXPathParserContextPtr

Typedef xmlNodeSet

typedef struct _xmlNodeSetxmlNodeSet

Typedef xmlNodeSetPtr

typedef xmlNodeSet *xmlNodeSetPtr

Enum xmlXPathObjectType

Typedef xmlXPathObject

typedef struct _xmlXPathObjectxmlXPathObject

Typedef xmlXPathObjectPtr

typedef xmlXPathObject *xmlXPathObjectPtr

Typedef xmlXPathConvertFunc

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 xmlXPathType

typedef struct _xmlXPathTypexmlXPathType

Typedef xmlXPathTypePtr

typedef xmlXPathType *xmlXPathTypePtr

Typedef xmlXPathVariable

typedef struct _xmlXPathVariablexmlXPathVariable

Typedef xmlXPathVariablePtr

typedef xmlXPathVariable *xmlXPathVariablePtr

Typedef xmlXPathEvalFunc

typedef void(*xmlXPathEvalFunc

xmlXPathEvalFunc: An XPath evaluation function, the parameters are on the XPath context stack.

Typedef xmlXPathFunct

typedef struct _xmlXPathFunctxmlXPathFunct

Typedef xmlXPathFuncPtr

typedef xmlXPathFunct *xmlXPathFuncPtr

Typedef xmlXPathAxisFunc

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 xmlXPathAxis

typedef struct _xmlXPathAxisxmlXPathAxis

Typedef xmlXPathAxisPtr

typedef xmlXPathAxis *xmlXPathAxisPtr

Typedef xeXPathNsResolverFunc

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)

Enum xmlXPathOp

Typedef xmlXPathStepOp

typedef struct _xmlXPathStepOpxmlXPathStepOp

Typedef xmlXPathStepOpPtr

typedef xmlXPathStepOp *xmlXPathStepOpPtr

XPATH_STEPS_GRANULARITY

The initial size of 'steps' table in the precompiled XPath exression

Double-it policy for growth is used in the code

Typedef xmlXPathCompExpr

typedef struct _xmlXPathCompExprxmlXPathCompExpr

Typedef xmlXPathCompExprPtr

typedef xmlXPathCompExpr *xmlXPathCompExprPtr

Typedef xmlXPathFunction

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.

xmlXPathIsNaN

xmlXPathIsInf

xmlXPathNodeSetGetLength

xmlXPathNodeSetGetLength: Implements a functionality similar to the DOM NodeList.length.

Returns the number of nodes in the node-set.

xmlXPathNodeSetItem

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

xmlXPathNodeSetIsEmpty: Checks whether ns is empty or not.

Returns TRUE if ns is an empty node-set.

xmlXPathFreeObject ( xmlXPathObjectPtr )

XMLPUBFUN void XMLCALLxmlXPathFreeObject(xmlXPathObjectPtrobj)

xmlXPathNodeSetCreate ( xmlNodePtr )

XMLPUBFUN xmlNodeSetPtr XMLCALLxmlXPathNodeSetCreate(xmlNodePtrval)

xmlXPathFreeNodeSetList ( xmlXPathObjectPtr )

XMLPUBFUN void XMLCALLxmlXPathFreeNodeSetList(xmlXPathObjectPtrobj)

xmlXPathFreeNodeSet ( xmlNodeSetPtr )

XMLPUBFUN void XMLCALLxmlXPathFreeNodeSet(xmlNodeSetPtrobj)

xmlXPathObjectCopy ( xmlXPathObjectPtr )

XMLPUBFUN xmlXPathObjectPtr XMLCALLxmlXPathObjectCopy(xmlXPathObjectPtrval)

xmlXPathCmpNodes ( xmlNodePtr, xmlNodePtr )

XMLPUBFUN int XMLCALLxmlXPathCmpNodes(xmlNodePtrnode1,
xmlNodePtrnode2
)

xmlXPathCastNumberToBoolean ( double )

XMLPUBFUN int XMLCALLxmlXPathCastNumberToBoolean(doubleval)

Conversion functions to basic types.

xmlXPathCastStringToBoolean ( const xmlChar * )

XMLPUBFUN int XMLCALLxmlXPathCastStringToBoolean(const xmlChar *val)

xmlXPathCastNodeSetToBoolean ( xmlNodeSetPtr )

XMLPUBFUN int XMLCALLxmlXPathCastNodeSetToBoolean(xmlNodeSetPtrns)

xmlXPathCastToBoolean ( xmlXPathObjectPtr )

XMLPUBFUN int XMLCALLxmlXPathCastToBoolean(xmlXPathObjectPtrval)

xmlXPathCastBooleanToNumber ( int )

XMLPUBFUN double XMLCALLxmlXPathCastBooleanToNumber(intval)

xmlXPathCastStringToNumber ( const xmlChar * )

XMLPUBFUN double XMLCALLxmlXPathCastStringToNumber(const xmlChar *val)

xmlXPathCastNodeToNumber ( xmlNodePtr )

XMLPUBFUN double XMLCALLxmlXPathCastNodeToNumber(xmlNodePtrnode)

xmlXPathCastNodeSetToNumber ( xmlNodeSetPtr )

XMLPUBFUN double XMLCALLxmlXPathCastNodeSetToNumber(xmlNodeSetPtrns)

xmlXPathCastToNumber ( xmlXPathObjectPtr )

XMLPUBFUN double XMLCALLxmlXPathCastToNumber(xmlXPathObjectPtrval)

xmlXPathCastBooleanToString ( int )

XMLPUBFUN xmlChar *XMLCALLxmlXPathCastBooleanToString(intval)

xmlXPathCastNumberToString ( double )

XMLPUBFUN xmlChar *XMLCALLxmlXPathCastNumberToString(doubleval)

xmlXPathCastNodeToString ( xmlNodePtr )

XMLPUBFUN xmlChar *XMLCALLxmlXPathCastNodeToString(xmlNodePtrnode)

xmlXPathCastNodeSetToString ( xmlNodeSetPtr )

XMLPUBFUN xmlChar *XMLCALLxmlXPathCastNodeSetToString(xmlNodeSetPtrns)

xmlXPathCastToString ( xmlXPathObjectPtr )

XMLPUBFUN xmlChar *XMLCALLxmlXPathCastToString(xmlXPathObjectPtrval)

xmlXPathConvertBoolean ( xmlXPathObjectPtr )

XMLPUBFUN xmlXPathObjectPtr XMLCALLxmlXPathConvertBoolean(xmlXPathObjectPtrval)

xmlXPathConvertNumber ( xmlXPathObjectPtr )

XMLPUBFUN xmlXPathObjectPtr XMLCALLxmlXPathConvertNumber(xmlXPathObjectPtrval)

xmlXPathConvertString ( xmlXPathObjectPtr )

XMLPUBFUN xmlXPathObjectPtr XMLCALLxmlXPathConvertString(xmlXPathObjectPtrval)

xmlXPathInit ( void )

XMLPUBFUN void XMLCALLxmlXPathInit(void)

Context handling.

xmlXPathNewContext ( xmlDocPtr )

XMLPUBFUN xmlXPathContextPtr XMLCALLxmlXPathNewContext(xmlDocPtrdoc)

xmlXPathFreeContext ( xmlXPathContextPtr )

XMLPUBFUN void XMLCALLxmlXPathFreeContext(xmlXPathContextPtrctxt)

xmlXPathOrderDocElems ( xmlDocPtr )

XMLPUBFUN long XMLCALLxmlXPathOrderDocElems(xmlDocPtrdoc)

Evaluation functions.

xmlXPathEval ( const xmlChar *, xmlXPathContextPtr )

XMLPUBFUN xmlXPathObjectPtr XMLCALLxmlXPathEval(const xmlChar *str,
xmlXPathContextPtrctx
)

xmlXPathEvalExpression ( const xmlChar *, xmlXPathContextPtr )

XMLPUBFUN xmlXPathObjectPtr XMLCALLxmlXPathEvalExpression(const xmlChar *str,
xmlXPathContextPtrctxt
)

xmlXPathEvalPredicate ( xmlXPathContextPtr, xmlXPathObjectPtr )

XMLPUBFUN int XMLCALLxmlXPathEvalPredicate(xmlXPathContextPtrctxt,
xmlXPathObjectPtrres
)

xmlXPathCompile ( const xmlChar * )

XMLPUBFUN xmlXPathCompExprPtr XMLCALLxmlXPathCompile(const xmlChar *str)

Separate compilation/evaluation entry points.

xmlXPathCtxtCompile ( xmlXPathContextPtr, const xmlChar * )

XMLPUBFUN xmlXPathCompExprPtr XMLCALLxmlXPathCtxtCompile(xmlXPathContextPtrctxt,
const xmlChar *str
)

xmlXPathCompiledEval ( xmlXPathCompExprPtr, xmlXPathContextPtr )

XMLPUBFUN xmlXPathObjectPtr XMLCALLxmlXPathCompiledEval(xmlXPathCompExprPtrcomp,
xmlXPathContextPtrctx
)

xmlXPathFreeCompExpr ( xmlXPathCompExprPtr )

XMLPUBFUN void XMLCALLxmlXPathFreeCompExpr(xmlXPathCompExprPtrcomp)