[XML-SIG] Using sax & dom xml parsers
Vincent.Ryan@astrazeneca.com
Vincent.Ryan@astrazeneca.com
Tue, 7 Aug 2001 15:09:47 +0200
Hello,
I'm new to using xml with Python. I've installed Python-2.1.1 on a solaris
2.7 machine and have been using it with success.
However, when I tried to incorporate xml processing (simple program to parse
a string and generate an xml doc) I get the following error:
Traceback (most recent call last):
File "./cxml.py", line 21, in ?
dom = xml.dom.minidom.parseString(document)
File "/usr/contrib/lib/python2.1/xml/dom/minidom.py", line 915, in
parseString
return _doparse(pulldom.parseString, args, kwargs)
File "/usr/contrib/lib/python2.1/xml/dom/minidom.py", line 901, in
_doparse
events = apply(func, args, kwargs)
File "/usr/contrib/lib/python2.1/xml/dom/pulldom.py", line 301, in
parseString
parser = xml.sax.make_parser()
File "/usr/contrib/lib/python2.1/xml/sax/__init__.py", line 88, in
make_parser
raise SAXReaderNotAvailable("No parsers found", None)
xml.sax._exceptions.SAXReaderNotAvailable: No parsers found
Do I need to install the PyXML package or possible set an environment
variable?
Thanks for any help.
-Vince
_____________________________________________
Vince Ryan
Bioinformatics
AstraZeneca, R&D Boston
Enabling Science & Technology
AstraZeneca R&D Boston - Waltham
35 Gatehouse Drive
Waltham, MA 02451
Local x4838
Tel +01 781-839-4838
Fax +01 781-839-4590
vincent.ryan@AstraZeneca.com