📜  java create xml - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:02.650000             🧑  作者: Mango

代码示例1
Create a DocumentBuilder instance.
Create a Document from the above DocumentBuilder .
Create the elements you want using the Element class and its appendChild method.
Create a new Transformer instance and a new DOMSource instance.
Create a new StreamResult to the output stream you want to use