comparison env/lib/python3.7/site-packages/lxml/includes/dtdvalid.pxd @ 0:26e78fe6e8c4 draft

"planemo upload commit c699937486c35866861690329de38ec1a5d9f783"
author shellac
date Sat, 02 May 2020 07:14:21 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:26e78fe6e8c4
1 from lxml.includes cimport tree
2 from lxml.includes.tree cimport xmlDoc, xmlDtd
3
4 cdef extern from "libxml/valid.h" nogil:
5 ctypedef void (*xmlValidityErrorFunc)(void * ctx, const char * msg, ...)
6 ctypedef void (*xmlValidityWarningFunc)(void * ctx, const char * msg, ...)
7
8 ctypedef struct xmlValidCtxt:
9 void *userData
10 xmlValidityErrorFunc error
11 xmlValidityWarningFunc warning
12
13 cdef xmlValidCtxt* xmlNewValidCtxt()
14 cdef void xmlFreeValidCtxt(xmlValidCtxt* cur)
15
16 cdef int xmlValidateDtd(xmlValidCtxt* ctxt, xmlDoc* doc, xmlDtd* dtd)
17 cdef tree.xmlElement* xmlGetDtdElementDesc(
18 xmlDtd* dtd, tree.const_xmlChar* name)