且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Java中创建XML文件的***方法是什么?

更新时间:2022-02-19 02:07:47

如果您只想编写一个XML文档,可以精确控制元素,属性和其他文档组件的创建,您可以使用 XMLStreamWriter

If you just want to write an XML document having exact control over the creating of elements, attributes and other document components, you may use the XMLStreamWriter from the StAX API.