Functions
xmlSecNodeSetWalkCallback ()
int
(*xmlSecNodeSetWalkCallback) (xmlSecNodeSetPtr nset,
                              xmlNodePtr cur,
                              xmlNodePtr parent,
                              void *data);
The callback function called once per each node in the nodes set.
Returns
 0 on success or a negative value if an error occurs
an walk procedure should be interrupted.
 
 
xmlSecNodeSetCreate ()
xmlSecNodeSetPtr
xmlSecNodeSetCreate (xmlDocPtr doc,
                     xmlNodeSetPtr nodes,
                     xmlSecNodeSetType type);
Creates new nodes set. Caller is responsible for freeing returned object
by calling xmlSecNodeSetDestroy function.
Returns
 pointer to newly allocated node set or NULL if an error occurs.
 
 
xmlSecNodeSetDestroy ()
void
xmlSecNodeSetDestroy (xmlSecNodeSetPtr nset);
Destroys the nodes set created with xmlSecNodeSetCreate function.
 
xmlSecNodeSetDocDestroy ()
void
xmlSecNodeSetDocDestroy (xmlSecNodeSetPtr nset);
Instructs node set to destroy nodes parent doc when node set is destroyed.
 
xmlSecNodeSetContains ()
int
xmlSecNodeSetContains (xmlSecNodeSetPtr nset,
                       xmlNodePtr node,
                       xmlNodePtr parent);
Checks whether the node
 is in the nodes set or not.
Returns
 1 if the node
is in the nodes set nset
, 0 if it is not
and a negative value if an error occurs.
 
 
xmlSecNodeSetAdd ()
xmlSecNodeSetPtr
xmlSecNodeSetAdd (xmlSecNodeSetPtr nset,
                  xmlSecNodeSetPtr newNSet,
                  xmlSecNodeSetOp op);
Adds newNSet
 to the nset
 using operation op
.
Returns
 the pointer to combined nodes set or NULL if an error
occurs.
 
 
xmlSecNodeSetAddList ()
xmlSecNodeSetPtr
xmlSecNodeSetAddList (xmlSecNodeSetPtr nset,
                      xmlSecNodeSetPtr newNSet,
                      xmlSecNodeSetOp op);
Adds newNSet
 to the nset
 as child using operation op
.
Returns
 the pointer to combined nodes set or NULL if an error
occurs.
 
 
xmlSecNodeSetGetChildren ()
xmlSecNodeSetPtr
xmlSecNodeSetGetChildren (xmlDocPtr doc,
                          const xmlNodePtr parent,
                          int withComments,
                          int invert);
Creates a new nodes set that contains:
- if - withCommentsis not 0 and- invertis 0:
all nodes in the- parentsubtree;
 
- if - withCommentsis 0 and- invertis 0:
all nodes in the- parentsubtree except comment nodes;
 
- if - withCommentsis not 0 and- invertnot is 0:
all nodes in the- docexcept nodes in the- parentsubtree;
 
- if - withCommentsis 0 and- invertis 0:
all nodes in the- docexcept nodes in the- parentsubtree
and comment nodes.
 
Returns
 pointer to the newly created xmlSecNodeSet structure
or NULL if an error occurs.
 
 
xmlSecNodeSetWalk ()
int
xmlSecNodeSetWalk (xmlSecNodeSetPtr nset,
                   xmlSecNodeSetWalkCallback walkFunc,
                   void *data);
Calls the function walkFunc
 once per each node in the nodes set nset
.
If the walkFunc
 returns a negative value, then the walk procedure
is interrupted.
Returns
 0 on success or a negative value if an error occurs.
 
 
xmlSecNodeSetDumpTextNodes ()
int
xmlSecNodeSetDumpTextNodes (xmlSecNodeSetPtr nset,
                            xmlOutputBufferPtr out);
Dumps content of all the text nodes from nset
 to out
.
Returns
 0 on success or a negative value otherwise.
 
 
xmlSecNodeSetDebugDump ()
void
xmlSecNodeSetDebugDump (xmlSecNodeSetPtr nset,
                        FILE *output);
Prints information about nset
 to the output
.