[Tutor] Re: [XML-SIG] XML Parser
Praveen Pathiyil
ppathiyi@cisco.com
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 ...
Thanks,
Praveen.
>>>
>>> from xml.sax import make_parser
>>>
>>> parser = make_parser()
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File
"/netapp/toolmaster/sw.sparc-sunos5/packages/python/2.1.1/sparc-sun-solaris2
.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" <larsga@garshol.priv.no>
To: "Praveen Pathiyil" <ppathiyi@cisco.com>
Cc: <tutor@python.org>; <xml-sig@python.org>
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
> http://mail.python.org/mailman/listinfo/tutor
>