Re: read xml file from compressed file using gzip

2007-06-10 Thread John Machin
On 10/06/2007 8:08 PM, flebber wrote: > > Thanks that was so helpful to see how to do it. I have read a lot but > it wasn't sinking in, and sometimes its better to learn by doing. IMHO it's always better to learn by: read some, try it out, read some, ... > Some > of the books I have read just se

Re: read xml file from compressed file using gzip

2007-06-10 Thread flebber
On Jun 10, 7:43 pm, John Machin <[EMAIL PROTECTED]> wrote: > On 10/06/2007 3:06 PM, flebber wrote: > > > > > On Jun 10, 3:45 am, Stefan Behnel <[EMAIL PROTECTED]> wrote: > >> flebber wrote: > >>> I was working at creating a simple program that would read the content > >>> of a playlist file( in thi

Re: read xml file from compressed file using gzip

2007-06-10 Thread John Machin
On 10/06/2007 3:06 PM, flebber wrote: > On Jun 10, 3:45 am, Stefan Behnel <[EMAIL PROTECTED]> wrote: >> 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 f

Re: read xml file from compressed file using gzip

2007-06-09 Thread flebber
On Jun 10, 3:45 am, Stefan Behnel <[EMAIL PROTECTED]> wrote: > 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 > >

Re: read xml file from compressed file using gzip

2007-06-09 Thread Stefan Behnel
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 libr

Re: read xml file from compressed file using gzip

2007-06-08 Thread Gabriel Genellina
En Fri, 08 Jun 2007 10:00:58 -0300, flebber <[EMAIL PROTECTED]> escribió: >> I will, baby steps at the moment for me at the moment though as I am >> only learning and can't get gzip to work Try reading some tutorial from http://wiki.python.org/moin/BeginnersGuide -- Gabriel Genellina -- htt

Re: read xml file from compressed file using gzip

2007-06-08 Thread flebber
On Jun 8, 9:45 pm, flebber <[EMAIL PROTECTED]> wrote: > On Jun 8, 3:31 pm, Stefan Behnel <[EMAIL PROTECTED]> wrote: > > > 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 > > > compresse

Re: read xml file from compressed file using gzip

2007-06-08 Thread flebber
On Jun 8, 3:31 pm, Stefan Behnel <[EMAIL PROTECTED]> wrote: > 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 > > w

Re: read xml file from compressed file using gzip

2007-06-07 Thread Stefan Behnel
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

read xml file from compressed file using gzip

2007-06-07 Thread flebber
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 . I cannot however seem to use the gzip module correctly. Have tried the prog