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
                        }
-- 
Regards,
Narayanareddy.B
9032478372

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to