|
Each of your xml file can be identified by its url.
Use apache httpclient APIs to read the content of url.
here's the tutorial link:
hc.apache.org/httpclient-3.x/tutorial.html
sample code:
String url="your xml file url";
GetMethod method = new GetMethod(url);
int statusCode = client.executeMethod(method);
byte[] responseBody = method.getResponseBody();
String fileContent=new String(responseBody);
|