1 回答
soft_xiao
TA贡献3条经验 获得超2个赞
EscapeStrategy es = new EscapeStrategy() { @Override public boolean shouldEscape(char arg0) { // TODO Auto-generated method stub return false; } }; Format format = Format.getPrettyFormat(); format.setEscapeStrategy(es); format.setEncoding("utf-8"); XMLOutputter op = new XMLOutputter(format);
添加回答
举报
0/150
提交
取消