Title: call web services in Android                                 If you need copy same format use firefox or chrome or safari but iexplorer not work


Preview of Code
try{
HttpClient client = new DefaultHttpClient();
HttpGet getMeathod = new HttpGet( "URL");
 
ResponseHandler<String> responseHandler = new BasicResponseHandler();
String responseBody1 = client.execute(getMeathod, responseHandler);
 
DocumentBuilderFactory dbf1 = DocumentBuilderFactory.newInstance();
DocumentBuilder db1 = dbf1.newDocumentBuilder();
Document doc1 = db1.parse(new InputSource(new StringReader(
responseBody1)));
doc1.getDocumentElement().normalize();
 
NodeList nodeList = doc1.getElementsByTagName("Table");
prayer=new String[nodeList.getLength()];
for (int i = 0; i < nodeList.getLength(); i++) {
 
Node node = nodeList.item(i);
Element fstElmnt = (Element) node;
NodeList nameList = fstElmnt.getElementsByTagName("tag");
Element nameElement = (Element) nameList.item(0);
nameList = nameElement.getChildNodes();
String result_ = (((Node) nameList.item(0)).getNodeValue()
.toString());
Log.i("services", ""+result_);
prayer[i]=result_prayer;
 
}
}catch (Exception e) {
// TODO: handle exception
}