File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Android Security Essentials Live Lessons this week in the Android 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]
 
jQuery in Action, 2nd edition
 
subject: XML Comression ?
 
Similar Threads
difference between CDATA and PCDATA in XML
HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is no
XSL parser
validation
XML coding standards