Use a ZipInputStream
and search for your requested file.
FileInputStream fis = new FileInputStream(args[0]);
ZipInputStream zis = new ZipInputStream(fis);
ZipEntry ze;
while ((ze = zis.getNextEntry()) != null)
if(ze.getName().equals("/test/a.xml")
{
//use zis to read the file's content
}