How to use Retrofit and SimpleXML together in downloading and parsing an XML file from a site?
I just started working with Retrofit. I am working on a project that uses SimpleXML. Can somebody provide me an example in which one fetches an XML from a site e.g. http://www.w3schools.com/xml/simple.xml " and reads it out? vandus You will create an interface as a new class in your project: public interface ApiService { @GET("/xml/simple.xml") YourObject getUser(); } Then in your activity you will call the following: RestAdapter restAdapter = new RestAdapter.Builder() .setEndpoint("http://www.w3schools.com") .setConverter(new SimpleXmlConverter()) .build(); ApiService apiService = restAdapter