{
ManifestItem mi = epack.getManifest().getItem(i);
if (vtsd.isValidMediaType(mi.getMediaType()))
{
XMLContentDocParser parser = new XMLContentDocParser(this.zip, report);
SpanTagHandler sh = new SpanTagHandler();
String fileToParse = epack.getManifestItemFileName(mi);
ZipEntry entry = this.zip.getEntry(fileToParse);
if (entry == null)
{
report.message(MessageId.RSC_001, new MessageLocation(this.epack.getFileName(), -1, -1), fileToParse);
continue;
}
parser.parseDoc(fileToParse, sh);
sh.countNestedElements(sh.getTopElement());
if (sh.getGenerateMessage() > 0)
{
report.message(MessageId.HTM_022, new MessageLocation(mi.getHref(), -1, -1));
}
}
}