wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes XML Comression ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML Comression ?" Watch "XML Comression ?" New topic
Author

XML Comression ?

bob connolly
Ranch Hand

Joined: Mar 10, 2004
Posts: 204
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
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.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
 
subject: XML Comression ?
 
Similar Threads
XSL parser
validation
XML coding standards
HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is no
difference between CDATA and PCDATA in XML