high level, fast XML package for Python?
Tim N. van der Leeuw
tnleeuw at gmail.com
Fri Sep 15 18:03:53 CEST 2006
Gleb Rybkin wrote:
> I searched online, but couldn't really find a standard package for
> working with Python and XML -- everybody seems to suggest different
> Is there a standard xml package for Python? Preferably high-level, fast
> and that can parse in-file, not in-memory since I have to deal with
> potentially MBs of data.
Another option is Amara; also quite high-level and also allows for
incremental parsing. I would say Amara is somewhat higher level than
ElementTree since it allows you to access your XML nodes as Python
objects (with some extra attributes and some minor warts), as well as
giving you XPath expressions on the object tree.
Best version currently available is version 1.1.7
It does work together with py2exe on windows if the need ever arises
for you but you have to fiddle a bit with it (ask for details on this
list if you ever need to do that)
More information about the Python-list