views:

304

answers:

4

Considering that I want to write python code that would run on Google App Engine and also inside jython, C-extensions are not an option. Amara was a nice library, but due to its C-extensions, I can't use it for either of these platforms.

+7  A: 

ElementTree is very nice. It's also part of 2.5.

Aaron Maenpaa
+1... ElementTree is an excellent package.
Jarret Hardie
+1 built-in XML package
jcoon
@coonj ... indeed. ElementTree should be available in AppEngine and jython 2.5, but jython 2.2 is still recommended for production use (jython 2.5rc4 is out so it shouldn't be that much longer).
Aaron Maenpaa
jython 2.5.0 is ready
Blauohr
@Blauohr Awesome! As I said, with rc4 out it shouldn't be that much longer.
Aaron Maenpaa
A: 

xml.sax is a builtin SAX parser

NicDumZ
+3  A: 

There's also Beautiful Soup (which may be geared more toward HTML, but it also does XML).

inkedmn
+1  A: 

I would normally recommend lxml, but since that uses a C-library (libxml) the alternative would have to be, as Aaron has already suggested, ElementTree (as far as I know there is both a pure python and a c implementation of it available). Found this via google search

Good luck!

Kenny164