From 030d4a8ae0f1863d73a0482ffc4cd1705a23330a Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Fri, 1 Jun 2012 11:32:34 +0300 Subject: Issue #14007: implement doctype() method calling in XMLParser of _elementtree. Includes exposing a doctype handler from expat through pyexpat. --- Include/pyexpat.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Include') diff --git a/Include/pyexpat.h b/Include/pyexpat.h index 5340ef5fa3..168b5b2ae1 100644 --- a/Include/pyexpat.h +++ b/Include/pyexpat.h @@ -43,6 +43,8 @@ struct PyExpat_CAPI XML_Parser parser, XML_UnknownEncodingHandler handler, void *encodingHandlerData); void (*SetUserData)(XML_Parser parser, void *userData); + void (*SetStartDoctypeDeclHandler)(XML_Parser parser, + XML_StartDoctypeDeclHandler start); /* always add new stuff to the end! */ }; -- cgit v1.2.1