A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course this week in the
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 ]
subject: How to get access of a xml file inside a zip file?
How to unzip a file??
Reading a zip file
How to properly insert xsi:schemaLocation in XML file?
problem with opening zip file and reading the contents in the zip files
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015