This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML Comression ?

 
bob connolly
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!

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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic