日期:2014-05-20 浏览次数:20667 次
private static final String ENCODE = "utf-8"; // dom操作略 ... ... // 读写xml文件 OutputStreamWriter ow = new OutputStreamWriter(new FileOutputStream("文件路径"), ENCODE); ow.write(new String(sXMLContent.getBytes(ENCODE), ENCODE)); ow.flush(); ow.close();