boolean newLines = true;
XMLOutputter outp = new XMLOutputter(indent,newLines,"GBK");
outp.output(doc, new FileOutputStream("exampleB.xml"));
}
};
执行结果exampleB.xml:
Java编程入门
50.0
2002-6-6
35.0
文章来源于领测软件测试网 https://www.ltesting.net/
发布: 2008-5-26 11:11 | 作者: 不详 | 来源: BlogChina.COM | 查看: 134次 | 进入软件测试论坛讨论
boolean newLines = true;
XMLOutputter outp = new XMLOutputter(indent,newLines,"GBK");
outp.output(doc, new FileOutputStream("exampleB.xml"));
}
};
执行结果exampleB.xml:
Java编程入门
50.0
2002-6-6
35.0
文章来源于领测软件测试网 https://www.ltesting.net/