Details
xmlXPathSetError()
#define xmlXPathSetError(ctxt, err) |
Raises an error.
xmlXPathSetArityError()
#define xmlXPathSetArityError(ctxt) |
Raises an XPATH_INVALID_ARITY error.
xmlXPathSetTypeError()
#define xmlXPathSetTypeError(ctxt) |
Raises an XPATH_INVALID_TYPE error.
xmlXPathGetError()
#define xmlXPathGetError(ctxt) |
Get the error code of an XPath context.
xmlXPathCheckError()
#define xmlXPathCheckError(ctxt) |
Check if an XPath error was raised.
xmlXPathGetDocument()
#define xmlXPathGetDocument(ctxt) |
Get the document of an XPath context.
xmlXPathGetContextNode()
#define xmlXPathGetContextNode(ctxt) |
Get the context node of an XPath context.
xmlXPathPopBoolean ()
Pops a boolean from the stack, handling conversion if needed.
Check error with xmlXPathCheckError.
xmlXPathPopNumber ()
Pops a number from the stack, handling conversion if needed.
Check error with xmlXPathCheckError.
xmlXPathPopString ()
Pops a string from the stack, handling conversion if needed.
Check error with xmlXPathCheckError.
xmlXPathPopNodeSet ()
Pops a node-set from the stack, handling conversion if needed.
Check error with xmlXPathCheckError.
xmlXPathPopExternal ()
Pops an external object from the stack, handling conversion if needed.
Check error with xmlXPathCheckError.
xmlXPathReturnBoolean()
#define xmlXPathReturnBoolean(ctxt, val) |
Pushes the boolean val on the context stack.
xmlXPathReturnTrue()
#define xmlXPathReturnTrue(ctxt) |
Pushes true on the context stack.
xmlXPathReturnFalse()
#define xmlXPathReturnFalse(ctxt) |
Pushes false on the context stack.
xmlXPathReturnNumber()
#define xmlXPathReturnNumber(ctxt, val) |
Pushes the double val on the context stack.
xmlXPathReturnString()
#define xmlXPathReturnString(ctxt, str) |
Pushes the string str on the context stack.
xmlXPathReturnEmptyString()
#define xmlXPathReturnEmptyString(ctxt) |
Pushes an empty string on the stack.
xmlXPathReturnNodeSet()
#define xmlXPathReturnNodeSet(ctxt, ns) |
Pushes the node-set ns on the context stack.
xmlXPathReturnEmptyNodeSet()
#define xmlXPathReturnEmptyNodeSet(ctxt) |
Pushes an empty node-set on the context stack.
xmlXPathReturnExternal()
#define xmlXPathReturnExternal(ctxt, val) |
Pushes user data on the context stack.
xmlXPathStackIsNodeSet()
#define xmlXPathStackIsNodeSet(ctxt) |
Check if the current value on the XPath stack is a node set or
an XSLT value tree.
xmlXPathStackIsExternal()
#define xmlXPathStackIsExternal(ctxt) |
Checks if the current value on the XPath stack is an external
object.
xmlXPathEmptyNodeSet()
#define xmlXPathEmptyNodeSet(ns) |
Empties a node-set.
CHECK_ERROR
Macro to return from the function if an XPath error was detected.
CHECK_ERROR0
Macro to return 0 from the function if an XPath error was detected.
XP_ERROR()
Macro to raise an XPath error and return.
XP_ERROR0()
Macro to raise an XPath error and return 0.
CHECK_TYPE()
#define CHECK_TYPE(typeval) |
Macro to check that the value on top of the XPath stack is of a given
type.
CHECK_TYPE0()
#define CHECK_TYPE0(typeval) |
Macro to check that the value on top of the XPath stack is of a given
type. Return(0) in case of failure
CHECK_ARITY()
Macro to check that the number of args passed to an XPath function matches.
CAST_TO_STRING
Macro to try to cast the value on the top of the XPath stack to a string.
CAST_TO_NUMBER
Macro to try to cast the value on the top of the XPath stack to a number.
CAST_TO_BOOLEAN
Macro to try to cast the value on the top of the XPath stack to a boolean.
xmlXPathVariableLookupFunc ()
Prototype for callbacks used to plug variable lookup in the XPath
engine.
xmlXPathRegisterVariableLookup ()
register an external mechanism to do variable lookup
xmlXPathFuncLookupFunc ()
Prototype for callbacks used to plug function lookup in the XPath
engine.
xmlXPathRegisterFuncLookup ()
Registers an external mechanism to do function lookup.
xmlXPatherror ()
Formats an error message.
xmlXPathDebugDumpObject ()
Dump the content of the object for debugging purposes
xmlXPathDebugDumpCompExpr ()
Dumps the tree of the compiled XPath expression.
xmlXPathNodeSetContains ()
checks whether cur contains val
xmlXPathDifference ()
Implements the EXSLT - Sets difference() function:
node-set set:difference (node-set, node-set)
xmlXPathIntersection ()
Implements the EXSLT - Sets intersection() function:
node-set set:intersection (node-set, node-set)
xmlXPathDistinctSorted ()
Implements the EXSLT - Sets distinct() function:
node-set set:distinct (node-set)
xmlXPathDistinct ()
Implements the EXSLT - Sets distinct() function:
node-set set:distinct (node-set)
nodes is sorted by document order, then exslSetsDistinctSorted
is called with the sorted node-set
xmlXPathHasSameNodes ()
Implements the EXSLT - Sets has-same-nodes function:
boolean set:has-same-node(node-set, node-set)
xmlXPathNodeLeadingSorted ()
Implements the EXSLT - Sets leading() function:
node-set set:leading (node-set, node-set)
xmlXPathLeadingSorted ()
Implements the EXSLT - Sets leading() function:
node-set set:leading (node-set, node-set)
xmlXPathNodeLeading ()
Implements the EXSLT - Sets leading() function:
node-set set:leading (node-set, node-set)
nodes is sorted by document order, then exslSetsNodeLeadingSorted
is called.
xmlXPathLeading ()
Implements the EXSLT - Sets leading() function:
node-set set:leading (node-set, node-set)
nodes1 and nodes2 are sorted by document order, then
exslSetsLeadingSorted is called.
xmlXPathNodeTrailingSorted ()
Implements the EXSLT - Sets trailing() function:
node-set set:trailing (node-set, node-set)
xmlXPathTrailingSorted ()
Implements the EXSLT - Sets trailing() function:
node-set set:trailing (node-set, node-set)
xmlXPathNodeTrailing ()
Implements the EXSLT - Sets trailing() function:
node-set set:trailing (node-set, node-set)
nodes is sorted by document order, then xmlXPathNodeTrailingSorted
is called.
xmlXPathTrailing ()
Implements the EXSLT - Sets trailing() function:
node-set set:trailing (node-set, node-set)
nodes1 and nodes2 are sorted by document order, then
xmlXPathTrailingSorted is called.
xmlXPathRegisterNs ()
Register a new namespace. If ns_uri is NULL it unregisters
the namespace
xmlXPathNsLookup ()
Search in the namespace declaration array of the context for the given
namespace name associated to the given prefix
xmlXPathRegisteredNsCleanup ()
Cleanup the XPath context data associated to registered variables
xmlXPathRegisterFunc ()
Register a new function. If f is NULL it unregisters the function
xmlXPathRegisterFuncNS ()
Register a new function. If f is NULL it unregisters the function
xmlXPathRegisterVariable ()
Register a new variable value. If value is NULL it unregisters
the variable
xmlXPathRegisterVariableNS ()
Register a new variable value. If value is NULL it unregisters
the variable
xmlXPathFunctionLookup ()
Search in the Function array of the context for the given
function.
xmlXPathFunctionLookupNS ()
Search in the Function array of the context for the given
function.
xmlXPathRegisteredFuncsCleanup ()
Cleanup the XPath context data associated to registered functions
xmlXPathVariableLookup ()
Search in the Variable array of the context for the given
variable value.
xmlXPathVariableLookupNS ()
Search in the Variable array of the context for the given
variable value.
xmlXPathRegisteredVariablesCleanup ()
Cleanup the XPath context data associated to registered variables
xmlXPathNewParserContext ()
Create a new xmlXPathParserContext