gregturn
gregturn

Reputation: 2693

What is the most state-of-the-art, pure python, XML parser available?

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.

Upvotes: 6

Views: 1500

Answers (4)

Kenny164
Kenny164

Reputation: 53

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!

Upvotes: 1

brettkelly
brettkelly

Reputation: 28215

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

Upvotes: 4

Nicolas Dumazet
Nicolas Dumazet

Reputation: 7231

xml.sax is a builtin SAX parser

Upvotes: 1

Aaron Maenpaa
Aaron Maenpaa

Reputation: 122940

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

Upvotes: 8

Related Questions