title: Can't parse XML (from web) using JSoup
body: <p>I am trying to work with small <code>XML</code> files sent from web and parse few attributes from them. How would I approach this in <code>JSoup</code>? I know it's not <code>XML</code> Parser but <code>HTML</code> one but it supports <code>XML</code> too and I don't have to build any Handlers, BuildFactories and such as I would have to in <code>DOM</code>, <code>SAX</code> etc.</p>
  
  <p>Here is example xml: <a href="http://www.omdbapi.com/?t=Private%20Ryan&amp;y=&amp;plot=short&amp;r=xml" rel="nofollow noreferrer">LINK</a> I can't paste it here because it exits the code tag after every line - if someone can fix that I would be grateful.</p>
  
  <p>And here is my piece of code::</p>
  
  <pre><code>String xml = "http://www.omdbapi.com/?t=Private%20Ryan&amp;y=&amp;plot=short&amp;r=xml";
  Document doc = Jsoup.parse(xml, "", Parser.xmlParser());
  // want to select first occurrence of genre tag though there is only one it 
  // doesn't work without .first() - but it doesn't parse it
  Element genreFromXml = doc.select("genre").first();
  String genre = genreFromXml.text();
  System.out.println(genre);
  </code></pre>
  
  <p>It results in NPE at:</p>
  
  <pre><code>String genre = genreFromXml.text();
  </code></pre>