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.
Asked
Active
Viewed 1,454 times
4 Answers
8
ElementTree is very nice. It's also part of 2.5.

Aaron Maenpaa
- 119,832
- 11
- 95
- 108
-
@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 Jun 09 '09 at 15:18
-
@Blauohr Awesome! As I said, with rc4 out it shouldn't be that much longer. – Aaron Maenpaa Jun 17 '09 at 13:42
4
There's also Beautiful Soup (which may be geared more toward HTML, but it also does XML).

brettkelly
- 27,655
- 8
- 56
- 72
-
1One problem I've run into with Beautiful Soup's XML parsing is that [it doesn't know about self-closing tags](http://www.crummy.com/software/BeautifulSoup/documentation.html#Parsing%20XML). – zekel Jun 20 '11 at 13:11
1
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
- 53
- 1
- 8