Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- URLConnection connection = (HttpURLConnection) url.openConnection();
- connection.connect();
- SAXParserFactory spf = SAXParserFactory.newInstance();
- SAXParser sp = spf.newSAXParser();
- XMLReader xr = sp.getXMLReader();
- URLParser responseParser = new URLParser();
- xr.setContentHandler(responseParser);
- xr.parse(new InputSource(url.openStream()));
Add Comment
Please, Sign In to add comment