Parser htmlParser = null;
try {
htmlParser = new Parser();
htmlParser.setInputHTML(html);
} catch (Exception e) {
throw new HTMLParseException(e);
}
// Now parse the DOM tree
try {
// we start to iterate through the elements
parseNodes(htmlParser.elements(), formEncodings, pageEncoding);
log.debug("End : parseNodes");
} catch (ParserException e) {
throw new HTMLParseException(e);
}
}