Functions
xmlSecNodeGetName()
#define             xmlSecNodeGetName(node)
Macro. Returns node's name.
 
xmlSecGetNodeNsHref ()
const xmlChar *
xmlSecGetNodeNsHref (const xmlNodePtr cur);
Get's node's namespace href.
Returns
 node's namespace href.
 
 
xmlSecCheckNodeName ()
int
xmlSecCheckNodeName (const xmlNodePtr cur,
                     const xmlChar *name,
                     const xmlChar *ns);
Checks that the node has a given name and a given namespace href.
Returns
 1 if the node matches or 0 otherwise.
 
 
xmlSecGetNextElementNode ()
xmlNodePtr
xmlSecGetNextElementNode (xmlNodePtr cur);
Seraches for the next element node.
Returns
 the pointer to next element node or NULL if it is not found.
 
 
xmlSecFindSibling ()
xmlNodePtr
xmlSecFindSibling (const xmlNodePtr cur,
                   const xmlChar *name,
                   const xmlChar *ns);
Searches cur
 and the next siblings of the cur
 node having given name and
namespace href.
Returns
 the pointer to the found node or NULL if an error occurs or
node is not found.
 
 
xmlSecFindChild ()
xmlNodePtr
xmlSecFindChild (const xmlNodePtr parent,
                 const xmlChar *name,
                 const xmlChar *ns);
Searches a direct child of the parent
 node having given name and
namespace href.
Returns
 the pointer to the found node or NULL if an error occurs or
node is not found.
 
 
xmlSecFindParent ()
xmlNodePtr
xmlSecFindParent (const xmlNodePtr cur,
                  const xmlChar *name,
                  const xmlChar *ns);
Searches the ancestors axis of the cur
 node for a node having given name
and namespace href.
Returns
 the pointer to the found node or NULL if an error occurs or
node is not found.
 
 
xmlSecFindNode ()
xmlNodePtr
xmlSecFindNode (const xmlNodePtr parent,
                const xmlChar *name,
                const xmlChar *ns);
Searches all children of the parent
 node having given name and
namespace href.
Returns
 the pointer to the found node or NULL if an error occurs or
node is not found.
 
 
xmlSecAddChild ()
xmlNodePtr
xmlSecAddChild (xmlNodePtr parent,
                const xmlChar *name,
                const xmlChar *ns);
Adds a child to the node parent
 with given name
 and namespace ns
.
Returns
 pointer to the new node or NULL if an error occurs.
 
 
xmlSecEnsureEmptyChild ()
xmlNodePtr
xmlSecEnsureEmptyChild (xmlNodePtr parent,
                        const xmlChar *name,
                        const xmlChar *ns);
Searches a direct child of the parent
 node having given name and
namespace href. If not found then element node with given name / namespace
is added.
Returns
 the pointer to the found or created node; or NULL if an error occurs.
 
 
xmlSecAddChildNode ()
xmlNodePtr
xmlSecAddChildNode (xmlNodePtr parent,
                    xmlNodePtr child);
Adds child
 node to the parent
 node.
Returns
 pointer to the new node or NULL if an error occurs.
 
 
xmlSecAddNextSibling ()
xmlNodePtr
xmlSecAddNextSibling (xmlNodePtr node,
                      const xmlChar *name,
                      const xmlChar *ns);
Adds next sibling to the node node
 with given name
 and namespace ns
.
Returns
 pointer to the new node or NULL if an error occurs.
 
 
xmlSecAddPrevSibling ()
xmlNodePtr
xmlSecAddPrevSibling (xmlNodePtr node,
                      const xmlChar *name,
                      const xmlChar *ns);
Adds prev sibling to the node node
 with given name
 and namespace ns
.
Returns
 pointer to the new node or NULL if an error occurs.
 
 
xmlSecReplaceNode ()
int
xmlSecReplaceNode (xmlNodePtr node,
                   xmlNodePtr newNode);
Swaps the node
 and newNode
 in the XML tree.
Returns
 0 on success or a negative value if an error occurs.
 
 
xmlSecReplaceNodeAndReturn ()
int
xmlSecReplaceNodeAndReturn (xmlNodePtr node,
                            xmlNodePtr newNode,
                            xmlNodePtr *replaced);
Swaps the node
 and newNode
 in the XML tree.
Returns
 0 on success or a negative value if an error occurs.
 
 
xmlSecReplaceContent ()
int
xmlSecReplaceContent (xmlNodePtr node,
                      xmlNodePtr newNode);
Swaps the content of node
 and newNode
.
Returns
 0 on success or a negative value if an error occurs.
 
 
xmlSecReplaceContentAndReturn ()
int
xmlSecReplaceContentAndReturn (xmlNodePtr node,
                               xmlNodePtr newNode,
                               xmlNodePtr *replaced);
Swaps the content of node
 and newNode
.
Returns
 0 on success or a negative value if an error occurs.
 
 
xmlSecReplaceNodeBuffer ()
int
xmlSecReplaceNodeBuffer (xmlNodePtr node,
                         const xmlSecByte *buffer,
                         xmlSecSize size);
Swaps the node
 and the parsed XML data from the buffer
 in the XML tree.
Returns
 0 on success or a negative value if an error occurs.
 
 
xmlSecReplaceNodeBufferAndReturn ()
int
xmlSecReplaceNodeBufferAndReturn (xmlNodePtr node,
                                  const xmlSecByte *buffer,
                                  xmlSecSize size,
                                  xmlNodePtr *replaced);
Swaps the node
 and the parsed XML data from the buffer
 in the XML tree.
Returns
 0 on success or a negative value if an error occurs.
 
 
xmlSecNodeEncodeAndSetContent ()
int
xmlSecNodeEncodeAndSetContent (xmlNodePtr node,
                               const xmlChar *buffer);
Encodes "special" characters in the buffer
 and sets the result
as the node content.
Returns
 0 on success or a negative value if an error occurs.
 
 
xmlSecAddIDs ()
void
xmlSecAddIDs (xmlDocPtr doc,
              xmlNodePtr cur,
              const xmlChar **ids);
Walks thru all children of the cur
 node and adds all attributes
from the ids
 list to the doc
 document IDs attributes hash.
 
xmlSecCreateTree ()
xmlDocPtr
xmlSecCreateTree (const xmlChar *rootNodeName,
                  const xmlChar *rootNodeNs);
xmlSecCreateTree is deprecated and should not be used in newly-written code.
Creates a new XML tree with one root node rootNodeName
.
Returns
 pointer to the newly created tree or NULL if an error occurs.
 
 
xmlSecIsEmptyNode ()
int
xmlSecIsEmptyNode (xmlNodePtr node);
Checks whethere the node
 is empty (i.e. has only whitespaces children).
Returns
 1 if node
is empty, 0 otherwise or a negative value if an error occurs.
 
 
xmlSecIsEmptyString ()
int
xmlSecIsEmptyString (const xmlChar *str);
Checks whethere the str
 is empty (i.e. has only whitespaces children).
Returns
 1 if str
is empty, 0 otherwise or a negative value if an error occurs.
 
 
xmlSecGetQName ()
xmlChar *
xmlSecGetQName (xmlNodePtr node,
                const xmlChar *href,
                const xmlChar *local);
Creates QName (prefix:local) from href
 and local
 in the context of the node
.
Caller is responsible for freeing returned string with xmlFree.
Returns
 qname or NULL if an error occurs.
 
 
xmlSecPrintXmlString ()
int
xmlSecPrintXmlString (FILE *fd,
                      const xmlChar *str);
Encodes the str
 (e.g. replaces '&' with '&') and writes it to fd
.
Returns
 he number of bytes transmitted or a negative value if an error occurs.
 
 
xmlSecIsHex()
#define             xmlSecIsHex(c)
Macro. Returns 1 if c
 is a hex digit or 0 other wise.
 
xmlSecGetHex()
#define             xmlSecGetHex(c)
Macro. Returns the hex value of the c
.
 
xmlSecQName2IntegerGetInteger ()
int
xmlSecQName2IntegerGetInteger (xmlSecQName2IntegerInfoConstPtr info,
                               const xmlChar *qnameHref,
                               const xmlChar *qnameLocalPart,
                               int *intValue);
Maps qname qname to an integer and returns it in intValue
.
Returns
 0 on success or a negative value if an error occurs,
 
 
xmlSecQName2IntegerGetIntegerFromString ()
int
xmlSecQName2IntegerGetIntegerFromString
                               (xmlSecQName2IntegerInfoConstPtr info,
                                xmlNodePtr node,
                                const xmlChar *qname,
                                int *intValue);
Converts qname
 into integer in context of node
.
Returns
 0 on success or a negative value if an error occurs,
 
 
xmlSecQName2IntegerGetStringFromInteger ()
xmlChar *
xmlSecQName2IntegerGetStringFromInteger
                               (xmlSecQName2IntegerInfoConstPtr info,
                                xmlNodePtr node,
                                int intValue);
Creates qname string for intValue
 in context of given node
. Caller
is responsible for freeing returned string with xmlFree
.
Returns
 pointer to newly allocated string on success or NULL if an error occurs,
 
 
xmlSecQName2IntegerNodeRead ()
int
xmlSecQName2IntegerNodeRead (xmlSecQName2IntegerInfoConstPtr info,
                             xmlNodePtr node,
                             int *intValue);
Reads the content of node
 and converts it to an integer using mapping
from info
.
Returns
 0 on success or a negative value if an error occurs,
 
 
xmlSecQName2IntegerNodeWrite ()
int
xmlSecQName2IntegerNodeWrite (xmlSecQName2IntegerInfoConstPtr info,
                              xmlNodePtr node,
                              const xmlChar *nodeName,
                              const xmlChar *nodeNs,
                              int intValue);
Creates new child node in node
 and sets its value to intValue
.
Returns
 0 on success or a negative value if an error occurs,
 
 
xmlSecQName2IntegerAttributeRead ()
int
xmlSecQName2IntegerAttributeRead (xmlSecQName2IntegerInfoConstPtr info,
                                  xmlNodePtr node,
                                  const xmlChar *attrName,
                                  int *intValue);
Gets the value of attrName
 atrtibute from node
 and converts it to integer
according to info
.
Returns
 0 on success or a negative value if an error occurs,
 
 
xmlSecQName2IntegerAttributeWrite ()
int
xmlSecQName2IntegerAttributeWrite (xmlSecQName2IntegerInfoConstPtr info,
                                   xmlNodePtr node,
                                   const xmlChar *attrName,
                                   int intValue);
Converts intValue
 to a qname and sets it to the value of
attribute attrName
 in node
.
Returns
 0 on success or a negative value if an error occurs,
 
 
xmlSecQName2IntegerDebugDump ()
void
xmlSecQName2IntegerDebugDump (xmlSecQName2IntegerInfoConstPtr info,
                              int intValue,
                              const xmlChar *name,
                              FILE *output);
Prints intValue
 into output
.
 
xmlSecQName2IntegerDebugXmlDump ()
void
xmlSecQName2IntegerDebugXmlDump (xmlSecQName2IntegerInfoConstPtr info,
                                 int intValue,
                                 const xmlChar *name,
                                 FILE *output);
Prints intValue
 into output
 in XML format.
 
xmlSecQName2BitMaskGetBitMask ()
int
xmlSecQName2BitMaskGetBitMask (xmlSecQName2BitMaskInfoConstPtr info,
                               const xmlChar *qnameLocalPart,
                               const xmlChar *qnameHref,
                               xmlSecBitMask *mask);
Converts qnameLocalPart
 to mask
.
Returns
 0 on success or a negative value if an error occurs,
 
 
xmlSecQName2BitMaskNodesRead ()
int
xmlSecQName2BitMaskNodesRead (xmlSecQName2BitMaskInfoConstPtr info,
                              xmlNodePtr *node,
                              const xmlChar *nodeName,
                              const xmlChar *nodeNs,
                              int stopOnUnknown,
                              xmlSecBitMask *mask);
Reads <nodeNs
:nodeName
> elements and puts the result bit mask
into mask
. When function exits, node
 points to the first element node
after all the <nodeNs
:nodeName
> elements.
Returns
 0 on success or a negative value if an error occurs,
 
 
xmlSecQName2BitMaskGetBitMaskFromString ()
int
xmlSecQName2BitMaskGetBitMaskFromString
                               (xmlSecQName2BitMaskInfoConstPtr info,
                                xmlNodePtr node,
                                const xmlChar *qname,
                                xmlSecBitMask *mask);
Converts qname
 into integer in context of node
.
Returns
 0 on success or a negative value if an error occurs,
 
 
xmlSecQName2BitMaskGetStringFromBitMask ()
xmlChar *
xmlSecQName2BitMaskGetStringFromBitMask
                               (xmlSecQName2BitMaskInfoConstPtr info,
                                xmlNodePtr node,
                                xmlSecBitMask mask);
Creates qname string for mask
 in context of given node
. Caller
is responsible for freeing returned string with xmlFree
.
Returns
 pointer to newly allocated string on success or NULL if an error occurs,
 
 
xmlSecQName2BitMaskNodesWrite ()
int
xmlSecQName2BitMaskNodesWrite (xmlSecQName2BitMaskInfoConstPtr info,
                               xmlNodePtr node,
                               const xmlChar *nodeName,
                               const xmlChar *nodeNs,
                               xmlSecBitMask mask);
Writes <nodeNs
:nodeName
> elemnts with values from mask
 to node
.
Returns
 0 on success or a negative value if an error occurs,
 
 
xmlSecQName2BitMaskDebugXmlDump ()
void
xmlSecQName2BitMaskDebugXmlDump (xmlSecQName2BitMaskInfoConstPtr info,
                                 xmlSecBitMask mask,
                                 const xmlChar *name,
                                 FILE *output);
Prints debug information about mask
 to output
 in XML format.