problem in xml parsing and showing data in android application
<p>I am developing an android application in which i have to parse the data from url and show in list.I have parsed url acc to sample code. I have extended the main class to the default handler class. and used main,start and end tag.I have parsed the url acc to below code</p>

<pre><code> HttpClient httpclient = new DefaultHttpClient();
     HttpPost httppost = new HttpPost("http://asia.vmsc.vmsplay.com/vmsc.asmx/GetCountries");

     // Add your data
      List&lt;NameValuePair&gt; nameValuePairs = new ArrayList&lt;NameValuePair&gt;(2);
         nameValuePairs.add(new BasicNameValuePair("AccountId","vmsfree48jfwe83dwe8"));
         nameValuePairs.add(new BasicNameValuePair("Countries","US"));
        // nameValuePairs.add(new BasicNameValuePair("Language","en"));
         UrlEncodedFormEntity formEntity = new UrlEncodedFormEntity(nameValuePairs);
         httppost.setEntity(formEntity);

     // Execute HTTP Post Response
     HttpResponse response = httpclient.execute(httppost);
     InputStream is = response.getEntity().getContent(); 

     SAXParserFactory factory = SAXParserFactory.newInstance();
        SAXParser parser = factory.newSAXParser();
        XMLReader reader = parser.getXMLReader();
        MyXMLHandler myXMLHandler = new MyXMLHandler();
        reader.setContentHandler(myXMLHandler);
        reader.parse(new InputSource(is));          
        sitesList = MyXMLHandler.sitesList;

        countryname=new String[sitesList.getisocountrycode().size()];
        isocountrycode =new String[sitesList.getisocountrycode().size()];
        countrycode=new String[sitesList.getisocountrycode().size()];
        idd=new String[sitesList.getisocountrycode().size()];
        image=new String[sitesList.getisocountrycode().size()];
        image1=new String[sitesList.getisocountrycode().size()];


        for (int j = 0; j &lt; sitesList.getisocountrycode().size(); j++) {
            countryname[j] = sitesList.getcountryname().get(j);
            System.out.println(" id "+sitesList.getcountryname().get(j));
            isocountrycode[j]=sitesList.getisocountrycode().get(j);
            System.out.println("title "+sitesList.getisocountrycode().get(j));
            countrycode[j] = sitesList.getcountrycode().get(j);
            System.out.println("desc "+sitesList.getcountrycode().get(j));
            idd[j] = sitesList.getProductcount().get(j);
            System.out.println("prociunt "+sitesList.getProductcount().get(j));
            image[j] = sitesList.getidd().get(j);
            System.out.println("image "+sitesList.getidd().get(j));
            System.out.println("image length  "+sitesList.getidd().get(j).length());
            image1[j] = sitesList.getImage1().get(j);
            System.out.println("image1 "+sitesList.getImage1().get(j));
</code></pre>

<p>But still I am not getting data that I have parsed ,,,</p>

<p>Can anyone tell where I have done wrong</p>

<p>Thanks in advance
Tushar</p>
