[XML-SIG] turning of dtd checker

Martin v. Löwis martin at v.loewis.de
Sun Oct 26 05:21:18 EST 2003


Paul Tremblay <phthenry at earthlink.net> writes:

> Is there a way to run SAX if the dtd in the document points to a url,
> and the url cannot be retrieved? 

You need to turn off processing of external general entities:

p.setFeature("http://xml.org/sax/features/external-general-entities",False)

In that case, the parser won't attempt to resolve the external DTD
subset, or references to external entities defined in the internal DTD
subset.

Regards,
Martin



More information about the XML-SIG mailing list