List of utility methods to do XML Document from URL
Document | getXMLFile(URL url) Gets an XML file from an url DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
return db.parse(url.openStream());
|
Document | getXMLFromURL(String url) get XML From URL Document xmlDoc = null; try { docBuilder = builderFactory.newDocumentBuilder(); xmlDoc = docBuilder.parse(url); } catch (ParserConfigurationException error) { System.err.println("Error reading parser configuration."); return xmlDoc; } catch (SAXException error) { ... |