Metadata tikamd = new Metadata();
HTMLDocumentImpl doc = new HTMLDocumentImpl();
doc.setErrorChecking(false);
DocumentFragment root = doc.createDocumentFragment();
DOMBuilder domhandler = new DOMBuilder(doc, root);
ParseContext context = new ParseContext();
// to add once available in Tika
//context.set(HtmlMapper.class, IdentityHtmlMapper.INSTANCE);
try {
parser.parse(new ByteArrayInputStream(testPages[i].getBytes()),