[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[xml] Re: Re: Compression?!



"Thomas Rokohl" <rokohl raygina de> schrieb im Newsbeitrag news:...
 ok, i work with windows version 2.5.7+ for Windows, IA32.
 if i use xml.gz files witch i downloaded from the internet, the parser
works
 fine.
 so now i will compress my own xml-file, but if i do
 gzip -c test.xml

 i get

 error: Start tag expected, '<' not found
 6?¯>
 ^

 if i try

 gzip -c test.xml | xmllint --noout -

 i get

 -:1: error: Start tag expected, '<' not found
 Qf±>
 ^

 ?!


 a second way to pack my files is to read and save it in my own programm,
 but how i can save the xml with compression?!

 Thomas Rokohl


>
> "Morus Walter" <morus walter tanto-xipolis de> schrieb im Newsbeitrag
> news:16118 52333 716591 885399 morus xipolis net   
> > Thomas Rokohl writes:
> > >
> > > mhm, but as i pack the file with
> > >
> > > gzip -c myfile.xml
> > >
> > > the lib can not read it. if i search in the internet for an xml.gz
file
> > >
> > > the lib can read it. so what is wrong? how do I have to pack up the
> file?
> > >
> > It's supposed to work with data packed that way.
> >
> > Did you compile with libz support?
> > What platform do you use? What libxml version?
> > Does xmllint read compressed files?
> >
> > I cannot see any problem here with
> > gzip -c test.xml | xmllint --noout -
> > It does the the same as
> > cat test.xml | xmllint --noout -
> >
> > for xmllint: using libxml version 20504
> >    compiled with: FTP HTTP HTML C14N Catalog DocBook XPath XPointer
> XInclude Iconv Unicode Regexps Automata Schemas
> > on linux.
> >
> > I guess ldd is the easiest way on unix/linux to see if libz is included:
> > ldd /usr/local/bin/xmllint
> >         libxml2.so.2 => /usr/local/lib/libxml2.so.2 (0x40016000)
> >         libz.so.1 => /lib/libz.so.1 (0x40106000)
> >         libm.so.6 => /lib/libm.so.6 (0x40115000)
> >         libc.so.6 => /lib/libc.so.6 (0x40137000)
> >         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
> >
> > If libz does not show up, you shouldn't be suprised that it won't do
> > anything...
>
>






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]