read xml file from compressed file using gzip

Stefan Behnel stefan.behnel-n05pAM at web.de
Fri Jun 8 01:31:02 EDT 2007


flebber wrote:
> I was working at creating a simple program that would read the content
> of a playlist file( in this case *.k3b") and write it out . the
> compressed "*.k3b" file has two file and the one I was trying to read
> was maindata.xml.

Consider using lxml. It reads in gzip compressed XML files transparently and
provides loads of other nice XML goodies.

http://codespeak.net/lxml/dev/

Stefan



More information about the Python-list mailing list