title: Android read xml from url cut-off
body: <p>I have an app that takes the xml from a facebook page. The problem is that this part is missing:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;rss version="2.0"
        xmlns:media="http://search.yahoo.com/mrss/"
        xmlns:dc="http://purl.org/dc/elements/1.1/"
      &gt;
    &lt;channel&gt;
      &lt;title&gt;Ð¡Ñ‚ÐµÐ½Ð°Ñ‚Ð° Ð½Ð° Interesting Engineering&lt;/title&gt;
      &lt;link&gt;https://www.facebook.com/&lt;/link&gt;
      &lt;description&gt;Ð¡Ñ‚ÐµÐ½Ð°Ñ‚Ð° Ð½Ð° Interesting Engineering&lt;/description&gt;
      &lt;language&gt;en-us&lt;/language&gt;
      &lt;category domain="Facebook"&gt;PageSyndicationFeed&lt;/category&gt;
      &lt;generator&gt;Facebook Syndication&lt;/generator&gt;&lt;docs&gt;http://www.rssboard.org/rss-specification&lt;/docs&gt;
      &lt;lastBuildDate&gt;Tue, 22 Jul 2014 10:00:01 +0000&lt;/lastBuildDate&gt;
      &lt;webMaster&gt;webmaster@facebook.com&lt;/webMaster&gt;
      &lt;item&gt;
        &lt;guid isPermaLink="false"&gt;www.facebook.com/notification/9433896181aa13927fc
  </code></pre>
  
  <p>This is the beginning of the xml. 
  Here is how I get it:</p>
  
  <pre><code>@Override
          protected Void doInBackground(Void... params) {
              URL url;
              String pageXML = ""; 
              try {
                  url = new URL(pageUrl);
  
                  HttpURLConnection urlConnection = (HttpURLConnection) url
                          .openConnection();
  
                  InputStream in = urlConnection.getInputStream();
                  streamToString(in);
  
                  Log.i("", pageXML);
              } catch (Exception e) {
                  e.printStackTrace();
              }
              return null;
          }
  
          private void streamToString(InputStream in) throws IOException {
              StringBuilder inputStringBuilder = new StringBuilder();
              BufferedReader bufferedReader = new BufferedReader(
                      new InputStreamReader(in, "UTF-8"));
              String line = bufferedReader.readLine();
  
              while (line != null) {
                  inputStringBuilder.append(line);
                  inputStringBuilder.append('\n');
                  line = bufferedReader.readLine();
              }
  
              pageXML = inputStringBuilder.toString();
  
              Log.i("", pageXML);
              write("interesting_engineering", pageXML);
          }
  </code></pre>
  
  <p>Do you have any idea where could be the problem?
  <a href="https://www.facebook.com/feeds/page.php?format=rss20&amp;id=139188202817559" rel="nofollow">This</a> is the url where I take the xml from.</p>