1 回答

soft_xiao
TA貢獻3條經(jīng)驗 獲得超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
提交
取消