Document doc = DocumentHelper.parseText(HttpResponseString);public void writeToFile(org.dom4j.Document doc,String fileName){
String HttpResponseString=“justfortest”
Writer writer = new FileWriter(fileName);
OutputFormat format = OutputFormat.createPrettyPrint();
format.setEncoding("UTF-8");
XMLWriter xmlWriter = new XMLWriter(writer, format);
xmlWriter.write(doc);
xmlWriter.close();
}该如何查询org.dom4j.Document 型对象 doc 的值呢?
String HttpResponseString=“justfortest”
Writer writer = new FileWriter(fileName);
OutputFormat format = OutputFormat.createPrettyPrint();
format.setEncoding("UTF-8");
XMLWriter xmlWriter = new XMLWriter(writer, format);
xmlWriter.write(doc);
xmlWriter.close();
}该如何查询org.dom4j.Document 型对象 doc 的值呢?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货