I am new to Android Development.
For my project, I need to use “REST APIs” outputting XML. What will be the best way of using that in Java for Android?
Can anyone provide some options with examples?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The best library out there is Simple XML: http://simple.sourceforge.net/ Take a look at the examples… it will allow you to easily parse and generate XML from simple objects.
There will be others that recommend you to use SAX or XmlPullParser which comes in the Android SDK; however, I have developed many apps that uses XML REST APIs, and what I found is that SimpleXml makes me like 200% more productive.