{
ManifestItem mi = epack.getManifest().getItem(i);
if (vtsd.isValidMediaType(mi.getMediaType()))
{
XMLContentDocParser parser = new XMLContentDocParser(this.zip, report);
LangAttributeHandler sh = new LangAttributeHandler();
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);
String langAttribute = sh.getLangAttr();
String xmlLangAttribute = sh.getXmlLangAttr();
if (langAttribute != null && xmlLangAttribute != null)
{
if (xmlLangAttribute.compareToIgnoreCase(langAttribute) != 0)
{
report.message(MessageId.HTM_017, new MessageLocation(fileToParse, -1, -1));