XML: Doctype http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd

Thomas Guettler guettli at thomas-guettler.de
Tue Jun 15 13:35:27 CEST 2004


Hi,

I want to parse XHTML.

The doctype is http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd.

When I try to parse it with SAX. The parser
tries to connect via httplib to www.w2.org.

I downloaded all necessary DTDs and changed the
link to "xhtml1-transitional.dtd", which is now read
from the local filesystem.

One thing I don't like: I need to change the xml file
by hand (remove http://www.w3c.org....). Is there
a way to tell the parser, that it should look into
the local filesystem before trying to download them?

Regards,
 Thomas



More information about the Python-list mailing list