|
From:
<Seb...@en...> - 2007-09-14 16:17:42
|
cyberco wrote:
> I would like to use the excellent ElementTree for some simple XML
> work, but unfortunately it depends on the shared lib 'expat' so Jython
> can't import it. Or can it? Anybody here that succeeded?
>
> I've read that previous versions of elementtree had a way to avoid
> expat by using SimpleXMLTreeBuilder,
Even then, running SimpleXMLTreeBuilder with jython 2.2 yields:
$ jython SimpleXMLTreeBuilder.py
xmllib doesn't work properly in this Python version:
- default namespace applied to unqualified attribute
> but that class has been removed
> now (although the error message still says "No module named expat; use
> SimpleXMLTreeBuilder instead").
>
> If elementtree is a no go (I hope not) what other XML parsing package
> (python) or lib (java) would you recommend? (I prefer the Python
> packages since those are generally much simpler to use.)
>
> Cheers,
> Berco
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Jython-users mailing list
> Jyt...@li...
> https://lists.sourceforge.net/lists/listinfo/jython-users
>
>
|