I'm working with a file type that is essentially just a zip file, the actually extension of it isn't a zip (let's say it's .foo), and when you rename test.foo to test.zip there is an index.xml file that contains lots of valuable information.
My question is: is there a way to convert the .foo file to a .zip, then open that zip and read the index.xml file (I know you can parse it, but can I open it while it's still in the .zip)?
I know this is possible on the server, but what I'd like to do is read the xml, convert it to JSON all on the client side, then send the necessary information to the server, which would make the process a lot faster.
Any help or pointers would be great, thanks!