internal interfaces for XML Path Language implementation used to build new modules on top of XPath like XPointer and XSLT Table of Contents#define CAST_TO_BOOLEAN #define CAST_TO_NUMBER #define CAST_TO_STRING #define CHECK_ARITY #define CHECK_ERROR #define CHECK_ERROR0 #define CHECK_TYPE #define CHECK_TYPE0 #define XP_ERROR #define XP_ERROR0 #define xmlXPathCheckError #define xmlXPathEmptyNodeSet #define xmlXPathGetContextNode #define xmlXPathGetDocument #define xmlXPathGetError #define xmlXPathReturnBoolean #define xmlXPathReturnEmptyNodeSet #define xmlXPathReturnEmptyString #define xmlXPathReturnExternal #define xmlXPathReturnFalse #define xmlXPathReturnNodeSet #define xmlXPathReturnNumber #define xmlXPathReturnString #define xmlXPathReturnTrue #define xmlXPathSetArityError #define xmlXPathSetError #define xmlXPathSetTypeError #define xmlXPathStackIsExternal #define xmlXPathStackIsNodeSet xmlXPathObjectPtr valuePop (xmlXPathParserContextPtr ctxt)
int valuePush (xmlXPathParserContextPtr ctxt, xmlXPathObjectPtr value)
void xmlXPathAddValues (xmlXPathParserContextPtr ctxt)
void xmlXPathBooleanFunction (xmlXPathParserContextPtr ctxt, int nargs)
@@ -69,9 +69,9 @@ A:link, A:visited, A:active { text-decoration: underli
xmlNodePtr xmlXPathNextSelf (xmlXPathParserContextPtr ctxt, xmlNodePtr cur)
xmlNodeSetPtr xmlXPathNodeLeading (xmlNodeSetPtr nodes, xmlNodePtr node)
xmlNodeSetPtr xmlXPathNodeLeadingSorted (xmlNodeSetPtr nodes, xmlNodePtr node)
-void xmlXPathNodeSetAdd (xmlNodeSetPtr cur, xmlNodePtr val)
-void xmlXPathNodeSetAddNs (xmlNodeSetPtr cur, xmlNodePtr node, xmlNsPtr ns)
-void xmlXPathNodeSetAddUnique (xmlNodeSetPtr cur, xmlNodePtr val)
+int xmlXPathNodeSetAdd (xmlNodeSetPtr cur, xmlNodePtr val)
+int xmlXPathNodeSetAddNs (xmlNodeSetPtr cur, xmlNodePtr node, xmlNsPtr ns)
+int xmlXPathNodeSetAddUnique (xmlNodeSetPtr cur, xmlNodePtr val)
int xmlXPathNodeSetContains (xmlNodeSetPtr cur, xmlNodePtr val)
void xmlXPathNodeSetDel (xmlNodeSetPtr cur, xmlNodePtr val)
void xmlXPathNodeSetFreeNs (xmlNsPtr ns)
@@ -275,13 +275,13 @@ A:link, A:visited, A:active { text-decoration: underli
Implements the EXSLT - Sets leading() function: node-set set:leading (node-set, node-set) @nodes is sorted by document order, then #exslSetsNodeLeadingSorted is called.
nodes: | a node-set | node: | a node | Returns: | the nodes in @nodes that precede @node in document order, @nodes if @node is NULL or an empty node-set if @nodes doesn't contain @node |
Function: xmlXPathNodeLeadingSortedxmlNodeSetPtr xmlXPathNodeLeadingSorted (xmlNodeSetPtr nodes, xmlNodePtr node)
Implements the EXSLT - Sets leading() function: node-set set:leading (node-set, node-set)
-nodes: | a node-set, sorted by document order | node: | a node | Returns: | the nodes in @nodes that precede @node in document order, @nodes if @node is NULL or an empty node-set if @nodes doesn't contain @node |
Function: xmlXPathNodeSetAddvoid xmlXPathNodeSetAdd (xmlNodeSetPtr cur, xmlNodePtr val)
+nodes: | a node-set, sorted by document order | node: | a node | Returns: | the nodes in @nodes that precede @node in document order, @nodes if @node is NULL or an empty node-set if @nodes doesn't contain @node |
Function: xmlXPathNodeSetAddint xmlXPathNodeSetAdd (xmlNodeSetPtr cur, xmlNodePtr val)
add a new xmlNodePtr to an existing NodeSet
-Function: xmlXPathNodeSetAddNsvoid xmlXPathNodeSetAddNs (xmlNodeSetPtr cur, xmlNodePtr node, xmlNsPtr ns)
+cur: | the initial node set | val: | a new xmlNodePtr | Returns: | 0 in case of success, and -1 in case of error |
Function: xmlXPathNodeSetAddNsint xmlXPathNodeSetAddNs (xmlNodeSetPtr cur, xmlNodePtr node, xmlNsPtr ns)
add a new namespace node to an existing NodeSet
-cur: | the initial node set | node: | the hosting node | ns: | a the namespace node |
Function: xmlXPathNodeSetAddUniquevoid xmlXPathNodeSetAddUnique (xmlNodeSetPtr cur, xmlNodePtr val)
+cur: | the initial node set | node: | the hosting node | ns: | a the namespace node | Returns: | 0 in case of success and -1 in case of error |
Function: xmlXPathNodeSetAddUniqueint xmlXPathNodeSetAddUnique (xmlNodeSetPtr cur, xmlNodePtr val)
add a new xmlNodePtr to an existing NodeSet, optimized version when we are sure the node is not already in the set.
-Function: xmlXPathNodeSetContainsint xmlXPathNodeSetContains (xmlNodeSetPtr cur, xmlNodePtr val)
+cur: | the initial node set | val: | a new xmlNodePtr | Returns: | 0 in case of success and -1 in case of failure |
Function: xmlXPathNodeSetContainsint xmlXPathNodeSetContains (xmlNodeSetPtr cur, xmlNodePtr val)
checks whether @cur contains @val
cur: | the node-set | val: | the node | Returns: | true (1) if @cur contains @val, false (0) otherwise |
Function: xmlXPathNodeSetDelvoid xmlXPathNodeSetDel (xmlNodeSetPtr cur, xmlNodePtr val)
Removes an xmlNodePtr from an existing NodeSet
|