10#ifndef __XML_RELAX_NG__
11#define __XML_RELAX_NG__
17#ifdef LIBXML_SCHEMAS_ENABLED
23typedef struct _xmlRelaxNG xmlRelaxNG;
24typedef xmlRelaxNG *xmlRelaxNGPtr;
54typedef struct _xmlRelaxNGParserCtxt xmlRelaxNGParserCtxt;
55typedef xmlRelaxNGParserCtxt *xmlRelaxNGParserCtxtPtr;
57typedef struct _xmlRelaxNGValidCtxt xmlRelaxNGValidCtxt;
58typedef xmlRelaxNGValidCtxt *xmlRelaxNGValidCtxtPtr;
67 XML_RELAXNG_ERR_MEMORY,
69 XML_RELAXNG_ERR_TYPEVAL,
70 XML_RELAXNG_ERR_DUPID,
71 XML_RELAXNG_ERR_TYPECMP,
72 XML_RELAXNG_ERR_NOSTATE,
73 XML_RELAXNG_ERR_NODEFINE,
74 XML_RELAXNG_ERR_LISTEXTRA,
75 XML_RELAXNG_ERR_LISTEMPTY,
76 XML_RELAXNG_ERR_INTERNODATA,
77 XML_RELAXNG_ERR_INTERSEQ,
78 XML_RELAXNG_ERR_INTEREXTRA,
79 XML_RELAXNG_ERR_ELEMNAME,
80 XML_RELAXNG_ERR_ATTRNAME,
81 XML_RELAXNG_ERR_ELEMNONS,
82 XML_RELAXNG_ERR_ATTRNONS,
83 XML_RELAXNG_ERR_ELEMWRONGNS,
84 XML_RELAXNG_ERR_ATTRWRONGNS,
85 XML_RELAXNG_ERR_ELEMEXTRANS,
86 XML_RELAXNG_ERR_ATTREXTRANS,
87 XML_RELAXNG_ERR_ELEMNOTEMPTY,
88 XML_RELAXNG_ERR_NOELEM,
89 XML_RELAXNG_ERR_NOTELEM,
90 XML_RELAXNG_ERR_ATTRVALID,
91 XML_RELAXNG_ERR_CONTENTVALID,
92 XML_RELAXNG_ERR_EXTRACONTENT,
93 XML_RELAXNG_ERR_INVALIDATTR,
94 XML_RELAXNG_ERR_DATAELEM,
95 XML_RELAXNG_ERR_VALELEM,
96 XML_RELAXNG_ERR_LISTELEM,
97 XML_RELAXNG_ERR_DATATYPE,
98 XML_RELAXNG_ERR_VALUE,
100 XML_RELAXNG_ERR_NOGRAMMAR,
101 XML_RELAXNG_ERR_EXTRADATA,
102 XML_RELAXNG_ERR_LACKDATA,
103 XML_RELAXNG_ERR_INTERNAL,
104 XML_RELAXNG_ERR_ELEMWRONG,
105 XML_RELAXNG_ERR_TEXTWRONG
114 XML_RELAXNGP_NONE = 0,
115 XML_RELAXNGP_FREE_DOC = 1,
116 XML_RELAXNGP_CRNG = 2
117} xmlRelaxNGParserFlag;
120 xmlRelaxNGInitTypes (
void);
123 xmlRelaxNGCleanupTypes (
void);
129 xmlRelaxNGNewParserCtxt (
const char *URL);
131 xmlRelaxNGNewMemParserCtxt (
const char *
buffer,
134 xmlRelaxNGNewDocParserCtxt (
xmlDocPtr doc);
137 xmlRelaxParserSetFlag (xmlRelaxNGParserCtxtPtr ctxt,
141 xmlRelaxNGFreeParserCtxt (xmlRelaxNGParserCtxtPtr ctxt);
143 xmlRelaxNGSetParserErrors(xmlRelaxNGParserCtxtPtr ctxt,
144 xmlRelaxNGValidityErrorFunc
err,
145 xmlRelaxNGValidityWarningFunc
warn,
148 xmlRelaxNGGetParserErrors(xmlRelaxNGParserCtxtPtr ctxt,
149 xmlRelaxNGValidityErrorFunc *
err,
150 xmlRelaxNGValidityWarningFunc *
warn,
153 xmlRelaxNGSetParserStructuredErrors(
154 xmlRelaxNGParserCtxtPtr ctxt,
158 xmlRelaxNGParse (xmlRelaxNGParserCtxtPtr ctxt);
160 xmlRelaxNGFree (xmlRelaxNGPtr
schema);
161#ifdef LIBXML_OUTPUT_ENABLED
163 xmlRelaxNGDump (
FILE *output,
166 xmlRelaxNGDumpTree (
FILE * output,
173 xmlRelaxNGSetValidErrors(xmlRelaxNGValidCtxtPtr ctxt,
174 xmlRelaxNGValidityErrorFunc
err,
175 xmlRelaxNGValidityWarningFunc
warn,
178 xmlRelaxNGGetValidErrors(xmlRelaxNGValidCtxtPtr ctxt,
179 xmlRelaxNGValidityErrorFunc *
err,
180 xmlRelaxNGValidityWarningFunc *
warn,
183 xmlRelaxNGSetValidStructuredErrors(xmlRelaxNGValidCtxtPtr ctxt,
186 xmlRelaxNGNewValidCtxt (xmlRelaxNGPtr
schema);
188 xmlRelaxNGFreeValidCtxt (xmlRelaxNGValidCtxtPtr ctxt);
190 xmlRelaxNGValidateDoc (xmlRelaxNGValidCtxtPtr ctxt,
196 xmlRelaxNGValidatePushElement (xmlRelaxNGValidCtxtPtr ctxt,
200 xmlRelaxNGValidatePushCData (xmlRelaxNGValidCtxtPtr ctxt,
204 xmlRelaxNGValidatePopElement (xmlRelaxNGValidCtxtPtr ctxt,
208 xmlRelaxNGValidateFullElement (xmlRelaxNGValidCtxtPtr ctxt,
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean flag
void(XMLCDECL *) typedef void(XMLCALL * xmlStructuredErrorFunc)(void *userData, xmlErrorPtr error)
#define LIBXML_ATTR_FORMAT(fmt, args)