import com.bioinformatixx.htmlparser.*; import com.bioinformatixx.htmlparser.dom.*; class Main { public static void main(String [] args) { Parser parser = new Parser("<html><body>Hello, World!</body></html>"); ArrayList<SimpleNode> rootElements = parser.parseHtml(); Node html = (Node)rootElements.get(0); Node body = (Node)html.getChildren().get(0); TextNode bodyInnerText = (TextNode)body.getChildren().get(0); System.out.println(bodyInnerText.getText()); } }