Has anyone had any experience with any kind of XML compression tool?
And if so, is Java able to read that data directly from the compressed file?
Thanks very much!
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11962
5
posted
0
Originally posted by bob connolly: Has anyone had any experience with any kind of XML compression tool?
And if so, is Java able to read that data directly from the compressed file?
GZIP should work just fine on XML just like on any other text files. Although you can't just give a gzipped InputStream to a JAXP compliant parser (it wouldn't recognize that the stream is gzipped), it shouldn't be too much work to do the gzipping/unzipping yourself before/after handing the XML over to the JAXP parser.