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://w
import java.util.ArrayList;
import java.util.List;
import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Root;
@Root(name = "breakfast_menu")
public class BrakfastMenu
{
@ElementList(inline = true)
protected List food;
public List getConfigurations()
{
if (food == null)
{
food = new ArrayList();
}
return this.food;
}
public void setConfigurations(List configuration)
{
this.food = configuration;
}
}