从XML文件生成Java类 [英] Generating Java classes from XML file
本文介绍了从XML文件生成Java类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何从xml文件获取java类?
How can I get java classes from an xml file?
在这种情况下,我没有 XML模式,这样我就不能使用JAXB,Castor或其他xml绑定API
In this situation, I don't have an XML schema and this way I can't use JAXB, Castor or other xml binding API as far as I know.
推荐答案
可以使用某些工具。然后,使用 Apache XMLBEANS 创建您的课程。
You can generate schema from XML file using certain tools. Then, use Apache XMLBEANS to create your classes.
这篇关于从XML文件生成Java类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文