[Tutor] Re: [XML-SIG] XML Parser
Wed, 8 Aug 2001 14:09:31 +0530
When I try that, I get an exception. So I guess that it is because pyexpat
is not installed ...
>>> from xml.sax import make_parser
>>> parser = make_parser()
Traceback (most recent call last):
File "<stdin>", line 1, in ?
.5.1/lib/python2.1/xml/sax/__init__.py", line 88, in make_parser
xml.sax._exceptions.SAXReaderNotAvailable: No parsers found
----- Original Message -----
From: "Lars Marius Garshol" <firstname.lastname@example.org>
To: "Praveen Pathiyil" <email@example.com>
Cc: <firstname.lastname@example.org>; <email@example.com>
Sent: Wednesday, August 08, 2001 12:49 PM
Subject: [Tutor] Re: [XML-SIG] XML Parser
> Hi Praveen,
> * Praveen Pathiyil
> | I am trying out some basic stuff on XML with Python. But I am unable
> | to get a parser instance on my system ( I have cut and pasted some
> | code which i tried out for this.). Also the "drivers" modules under
> | xml.sax and "pyexpat" is not installed.
> If you have installed only Python itself, and not the PyXML package
> that may not be a problem.
> | How do I proceed to get a parser instance ?
> from xml.sax import make_parser
> parser = make_parser()
> This should do the trick. If pyexpat really isn't installed you'll get
> an exception.
> --Lars M.
> Tutor maillist - Tutor@python.org