12#ifndef __XML_SCHEMA_H__
13#define __XML_SCHEMA_H__
17#ifdef LIBXML_SCHEMAS_ENABLED
32 XML_SCHEMAS_ERR_OK = 0,
33 XML_SCHEMAS_ERR_NOROOT = 1,
34 XML_SCHEMAS_ERR_UNDECLAREDELEM,
35 XML_SCHEMAS_ERR_NOTTOPLEVEL,
36 XML_SCHEMAS_ERR_MISSING,
37 XML_SCHEMAS_ERR_WRONGELEM,
38 XML_SCHEMAS_ERR_NOTYPE,
39 XML_SCHEMAS_ERR_NOROLLBACK,
40 XML_SCHEMAS_ERR_ISABSTRACT,
41 XML_SCHEMAS_ERR_NOTEMPTY,
42 XML_SCHEMAS_ERR_ELEMCONT,
43 XML_SCHEMAS_ERR_HAVEDEFAULT,
44 XML_SCHEMAS_ERR_NOTNILLABLE,
45 XML_SCHEMAS_ERR_EXTRACONTENT,
46 XML_SCHEMAS_ERR_INVALIDATTR,
47 XML_SCHEMAS_ERR_INVALIDELEM,
48 XML_SCHEMAS_ERR_NOTDETERMINIST,
49 XML_SCHEMAS_ERR_CONSTRUCT,
50 XML_SCHEMAS_ERR_INTERNAL,
51 XML_SCHEMAS_ERR_NOTSIMPLE,
52 XML_SCHEMAS_ERR_ATTRUNKNOWN,
53 XML_SCHEMAS_ERR_ATTRINVALID,
54 XML_SCHEMAS_ERR_VALUE,
55 XML_SCHEMAS_ERR_FACET,
71 XML_SCHEMA_VAL_VC_I_CREATE = 1<<0
75} xmlSchemaValidOption;
87typedef struct _xmlSchema xmlSchema;
88typedef xmlSchema *xmlSchemaPtr;
98typedef void (*xmlSchemaValidityErrorFunc)
109typedef void (*xmlSchemaValidityWarningFunc)
115typedef struct _xmlSchemaParserCtxt xmlSchemaParserCtxt;
116typedef xmlSchemaParserCtxt *xmlSchemaParserCtxtPtr;
118typedef struct _xmlSchemaValidCtxt xmlSchemaValidCtxt;
119typedef xmlSchemaValidCtxt *xmlSchemaValidCtxtPtr;
134typedef int (*xmlSchemaValidityLocatorFunc) (
void *
ctx,
135 const char **
file,
unsigned long *
line);
141 xmlSchemaNewParserCtxt (
const char *URL);
143 xmlSchemaNewMemParserCtxt (
const char *
buffer,
146 xmlSchemaNewDocParserCtxt (xmlDocPtr doc);
148 xmlSchemaFreeParserCtxt (xmlSchemaParserCtxtPtr ctxt);
150 xmlSchemaSetParserErrors (xmlSchemaParserCtxtPtr ctxt,
151 xmlSchemaValidityErrorFunc
err,
152 xmlSchemaValidityWarningFunc
warn,
155 xmlSchemaSetParserStructuredErrors(xmlSchemaParserCtxtPtr ctxt,
159 xmlSchemaGetParserErrors(xmlSchemaParserCtxtPtr ctxt,
160 xmlSchemaValidityErrorFunc *
err,
161 xmlSchemaValidityWarningFunc *
warn,
164 xmlSchemaIsValid (xmlSchemaValidCtxtPtr ctxt);
167 xmlSchemaParse (xmlSchemaParserCtxtPtr ctxt);
169 xmlSchemaFree (xmlSchemaPtr
schema);
170#ifdef LIBXML_OUTPUT_ENABLED
172 xmlSchemaDump (
FILE *output,
179 xmlSchemaSetValidErrors (xmlSchemaValidCtxtPtr ctxt,
180 xmlSchemaValidityErrorFunc
err,
181 xmlSchemaValidityWarningFunc
warn,
184 xmlSchemaSetValidStructuredErrors(xmlSchemaValidCtxtPtr ctxt,
188 xmlSchemaGetValidErrors (xmlSchemaValidCtxtPtr ctxt,
189 xmlSchemaValidityErrorFunc *
err,
190 xmlSchemaValidityWarningFunc *
warn,
193 xmlSchemaSetValidOptions (xmlSchemaValidCtxtPtr ctxt,
196 xmlSchemaValidateSetFilename(xmlSchemaValidCtxtPtr vctxt,
199 xmlSchemaValidCtxtGetOptions(xmlSchemaValidCtxtPtr ctxt);
202 xmlSchemaNewValidCtxt (xmlSchemaPtr
schema);
204 xmlSchemaFreeValidCtxt (xmlSchemaValidCtxtPtr ctxt);
206 xmlSchemaValidateDoc (xmlSchemaValidCtxtPtr ctxt,
209 xmlSchemaValidateOneElement (xmlSchemaValidCtxtPtr ctxt,
212 xmlSchemaValidateStream (xmlSchemaValidCtxtPtr ctxt,
213 xmlParserInputBufferPtr
input,
215 xmlSAXHandlerPtr sax,
218 xmlSchemaValidateFile (xmlSchemaValidCtxtPtr ctxt,
223 xmlSchemaValidCtxtGetParserCtxt(xmlSchemaValidCtxtPtr ctxt);
228typedef struct _xmlSchemaSAXPlug xmlSchemaSAXPlugStruct;
229typedef xmlSchemaSAXPlugStruct *xmlSchemaSAXPlugPtr;
232 xmlSchemaSAXPlug (xmlSchemaValidCtxtPtr ctxt,
233 xmlSAXHandlerPtr *sax,
236 xmlSchemaSAXUnplug (xmlSchemaSAXPlugPtr plug);
240 xmlSchemaValidateSetLocator (xmlSchemaValidCtxtPtr vctxt,
241 xmlSchemaValidityLocatorFunc
f,
static HINSTANCE instance
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
GLenum GLenum GLenum input
void(*) typedef void(* xmlStructuredErrorFunc)(void *userData, const xmlError *error)
#define LIBXML_ATTR_FORMAT(fmt, args)