Details
enum xmlElementType
typedef enum {
XML_ELEMENT_NODE= 1,
XML_ATTRIBUTE_NODE= 2,
XML_TEXT_NODE= 3,
XML_CDATA_SECTION_NODE= 4,
XML_ENTITY_REF_NODE= 5,
XML_ENTITY_NODE= 6,
XML_PI_NODE= 7,
XML_COMMENT_NODE= 8,
XML_DOCUMENT_NODE= 9,
XML_DOCUMENT_TYPE_NODE= 10,
XML_DOCUMENT_FRAG_NODE= 11,
XML_NOTATION_NODE= 12
} xmlElementType; |
enum xmlAttributeType
typedef enum {
XML_ATTRIBUTE_CDATA = 1,
XML_ATTRIBUTE_ID,
XML_ATTRIBUTE_IDREF ,
XML_ATTRIBUTE_IDREFS,
XML_ATTRIBUTE_ENTITY,
XML_ATTRIBUTE_ENTITIES,
XML_ATTRIBUTE_NMTOKEN,
XML_ATTRIBUTE_NMTOKENS,
XML_ATTRIBUTE_ENUMERATION,
XML_ATTRIBUTE_NOTATION
} xmlAttributeType; |
enum xmlAttributeDefault
typedef enum {
XML_ATTRIBUTE_NONE = 1,
XML_ATTRIBUTE_REQUIRED,
XML_ATTRIBUTE_IMPLIED,
XML_ATTRIBUTE_FIXED
} xmlAttributeDefault; |
enum xmlElementContentType
typedef enum {
XML_ELEMENT_CONTENT_PCDATA = 1,
XML_ELEMENT_CONTENT_ELEMENT,
XML_ELEMENT_CONTENT_SEQ,
XML_ELEMENT_CONTENT_OR
} xmlElementContentType; |
enum xmlElementContentOccur
typedef enum {
XML_ELEMENT_CONTENT_ONCE = 1,
XML_ELEMENT_CONTENT_OPT,
XML_ELEMENT_CONTENT_MULT,
XML_ELEMENT_CONTENT_PLUS
} xmlElementContentOccur; |
enum xmlElementTypeVal
typedef enum {
XML_ELEMENT_TYPE_EMPTY = 1,
XML_ELEMENT_TYPE_ANY,
XML_ELEMENT_TYPE_MIXED,
XML_ELEMENT_TYPE_ELEMENT
} xmlElementTypeVal; |
enum xmlNsType
typedef enum {
XML_GLOBAL_NAMESPACE = 1, /* old style global namespace */
XML_LOCAL_NAMESPACE /* new style local scoping */
} xmlNsType; |
oldXMLWDcompatibility
extern int oldXMLWDcompatibility;/* maintain compatibility with old WD */ |
xmlIndentTreeOutput
extern int xmlIndentTreeOutput; /* try to indent the tree dumps */ |
xmlBufferCreate ()
routine to create an XML buffer.
xmlBufferFree ()
Frees an XML buffer.
xmlBufferDump ()
Dumps an XML buffer to a FILE *.
xmlBufferAdd ()
Add a string range to an XML buffer.
xmlBufferCat ()
Append a zero terminated string to an XML buffer.
xmlBufferCCat ()
Append a zero terminated C string to an XML buffer.
xmlBufferShrink ()
Remove the beginning of an XML buffer.
xmlBufferEmpty ()
empty a buffer.
xmlCreateIntSubset ()
Create the internal subset of a document
xmlNewDtd ()
Creation of a new DTD.
xmlFreeDtd ()
Free a DTD structure.
xmlNewGlobalNs ()
Creation of a Namespace, the old way using PI and without scoping, to AVOID.
xmlNewNs ()
Creation of a new Namespace.
xmlFreeNs ()
Free up the structures associated to a namespace
xmlFreeDoc ()
Free up all the structures used by a document, tree included.
xmlNewDocProp ()
Create a new property carried by a document.
xmlNewProp ()
Create a new property carried by a node.
xmlFreePropList ()
Free a property and all its siblings, all the childs are freed too.
xmlFreeProp ()
Free one property, all the childs are freed too.
xmlCopyProp ()
Do a copy of the attribute.
xmlCopyPropList ()
Do a copy of an attribute list.
xmlCopyDtd ()
Do a copy of the dtd.
xmlCopyDoc ()
Do a copy of the document info. If recursive, the content tree will
be copied too as well as Dtd, namespaces and entities.
xmlNewDocNode ()
Creation of a new node element within a document. ns and content
are optionnal (NULL).
xmlNewNode ()
Creation of a new node element. ns and content are optionnal (NULL).
If content is non NULL, a child list containing the TEXTs and
ENTITY_REFs node will be created.
xmlNewChild ()
Creation of a new child element, added at the end of parent childs list.
ns and content parameters are optionnal (NULL). If content is non NULL,
a child list containing the TEXTs and ENTITY_REFs node will be created.
xmlNewDocText ()
Creation of a new text node within a document.
xmlNewText ()
Creation of a new text node.
xmlNewDocTextLen ()
Creation of a new text node with an extra content lenght parameter. The
text node pertain to a given document.
xmlNewTextLen ()
Creation of a new text node with an extra parameter for the content's lenght
xmlNewDocComment ()
Creation of a new node containing a commentwithin a document.
xmlNewComment ()
Creation of a new node containing a comment.
xmlNewCDataBlock ()
Creation of a new node containing a CData block.
xmlNewReference ()
Creation of a new reference node.
xmlCopyNode ()
Do a copy of the node.
xmlCopyNodeList ()
Do a recursive copy of the node list.
xmlGetLastChild ()
Search the last child of a node.
xmlNodeIsText ()
Is this node a Text node ?
xmlAddChild ()
Add a new child element, to parent, at the end of the child list.
xmlUnlinkNode ()
Unlink a node from it's current context, the node is not freed
xmlTextMerge ()
Merge two text nodes into one
xmlTextConcat ()
Concat the given string at the end of the existing node content
xmlFreeNodeList ()
Free a node and all its siblings, this is a recursive behaviour, all
the childs are freed too.
xmlFreeNode ()
Free a node, this is a recursive behaviour, all the childs are freed too.
xmlSearchNs ()
Search a Ns registered under a given name space for a document.
recurse on the parents until it finds the defined namespace
or return NULL otherwise.
nameSpace can be NULL, this is a search for the default namespace.
xmlSearchNsByHref ()
Search a Ns aliasing a given URI. Recurse on the parents until it finds
the defined namespace or return NULL otherwise.
xmlSetNs ()
Associate a namespace to a node, a posteriori.
xmlCopyNamespace ()
Do a copy of the namespace.
xmlCopyNamespaceList ()
Do a copy of an namespace list.
xmlSetProp ()
Set (or reset) an attribute carried by a node.
xmlGetProp ()
Search and get the value of an attribute associated to a node
This does the entity substitution.
xmlStringGetNodeList ()
Parse the value string and build the node list associated. Should
produce a flat tree with only TEXTs and ENTITY_REFs.
xmlStringLenGetNodeList ()
Parse the value string and build the node list associated. Should
produce a flat tree with only TEXTs and ENTITY_REFs.
xmlNodeListGetString ()
Returns the string equivalent to the text contained in the Node list
made of TEXTs and ENTITY_REFs
xmlNodeSetContent ()
Replace the content of a node.
xmlNodeSetContentLen ()
void xmlNodeSetContentLen (xmlNodePtr cur,
const CHAR *content,
int len); |
Replace the content of a node.
xmlNodeAddContent ()
Append the extra substring to the node content.
xmlNodeAddContentLen ()
void xmlNodeAddContentLen (xmlNodePtr cur,
const CHAR *content,
int len); |
Append the extra substring to the node content.
xmlNodeGetContent ()
Read the value of a node, this can be either the text carried
directly by this node if it's a TEXT node or the aggregate string
of the values carried by this node child's (TEXT and ENTITY_REF).
Entity references are substitued.
xmlBufferWriteCHAR ()
routine which manage and grows an output buffer. This one add
CHARs at the end of the buffer.
xmlBufferWriteChar ()
void xmlBufferWriteChar (xmlBufferPtr buf,
const char *string); |
routine which manage and grows an output buffer. This one add
C chars at the end of the array.
xmlBufferWriteQuotedString ()
routine which manage and grows an output buffer. This one writes
a quoted or double quoted CHAR string, checking first if it holds
quote or double-quotes internally
xmlDocDumpMemory ()
Dump an XML document in memory and return the CHAR * and it's size.
It's up to the caller to free the memory.
xmlDocDump ()
Dump an XML document to an open FILE.
xmlSaveFile ()
int xmlSaveFile (const char *filename,
xmlDocPtr cur); |
Dump an XML document to a file. Will use compression if
compiled in and enabled.
xmlGetDocCompressMode ()
get the compression ratio for a document, ZLIB based
xmlSetDocCompressMode ()
void xmlSetDocCompressMode (xmlDocPtr doc,
int mode); |
set the compression ratio for a document, ZLIB based
Correct values: 0 (uncompressed) to 9 (max compression)
xmlGetCompressMode ()
int xmlGetCompressMode (void); |
get the default compression mode used, ZLIB based.
xmlSetCompressMode ()
void xmlSetCompressMode (int mode); |
set the default compression mode used, ZLIB based
Correct values: 0 (uncompressed) to 9 (max compression)