[Tutor] Re: [XML-SIG] XML Parser
Lars Marius Garshol
larsga@garshol.priv.no
08 Aug 2001 09:19:22 +0200
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.