read xml file from compressed file using gzip

Stefan Behnel stefan.behnel-n05pAM at web.de
Sat Jun 9 13:45:13 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

The k3b format is a ZIP archive. Use the zipfile library:

file:///usr/share/doc/python2.5-doc/html/lib/module-zipfile.html

Stefan



More information about the Python-list mailing list