title: Read XML String from URL in Java
body: <p>I am retrieving data from restful web service in XML format, but unfortunately my <code>String</code> is <code>null</code>. Please help me, where is the problem in my code?</p>
  
  <p>Here is the example code:</p>
  
  <pre><code>URL url = new URL("http://loxvo.fogbugz.com/api.asp?cmd=logon&amp;email=myemail&amp;password=mypwd");
  HttpURLConnection request1 = (HttpURLConnection) url.openConnection();
  request1.setRequestMethod("GET");
  request1.connect();
  InputStream is = request1.getInputStream();
  BufferedReader bf_reader = new BufferedReader(new InputStreamReader(is));
  String responseData = IOUtils.toString(bf_reader);
  System.out.print(responseData);
  </code></pre>
  
  <p>I have tried this url in rest client: it's returning me correct xml, but here my <code>String</code> is <code>null</code>.</p>