

|
xmltree.h
Namexmltree.h -- The XML tree helper functions.
Synopsis
xmlDocPtr xmlSecParseFile (const char *filename);
xmlDocPtr xmlSecParseMemory (unsigned char *buffer,
size_t size,
int recovery);
xmlDocPtr xmlSecParseMemoryExt (unsigned char *prefix,
size_t prefixSize,
unsigned char *buffer,
size_t bufferSize,
unsigned char *postfix,
size_t postfixSize);
int xmlSecCheckNodeName (const xmlNodePtr cur,
const xmlChar *name,
const xmlChar *ns);
xmlNodePtr xmlSecGetNextElementNode (xmlNodePtr cur);
xmlNodePtr xmlSecFindChild (const xmlNodePtr parent,
const xmlChar *name,
const xmlChar *ns);
xmlNodePtr xmlSecFindParent (const xmlNodePtr cur,
const xmlChar *name,
const xmlChar *ns);
xmlNodePtr xmlSecFindNode (const xmlNodePtr parent,
const xmlChar *name,
const xmlChar *ns);
xmlNodePtr xmlSecAddChild (xmlNodePtr parent,
const xmlChar *name,
const xmlChar *ns);
xmlNodePtr xmlSecAddNextSibling (xmlNodePtr node,
const xmlChar *name,
const xmlChar *ns);
xmlNodePtr xmlSecAddPrevSibling (xmlNodePtr node,
const xmlChar *name,
const xmlChar *ns);
int xmlSecReplaceNode (xmlNodePtr node,
xmlNodePtr newNode);
int xmlSecReplaceContent (xmlNodePtr node,
xmlNodePtr newNode);
int xmlSecReplaceNodeBuffer (xmlNodePtr node,
unsigned char *buffer,
size_t size);
void xmlSecAddIDs (xmlDocPtr doc,
xmlNodePtr cur,
const xmlChar **ids);
#define xmlSecGetHex (c)
#define xmlSecIsHex (c) |
Details
xmlSecParseFile ()
xmlDocPtr xmlSecParseFile (const char *filename); |
Loads XML Doc from file filename. We need a special version because of
c14n issue. The code is copied from xmlSAXParseFileWithData() function.
xmlSecParseMemory ()
xmlDocPtr xmlSecParseMemory (unsigned char *buffer,
size_t size,
int recovery); |
Loads XML Doc from memory. We need a special version because of
c14n issue. The code is copied from xmlSAXParseMemory() function.
xmlSecParseMemoryExt ()
xmlDocPtr xmlSecParseMemoryExt (unsigned char *prefix,
size_t prefixSize,
unsigned char *buffer,
size_t bufferSize,
unsigned char *postfix,
size_t postfixSize); |
Loads XML Doc from 3 chunks of memory: prefix, buffer and postfix. '
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.
xmlSecGetNextElementNode ()
xmlNodePtr xmlSecGetNextElementNode (xmlNodePtr cur); |
Seraches for the next element node.
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.
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.
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.
xmlSecAddChild ()
xmlNodePtr xmlSecAddChild (xmlNodePtr parent,
const xmlChar *name,
const xmlChar *ns); |
Adds a child to the node parent with given name and namespace ns.
xmlSecAddNextSibling ()
xmlNodePtr xmlSecAddNextSibling (xmlNodePtr node,
const xmlChar *name,
const xmlChar *ns); |
Adds next sibling to the node node with given name and namespace ns.
xmlSecAddPrevSibling ()
xmlNodePtr xmlSecAddPrevSibling (xmlNodePtr node,
const xmlChar *name,
const xmlChar *ns); |
Adds prev sibling to the node node with given name and namespace ns.
xmlSecReplaceNode ()
int xmlSecReplaceNode (xmlNodePtr node,
xmlNodePtr newNode); |
Swaps the node and newNode in the XML tree.
xmlSecReplaceContent ()
int xmlSecReplaceContent (xmlNodePtr node,
xmlNodePtr newNode); |
Swaps the content of node and newNode.
xmlSecReplaceNodeBuffer ()
int xmlSecReplaceNodeBuffer (xmlNodePtr node,
unsigned char *buffer,
size_t size); |
Swaps the node and the parsed XML data from the buffer in the XML tree.
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.
xmlSecGetHex()
Macro. Returns the hex value of the c.
xmlSecIsHex()
Macro. Returns 1 if c is a hex digit or 0 other wise.
|
Aleksey Sanin
|
|