Fraser MacKenzie wrote:
> 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?

You need to install PyXML [1].  You might want to look at more recent 
packages, such as lxml.etree [2], as it's not clear whether PyXML is 
still being maintained.

[1] http://www.python.org/community/sigs/current/xml-sig/
[2] http://codespeak.net/lxml/

-- 
Bob Kline
http://www.rksystems.com
mailto:[EMAIL PROTECTED]

_______________________________________________
ActivePython mailing list
ActivePython@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython

Reply via email to