[issue2124] xml.sax and xml.dom fetch DTDs by default

Martin v. Löwis report at bugs.python.org
Tue Feb 3 22:42:59 CET 2009


Martin v. Löwis <martin at v.loewis.de> added the comment:

> EntityResolver.resolveEntity() is called with the publicId and systemId as 
> arguments. It does not receive a locator.

Sure. But ContentHandler.setDocumentLocator receives it, and you are
supposed to store it for the entire parse, to always know what entity
is being processed if you want to.

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2124>
_______________________________________


More information about the Python-bugs-list mailing list