用nekohtml回获取网页指定内容
用nekohtml来获取网页指定内容????????parser.setProperty(http://cyberneko.org/html/properties/defaul
用nekohtml来获取网页指定内容
????????parser.setProperty("http://cyberneko.org/html/properties/default-encoding","utf-8");
????????parser.parse(new?InputSource(stream));
????????Document?doc?=?parser.getDocument();
????????Node myNode=?doc.getElementById("reply57194353_body");
????????print(myNode,?"");
????}?
????public?static?void?print(Node?node,?String?indent)?{
????????System.out.println(node.getTextContent());
????}?
}