ncxParser = new XMLParser(ocf, in, path, "application/x-dtbncx+xml", report, version);
ncxParser.addValidator(XMLValidators.NCX_RNG.get());
ncxHandler = new NCXHandler(ncxParser, path, xrefChecker);
ncxParser.addXMLHandler(ncxHandler);
ncxParser.process();
if (ocf.getUniqueIdentifier() != null && !ocf.getUniqueIdentifier().equals(ncxHandler.getUid()))
{
report.message(MessageId.NCX_003,
new MessageLocation(path, ncxParser.getLineNumber(), ncxParser.getColumnNumber(), String.format("%1$s: %2$s", ncxHandler.getUid(), ocf.getUniqueIdentifier())));