[XML-SIG] not following DTDs

Dieter Maurer dieter at handshake.de
Tue Jun 14 19:14:39 CEST 2005

Alex Gittens wrote at 2005-6-13 08:36 -0700:
>I'm using SAX to load XBEL files, and I noticed that when my computer
>is not connected to the Internet, the script fails with an error about
>not being able to find the DTD that is referenced in the file. Is
>there some way to turn off searching for the DTD?

from xml.sax.handler import feature_external_ges
from xml.sax import make_parser

parser= make_parser(); parser.setDTDHandler(None)


More information about the XML-SIG mailing list