diff options
| author | Stefan Behnel <stefan_ml@behnel.de> | 2014-02-21 21:17:58 +0100 |
|---|---|---|
| committer | Stefan Behnel <stefan_ml@behnel.de> | 2014-02-21 21:17:58 +0100 |
| commit | bcd02706b18c20f90ed23fce10089c3b3f7b0b83 (patch) | |
| tree | ec62dbd298aca312f3b4671cbddef1a6b9afebb5 /src/lxml/includes | |
| parent | a326a86688b1bc23bb2e0c13043cc963b367f273 (diff) | |
| download | python-lxml-bcd02706b18c20f90ed23fce10089c3b3f7b0b83.tar.gz | |
fix LP#910014: work around libxml2 bug #724903 that swallows a DTD validation error
Diffstat (limited to 'src/lxml/includes')
| -rw-r--r-- | src/lxml/includes/dtdvalid.pxd | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lxml/includes/dtdvalid.pxd b/src/lxml/includes/dtdvalid.pxd index 908008b3..ae94dc63 100644 --- a/src/lxml/includes/dtdvalid.pxd +++ b/src/lxml/includes/dtdvalid.pxd @@ -2,7 +2,13 @@ from lxml.includes cimport tree from lxml.includes.tree cimport xmlDoc, xmlDtd cdef extern from "libxml/valid.h" nogil: - ctypedef struct xmlValidCtxt + ctypedef void (*xmlValidityErrorFunc)(void * ctx, const char * msg, ...) + ctypedef void (*xmlValidityWarningFunc)(void * ctx, const char * msg, ...) + + ctypedef struct xmlValidCtxt: + void *userData + xmlValidityErrorFunc error + xmlValidityWarningFunc warning cdef xmlValidCtxt* xmlNewValidCtxt() cdef void xmlFreeValidCtxt(xmlValidCtxt* cur) |
