| Gnome XML Library Reference Manual |
|---|
valid —
struct xmlValidState; typedef xmlValidStatePtr; void (*xmlValidityErrorFunc) (void *ctx, const char *msg, ...); void (*xmlValidityWarningFunc) (void *ctx, const char *msg, ...); struct xmlValidCtxt; typedef xmlValidCtxtPtr; typedef xmlNotationTablePtr; typedef xmlElementTablePtr; typedef xmlAttributeTablePtr; typedef xmlIDTablePtr; typedef xmlRefTablePtr;
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.
| ctx: | an xmlValidCtxtPtr validity error context |
| msg: | the string to format *printf like vararg |
| ...: | remaining arguments to the format |
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.
| ctx: | an xmlValidCtxtPtr validity error context |
| msg: | the string to format *printf like vararg |
| ...: | remaining arguments to the format |
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
};
| << HTMLparser | catalog >> |