开发者

Generating Java classes from XML file

开发者 https://www.devze.com 2022-12-23 03:07 出处:网络
How can I get java classes from an xml file? In开发者_StackOverflow社区 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.Y

How can I get java classes from an xml file?

In开发者_StackOverflow社区 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.


You can generate schema from XML file using certain tools. Then, use Apache XMLBEANS to create your classes.


XStream is great for XML -> objects and vice versa. Fast, lightweight, and works well without any schema.


Altova is also the best to generate java Classes from XML/XSD

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号