Issue Attempting to Import xml.parsers.xmlproc in ActivePython
by Fraser MacKenzie other posts by this author
Apr 23 2008 2:02PM messages near this date
view in the new Beta List Site
Re: cPickle bug in AS Python [was Re: Shelve bug in ActiveState Python? [or Python as Houdini]]
|
Re: Issue Attempting to Import xml.parsers.xmlproc in ActivePython
I am using python2.5 (downloaded and installed about a week ago).
I am attempting to validate an XML file, using the appropriate DTD. In
looking at the ASPN Cookbook, it appears that I am suppossed to use the
following imports:
from xml.parsers.xmlproc import xmlproc
from xml.parsers.xmlproc import xmlval
from xml.parsers.xmlproc import xmldtd
However, when I attempt to run my python program, I get the following
errors:
Traceback (most recent call last):
File "./feedManager.py", line 62, in <module>
from xml.parsers.xmlproc import xmlproc
ImportError: No module named xmlproc
I have tried just importing xml.parsers, and that has no issue. Is there a
known issue with the latest release of ActivePython and xmlproc?
Thanks for any information or help that you can provide.
--
Fraser MacKenzie
fmackenz@gmail.com
Thread:
Fraser MacKenzie
Bob Kline
|