This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Java in General and the fly likes How to get access of a xml file inside a zip file? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "How to get access of a xml file inside a zip file?" Watch "How to get access of a xml file inside a zip file?" New topic
Author

How to get access of a xml file inside a zip file?

Yu Chen
Greenhorn

Joined: Dec 03, 2001
Posts: 28
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.
Any ideas?
Thanks!!
-yu chen


SCJP2<br />SCWCD
Wirianto Djunaidi
Ranch Hand

Joined: Mar 20, 2001
Posts: 195
You can use java.util.zip.ZipInputStream or ZipFile to do that.
It's probably easier with ZipFile.

..and go nuts.
[ February 27, 2003: Message edited by: Ryo Saeba ]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to get access of a xml file inside a zip file?
 
Similar Threads
problem with opening zip file and reading the contents in the zip files
How to unzip a file??
Reading a zip file
Unzip
How to properly insert xsi:schemaLocation in XML file?