简体   繁体   English

从xmlObject创建xml

[英]Creating an xml from an xmlObject

I am not able to find a suitable way to write an org.apache.xmlbeans.XmlObject instance to an xml file. 我找不到合适的方法将org.apache.xmlbeans.XmlObject实例写入xml文件。 Is there any api in java that can be used to write an XMLObject like Transformer for DOCSource. Java中是否有任何api可用于编写XMLObject(如Transformer for DOCSource)。 I am not able to find one. 我找不到一个。

刚刚找到了出路,由于xmlObject只是XMLTokenSource的实现,因此,我们可以使用xmlObject.save(File)编写此对象。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM