title: XML parse file from HTTP
body: <p>I have an XML file located at a location such as</p>
  
  <pre><code>http://example.com/test.xml
  </code></pre>
  
  <p>I'm trying to parse the XML file to use it in my program with xPath like this but it is not working.</p>
  
  <pre><code>Document doc = builder.parse(new File(url));
  </code></pre>
  
  <p>How can I get the XML file?</p>