Gnome XML Library Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
void (*xmlValidityErrorFunc) (void *ctx, const char *msg, ...); |
Callback called when a validity error is found. This is a message oriented function similar to an *printf function.
void (*xmlValidityWarningFunc) (void *ctx, const char *msg, ...); |
Callback called when a validity warning is found. This is a message oriented function similar to an *printf function.
struct xmlValidCtxt { void *userData; /* user specific data block */ xmlValidityErrorFunc error; /* the callback in case of errors */ xmlValidityWarningFunc warning; /* the callback in case of warning */ /* Node analysis stack used when validating within entities */ xmlNodePtr node; /* Current parsed Node */ int nodeNr; /* Depth of the parsing stack */ int nodeMax; /* Max depth of the parsing stack */ xmlNodePtr *nodeTab; /* array of nodes */ int finishDtd; /* finished validating the Dtd ? */ xmlDocPtr doc; /* the document */ int valid; /* temporary validity check result */ /* state state used for non-determinist content validation */ xmlValidState *vstate; /* current state */ int vstateNr; /* Depth of the validation stack */ int vstateMax; /* Max depth of the validation stack */ xmlValidState *vstateTab; /* array of validation states */ #ifdef LIBXML_REGEXP_ENABLED xmlAutomataPtr am; /* the automata */ xmlAutomataStatePtr state; /* used to build the automata */ #else void *am; void *state; #endif }; |
xmlChar* xmlSplitQName2 (const xmlChar *name, xmlChar **prefix); |
parse an XML qualified name string
[NS 5] QName ::= (Prefix ':')? LocalPart
[NS 6] Prefix ::= NCName
[NS 7] LocalPart ::= NCName
xmlNotationPtr xmlAddNotationDecl (xmlValidCtxtPtr ctxt, xmlDtdPtr dtd, const xmlChar *name, const xmlChar *PublicID, const xmlChar *SystemID); |
Register a new notation declaration
xmlNotationTablePtr xmlCopyNotationTable (xmlNotationTablePtr table); |
Build a copy of a notation table.
void xmlFreeNotationTable (xmlNotationTablePtr table); |
Deallocate the memory used by an entities hash table.
void xmlDumpNotationDecl (xmlBufferPtr buf, xmlNotationPtr nota); |
This will dump the content the notation declaration as an XML DTD definition
void xmlDumpNotationTable (xmlBufferPtr buf, xmlNotationTablePtr table); |
This will dump the content of the notation table as an XML DTD definition
xmlElementContentPtr xmlNewElementContent (xmlChar *name, xmlElementContentType type); |
Allocate an element content structure.
xmlElementContentPtr xmlCopyElementContent (xmlElementContentPtr content); |
Build a copy of an element content description.
void xmlFreeElementContent (xmlElementContentPtr cur); |
Free an element content structure. This is a recursive call !
void xmlSnprintfElementContent (char *buf, int size, xmlElementContentPtr content, int glob); |
This will dump the content of the element content definition Intended just for the debug routine
void xmlSprintfElementContent (char *buf, xmlElementContentPtr content, int glob); |
Deprecated, unsafe, use xmlSnprintfElementContent
xmlElementPtr xmlAddElementDecl (xmlValidCtxtPtr ctxt, xmlDtdPtr dtd, const xmlChar *name, xmlElementTypeVal type, xmlElementContentPtr content); |
Register a new element declaration
xmlElementTablePtr xmlCopyElementTable (xmlElementTablePtr table); |
Build a copy of an element table.
void xmlFreeElementTable (xmlElementTablePtr table); |
Deallocate the memory used by an element hash table.