I have a Zip that contains two files: an XML and a thumbnail. I would like to open the XML file and parse it WITHOUT having to extract on disk.
One of DocumentBuilder’s parse method requires an InputStream. Is there a way to get the InputStream of the XML in the Zipped file? I kinda got lost. I’m pretty sure ZipInputStream or ZipFile has something to offer, but I can’t figure it out :/
Thank you in advance!
I believe you’re looking for something like this: