Xerces 简明教程 Create XML Document Xerces 简明教程 SAX Parser - Create XML Document 使用 StAX 解析器创建 XML 比使用 SAX 解析器更好。请参阅 Java StAX Parser 部分以获取相同的信息。 It is better to use the StAX parser for creating XML than using the SAX parser. Please refer the Java StAX Parser section for the same.