[IronPython] expat module for IronPython 2.6 for .NET?

Michael Foord michael at voidspace.org.uk
Mon Sep 13 22:47:50 CEST 2010


  On 13/09/2010 21:14, William Johnston wrote:
>
> Hello,
>
> This version of expat is not the same as the original expat.
>

Well no, it is a reimplementation - or do you mean something different?

> The import error is from not importing XMLTreeBuilder.
>
> Why wasn't the following line used in NLTK's ElementTree source file?
>
> from nltk.etree.ElementTree import XMLTreeBuilder
>

Absolutely no idea. :-)
>
> I wish not to change existing NLTK code.
>
> Any suggestions?
>
I'm afraid not. When you make expat.py available to your IronPython 
installation does it *change* the error you get?

All the best,

Michael

> Regards,
>
> William Johnston
>
> *From:* Michael Foord [mailto:michael at voidspace.org.uk]
> *Sent:* Friday, September 10, 2010 12:54 PM
> *To:* Discussion of IronPython
> *Cc:* William Johnston
> *Subject:* Re: [IronPython] expat module for IronPython 2.6 for .NET?
>
> On 10/09/2010 14:56, William Johnston wrote:
>
> Hello,
>
> Is the expat module available for IronPython 2.6 for .NET?
>
> There is an IronPython compatible implementation of expat that is part 
> of the (sadly now defunct) FePy:
>
> https://fepy.svn.sourceforge.net/svnroot/fepy/trunk/lib/pyexpat.py
>
> All the best,
>
> Michael Foord
>
>
> I need to use expat or SimpleXMLTreeBuilder for xml parsing from the 
> following error:
>
> ImportError: No module named expat; use SimpleXMLTreeBuilder instead.
>
> Thanks,
>
> William Johnston
>
>   
>   
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com  <mailto:Users at lists.ironpython.com>
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>
>
>
> -- 
> http://www.ironpythoninaction.com/
> http://www.voidspace.org.uk/blog
>   
> READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies ("BOGUS AGREEMENTS") that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer.
>   


-- 
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog

READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies ("BOGUS AGREEMENTS") that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100913/77094a24/attachment.html>


More information about the Ironpython-users mailing list