Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Reading XML file from a given URL

807601Jun 15 2008 — edited Jun 16 2008
Hi, I want to read an XML file - such as an RSS weather feed and format it to match the style of my site (im using Java servlets). I am able to get a HttpURLConnection, but how do I then read from it? if I use the .getInputStream() method on runtime I get the error

"java.net.UnknownServiceException: protocol doesn't support input
java.net.URLConnection.getInputStream(URLConnection.java:779)"

can anyone enlighten me?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 14 2008
Added on Jun 15 2008
16 comments
358 views