Nov 10

You need to open an InputStream for the URL and pass that to your DocumentBuilder

DocumentBuilderFactory factory = 
   DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document document = builder.parse(url.openStream()); 

written by objects \\ tags: , , ,


Leave a Reply

You must be logged in to post a comment.