HTMLParser2 parser2 = new HTMLParser2();
HTMLDocument document = parser2.createDocument(file, null);
NodePathParser pathParser = new NodePathParser();
NodePath nodePath = pathParser.toPath(path);
HTMLExtractor htmlExtractor = new HTMLExtractor();
HTMLNode node = htmlExtractor.extract(document, new NodePath[]{nodePath}).getRoot();
System.out.println(node.getTextValue());
}
public HTMLDocument removeNode(String name) throws Exception {
HTMLParser2 parser2 = new HTMLParser2();