文章列表
private String printXml(Document document) {
StringWriter sw = new StringWriter();
OutputFormat format = OutputFormat.createPrettyPrint();//创建一个漂亮个格式
format.setSuppressDeclaration(true);//去掉文件头
XMLWriter xmlWriter = new XMLWriter(sw,format); //整形
try {
...