What is best practice in converting XML to Java object?

后端 未结 10 891
没有蜡笔的小新
没有蜡笔的小新 2021-02-13 16:02

I need to convert XML data to Java objects. What would be best practice to convert this XML data to object?

Idea is to fetch data via a web service (it doesn\'t use WSDL

10条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-13 16:48

    Have a look at XStream. It might not be the quickest, but it is one of the most user friendly and straightforward converters in Java, especially if your model is not complex.

提交回复
热议问题