Handling errors in PyXML/SAX

Martin von Loewis loewis at informatik.hu-berlin.de
Sat Jul 21 21:30:19 CEST 2001


Tom Bridgman <bridgman at wyeth.gsfc.nasa.gov> writes:

> parser.parse(inputfilename) does work.  It's not clear from the
> documentation at http://py-howto.sourceforge.net/xml-ref/node20.html
> that systemID is a file name, even though I was guessing this at a
> couple of spots.

In fact, in XML, system IDs are URLs; see the XML recommendation for
details. To allow file names is an extension, and there is often
heated debate as to whether this is desirable, since you cannot tell a
file name from an URL (in particular if the file name is C:/foo/bar.xml).

Regards,
Martin




More information about the Python-list mailing list