ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> activepython
activepython
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved