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.
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.
xmlSecNodeSetGetChildren ()
xmlSecNodeSetPtr
xmlSecNodeSetGetChildren (xmlDocPtr doc
,
const xmlNodePtr parent
,
int withComments
,
int invert
);
Creates a new nodes set that contains:
if withComments
is not 0 and invert
is 0:
all nodes in the parent
subtree;
if withComments
is 0 and invert
is 0:
all nodes in the parent
subtree except comment nodes;
if withComments
is not 0 and invert
not is 0:
all nodes in the doc
except nodes in the parent
subtree;
if withComments
is 0 and invert
is 0:
all nodes in the doc
except nodes in the parent
subtree
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
.