xml.dom.minidom on os x
Sascha Ernst
s.ernst at web.de
Sun Mar 23 15:51:03 EST 2003
hello,
i tried the following code, a code example from the Python Library
Reference, and just get the message "failed". there seems to be no
problem importing xml.dom.minidom or using parseString(). i compiled
python 2.2.2 myself on os x 10.2.4 without any flags for ./configure
#!/usr/bin/env python
from xml.dom.minidom import parseString
try:
dom3 = parseString('<myxml>Some data<empty/> some more data</myxml>')
print "succeded"
except:
print "failed"
has anybody an idea, why the parser does not work?
regards, sascha
More information about the Python-list
mailing list