7

I'd like to use etree, expat or similar, though I understood etree is easier to use. But how do I install that when I already have Python 2.7.2 installed on Ubuntu 11.10?

All documentation I can find through Google suggests that xml parsing is available by default for Python. Or at least when I search for install xml parser python, or any combination of similar words, also including etree or expat I can't find what steps to take (a commandline install method).

Ruud
  • 249

2 Answers2

5

You are probably looking for something like lxml.

Please have a look at the lxml webpage

You can install it in ubuntu with

sudo apt-get install python-lxml
martin
  • 1,809
  • 1
  • 13
  • 21
3

If you're looking for etree, you don't need to install anything, it's available in xml.etree.ElementTree.

jcollado
  • 9,868