A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
How to get access of a xml file inside a zip file?
Joined: Dec 03, 2001
Feb 26, 2003 18:34:00
How to get access of a xml file inside a zip file? I have a staroffice 6.0 doc which a basically a zipped file containing a few xml files. What I want to do is to just process one xml file word by word as a inputstream.
Joined: Mar 20, 2001
Feb 26, 2003 23:26:00
You can use
to do that.
It's probably easier with
ZipFile zipFile = new ZipFile("file.zip"); ZipEntry zipEntry = zipFile.getEntry("yourfile.xml"); InputStream is = zipFile.getInputStream(zipEntry); ...
..and go nuts.
[ February 27, 2003: Message edited by: Ryo Saeba ]
It is sorta covered in the
JavaRanch Style Guide
subject: How to get access of a xml file inside a zip file?
problem with opening zip file and reading the contents in the zip files
How to unzip a file??
How to properly insert xsi:schemaLocation in XML file?
Reading a zip file
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013