xmlXPathDebugD
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 |
- xmlXPathNodeSetAdd ()
void xmlXPathNodeSetAdd (xmlNodeSetPtr cur,
xmlNodePtr val)
+
+cur: | the initial node set |
val: | a new xmlNodePtr |
Returns: | 0 in case of success, and -1 in case of error |
- xmlXPathNodeSetAddNs ()
void xmlXPathNodeSetAddNs (xmlNodeSetPtr cur,
xmlNodePtr node,
xmlNsPtr ns)
+ xmlXPathNodeSetAddNs ()
int 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 |
+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 |
- xmlXPathNodeSetAddUnique ()
void xmlXPathNodeSetAddUnique (xmlNodeSetPtr cur,
xmlNodePtr val)
+ xmlXPathNodeSetAddUnique ()
int 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.
-
+cur: | the initial node set |
val: | a new xmlNodePtr |
Returns: | 0 in case of success and -1 in case of failure |
xmlXPathNodeSetContains ()
int xmlXPathNodeSetContains (xmlNodeSetPtr cur,
xmlNodePtr val)
checks whether @cur contains @val