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

Martin v. Löwis report at bugs.python.org
Tue Feb 3 20:23:45 CET 2009


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

> The EntityResolver's resolveEntity() method is not, however, passed the
> base path to resolve the relative systemId from.
> 
> This makes it impossible to properly implement a parser which caches
> fetched DTDs.

I don't think this is actually the case. Did you try calling getSystemId
on the locator?

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


More information about the Python-bugs-list mailing list