Python 2.1 and the minidom
Timothy Grant
tjg at hyperlinq.net
Fri Apr 27 19:46:30 EDT 2001
I'm spending some quality time with XML, and have been
attempting to play with the xml stuff in Python 2.1 (I compiled
from source). When attempting the example given here:
http://www.python.org/doc/current/lib/module-xml.dom.minidom.html
Python 2.1 (#1, Apr 24 2001, 16:24:55)
[GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> from xml.dom.minidom import parse, parseString
>>> dom1 = parse('winlinq.xml')
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/local/lib/python2.1/xml/dom/minidom.py", line 910, in parse
return _doparse(pulldom.parse, args, kwargs)
File "/usr/local/lib/python2.1/xml/dom/minidom.py", line 901, in _doparse
events = apply(func, args, kwargs)
File "/usr/local/lib/python2.1/xml/dom/pulldom.py", line 289, in parse
parser = xml.sax.make_parser()
File "/usr/local/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
>>>
I don't know enough about what's going on here to know what's going on.
I'm guessing that maybe downloading pyXML may solve the problem
unfortunately, the links at SourceForge don't appear to be
working and I cant' grab it.
Can anyone tell me either what I'm doing wrong in the above
example, or how I can get the most recent pyXML from
SourceForge?
Thank you.
--
Stand Fast,
tjg.
Timothy Grant www.hyperlinq.net
Chief Technology Officer tjg at hyperlinq.net
HyperLINq Technologies, Inc. <>< (503) 246-3630
>>>>>>>>>>>>>Linux, because rebooting is *NOT* normal<<<<<<<<<
>>>>This machine was last rebooted: 31 days 1:54 hours ago<<
More information about the Python-list
mailing list