Hello,
Below is a small code snippet demonstrating how it can be done on android.
HttpGet uri = null;
Document doc = null;
StatusLine status = null;
HttpResponse resp = null;
DocumentBuilder builder = null;
DefaultHttpClient client = null;
DocumentBuilderFactory factory = null;
uri = new HttpGet("YOUR XML FILE URL GOES HERE");
client = new DefaultHttpClient();
resp = client.execute(uri);
status = resp.getStatusLine();
if (status.getStatusCode() == "200") {
factory = DocumentBuilderFactory.newInstance();
builder = factory.newDocumentBuilder();
doc = builder.parse(resp.getEntity().getContent());
...
}
You will also find following articles very useful.
Regards,