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?
I have added the snippet I am using below. Kindly help with a snippet or example.Thank you.
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();
Use below Code for parse xml from url in android