title: Download data from URL link in Android by using an HTTP Request
body: <pre><code>public String getXmlFromUrl(String url) {
  
      String xml = null;
  
      try {
          // defaultHttpClient
          DefaultHttpClient httpClient = new DefaultHttpClient();
          HttpPost httpPost = new HttpPost(url);
  
          HttpResponse httpResponse = httpClient.execute(httpPost);
          HttpEntity httpEntity = httpResponse.getEntity();
          xml = EntityUtils.toString(httpEntity);
  
      } catch (UnsupportedEncodingException e) {
          e.printStackTrace();
      } catch (ClientProtocolException e) {
          e.printStackTrace();
      } catch (IOException e) {
          e.printStackTrace();
      }
      // return XML
      return xml;
  }
  </code></pre>
  
  <p>I just want to download data from URL link and display it using single button click in android, please help me on this.
  <a href="http://syndication.indianexpress.com/rss/latest-news.xml" rel="nofollow">Here is the link</a></p>