Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 348
gregturn Avatar asked Jun 09 '09 14:06

gregturn


People also ask

What is the name of the Python library to parse XML data?

The xml.etree.ElementTree module implements a simple and efficient API for parsing and creating XML data.

Which module can you use to parse an XML file using Python?

Python allows parsing these XML documents using two modules namely, the xml. etree. ElementTree module and Minidom (Minimal DOM Implementation).

What is Python XML processing?

XML is a portable, open source language that allows programmers to develop applications that can be read by other applications, regardless of operating system and/or developmental language.


3 Answers

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

like image 197
Aaron Maenpaa Avatar answered Sep 21 '22 02:09

Aaron Maenpaa


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

like image 38
brettkelly Avatar answered Sep 22 '22 02:09

brettkelly


xml.sax is a builtin SAX parser

like image 42
Nicolas Dumazet Avatar answered Sep 21 '22 02:09

Nicolas Dumazet