dom4j 生成xml时,属性值中的回车换行问题
- OutputFormat format = OutputFormat.createPrettyPrint(); format.setEncoding("utf-8");// 设置XML文件的编码格式 format.setLineSeparator("\n"); format.setTrimText(false); format.setIndent("");Document doc = DocumentHelper.createDocument();
?