[issue2124] xml.sax and xml.dom fetch DTDs by default
report at bugs.python.org
Wed Feb 4 02:06:13 CET 2009
Damien Neil <neild at misago.org> added the comment:
On Feb 3, 2009, at 3:12 PM, Martin v. Löwis wrote:
> This is DOM parsing, not SAX parsing.
1) The title of this ticket begins with "xml.sax and xml.dom...".
2) I am creating a SAX parser and passing it to xml.dom, which uses it.
> So break layers of abstraction, then. Or else, use dom.expatbuilder,
> and ignore SAX/pulldom for DOM parsing.
Is that really the answer?
Read the source code to xml.dom.*, and write hacks based on what I find
there? Note also that xml.dom.expatbuilder does not appear to be an
external API--there is no mention of it in the documentation for
> This tracker is really not the place to ask questions; use python-list
> for that.
That was a rhetorical question.
The answer is, as best I can tell, "You can't do that."
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list