String xpath = "//div";Object[] myNodes = node.evaluateXPath(xpath);for (Object obj : myNodes) {TagNode node = (TagNode) obj;// System.out.println(node.getAttributes());title = node.getText().toString().trim();}