Reputation: 3
I wondering that which is the best libray to convert XML to Java Object easily.
I have used XStream but i am not getting what i want.
I want to pass this xml.
http://webservices.nextbus.com/service/publicXMLFeed?command=routeConfig&a=ttc&r=54
Please, suggest me some good library.
Upvotes: 0
Views: 2068
Reputation: 21551
XStream and JAXB allows you to convert an XML Schema (XSD) file into a collection of Java classes. This may be more "structured" than the XMLEncoder
/Serializable
approach that Andy's (excellent, by the way) answer provides.
Upvotes: 1