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(); }
posted on 2014-03-19 09:11 agilezing 阅读(127) 评论(0) 编辑 收藏 举报