开发者

XML to Java Object [duplicate]

开发者 https://www.devze.com 2023-01-10 20:25 出处:网络
This question already has answers here: 开发者_运维知识库 Closed 12 years ago. Possible Duplicate:
This question already has answers here: 开发者_运维知识库 Closed 12 years ago.

Possible Duplicate:

Java converting XML to Java objects

Hi,

Can someone please suggest the best and different ways of converting a XML file to an Java object?

Thanks & Regards, Ravi.


There are a lot of xml-to-java-frameworks around. In the past I've worked a lot with jibx.


You can user available frameworks like Castor or Xstream

I would recommend Xstream considering the simplicity of use. This 2 minute tutorial of Xstream will help you to get started quickly.

0

精彩评论

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