{
ManifestItem mi = epack.getManifest().getItem(i);
if (vtsd.isValidMediaType(mi.getMediaType()))
{
XMLContentDocParser parser = new XMLContentDocParser(epack.getZip(), report);
Epub3StructureHandler epub3StructureHandler = new Epub3StructureHandler();
String fileToParse = epack.getManifestItemFileName(mi);
ZipEntry entry = epack.getZip().getEntry(fileToParse);
if (entry == null)
{
report.message(MessageId.RSC_001, new MessageLocation(epack.getFileName(), -1, -1), fileToParse);
continue;
}
epub3StructureHandler.setFileName(epack.getFileName());
epub3StructureHandler.setReport(report);
parser.parseDoc(fileToParse, epub3StructureHandler);
if (epub3StructureHandler.getSpecificTagsCount() > 0)
{
result = true;
}
}
}