View Single Post
  #2 (permalink)  
Old 12-06-2008, 10:40 AM
w3user w3user is offline
Member
 
Join Date: Dec 2008
Posts: 6
Rep Power: 0
w3user is on a distinguished road
Default
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);
Reply With Quote