1 from xmlparser cimport xmlSAXHandler
2 from tree cimport xmlDoc
4 cdef extern from "libxml/xmlschemas.h":
5 ctypedef struct xmlSchema
6 ctypedef struct xmlSchemaParserCtxt
8 ctypedef struct xmlSchemaSAXPlugStruct
9 ctypedef struct xmlSchemaValidCtxt
11 ctypedef enum xmlSchemaValidOption:
12 XML_SCHEMA_VAL_VC_I_CREATE = 1
14 cdef xmlSchemaValidCtxt* xmlSchemaNewValidCtxt(xmlSchema* schema) nogil
15 cdef int xmlSchemaValidateDoc(xmlSchemaValidCtxt* ctxt, xmlDoc* doc) nogil
16 cdef xmlSchema* xmlSchemaParse(xmlSchemaParserCtxt* ctxt) nogil
17 cdef xmlSchemaParserCtxt* xmlSchemaNewParserCtxt(char* URL) nogil
18 cdef xmlSchemaParserCtxt* xmlSchemaNewDocParserCtxt(xmlDoc* doc) nogil
19 cdef void xmlSchemaFree(xmlSchema* schema) nogil
20 cdef void xmlSchemaFreeParserCtxt(xmlSchemaParserCtxt* ctxt) nogil
21 cdef void xmlSchemaFreeValidCtxt(xmlSchemaValidCtxt* ctxt) nogil
22 cdef int xmlSchemaSetValidOptions(xmlSchemaValidCtxt* ctxt,
25 cdef xmlSchemaSAXPlugStruct* xmlSchemaSAXPlug(xmlSchemaValidCtxt* ctxt,
28 cdef int xmlSchemaSAXUnplug(xmlSchemaSAXPlugStruct* sax_plug)
29 cdef int xmlSchemaIsValid(xmlSchemaValidCtxt* ctxt)