XML parse file from HTTP

Posted by Travis on Stack Overflow See other posts from Stack Overflow or by Travis
Published on 2010-06-17T01:59:56Z Indexed on 2010/06/17 2:02 UTC
Read the original article Hit count: 254

Filed under:
|

I have an XML file located at a location such as

http://example.com/test.xml

I'm trying to parse the XML file to use it in my program with xPath like this but it is not working.

Document doc = builder.parse(new File(url));

How can I get the XML file?

© Stack Overflow or respective owner

Related posts about java

Related posts about Xml