python from Java
Fredrik Lundh
fredrik at pythonware.com
Tue Sep 7 11:47:57 EDT 2004
More information about the Python-list mailing list
Tue Sep 7 11:47:57 EDT 2004
- Previous message (by thread): python from Java
- Next message (by thread): python from Java
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Ajay" <abra9823 at mail.usyd.edu.au> wrote: >> ElementTree >> http://effbot.org/downloads/#elementtree > > okay i tried the above approaches but no luck. See the problem is an XML > parser which works on a PDA - pythonce. Now elementtree uses pyexpat > (which pythonce doesn't have) that's why ElementTree ships with several alternative tree builders; from the README: SimpleXMLTreeBuilder.py Old element tree builder for XML, based on xmllib, for Python versions where "expat" is not available usage: from elementtree import ElementTree, SimpleXMLTreeBuilder tree = ElementTree.parse( source, SimpleXMLTreeBuilder.TreeBuilder() ) note that xmllib has problems with namespaces on some versions of Python; see the elementtree README for details. </F>
- Previous message (by thread): python from Java
- Next message (by thread): python from Java
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list