00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00027 #ifndef _ERREG_XSD__H__
00028 #define _ERREG_XSD__H__
00029
00030 #include <glib.h>
00031
00032 #include <libxml/xmlversion.h>
00033 #include <libxml/xmlmemory.h>
00034 #include <libxml/tree.h>
00035 #include <libxml/parser.h>
00036 #include <libxml/xmlschemas.h>
00037 #include <libxml/schemasInternals.h>
00038
00039 typedef struct
00040 {
00041 xmlDocPtr pDoc;
00042 xmlSchemaParserCtxtPtr pParser;
00043 xmlSchemaPtr pCxt;
00044 xmlSchemaValidCtxtPtr pValid;
00045 char *szFileName;
00046 } regSchema_t;
00047
00048 #ifdef __cplusplus
00049 extern "C"
00050 {
00051 #endif
00052
00053 gboolean xsdLoad(regSchema_t * pXsdCxt, const char *szFileName);
00054 void xsdUnload(regSchema_t * pXsdCxt);
00055
00056 gboolean xsdValidateXmlDoc(regSchema_t * pXsdCxt, xmlDocPtr pDoc);
00057
00058 #ifdef __cplusplus
00059 }
00060 #endif
00061
00062 #endif //_ERREG_XSD__H__