title: How can I parse xml from url in android?
body: <p>I am currently using a xml that has been downloaded and parsed from there. I would like to do it directly from the url itself. How can I do that? </p>
  
  <p>I have added the snippet I am using below. Kindly help with a snippet or example.Thank you.</p>
  
  <pre><code>DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
  DocumentBuilder builder = factory.newDocumentBuilder();
  File file = new File(this.getFilesDir(), FILE_EXTRACTED);
  Document dom = builder.parse(file);
  Element root = dom.getDocumentElement();
  root.normalize();
  </code></pre>