[XML-SIG] Getting DOCTYPE information using SAX

Ben Wiegert bwiegert@learningbyte.com
Wed, 11 Oct 2000 13:55:15 -0500


I am a Python newbie.  I have gotten my code to read in and parse XML using
SAXLIB from PyXML.  I can also manipulate what I read in and output it to
XML.  The only thing that I can not seem to grab is the DOCTYPE line (or the
XML header Line, but I am mainly concerned with the DOCTYPE).  I need to
specify my DTD in the outbound XML file?  Is there an event in SAX that
allows me to get that info?  Any help appreciated

Ben