Parsing xml file in python

Stefan Behnel stefan.behnel-n05pAM at web.de
Tue Oct 30 17:34:39 EDT 2007


amjadcsu at gmail.com wrote:
> I am a newbie in python
> I am trying to parse a xml file and write its content in a txt file.

If you want to write code that does not hide your bugs behind cryptic event
handlers and instead helps you get XML work done, try using ElementTree or
lxml instead of SAX. The first is in the standard library of Python 2.5, the
second is here:

http://codespeak.net/lxml

Stefan



More information about the Python-list mailing list