user3093833
user3093833

Reputation: 3

How to convert XML to Java Object in Android

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

Answers (1)

Shailendra Madda
Shailendra Madda

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

Related Questions