A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
XML and Related Technologies
Read XML from URL
Joined: Mar 26, 2008
Dec 08, 2008 22:53:00
I want to read an XML and parse the data from HttpUrlConnection,
from my application I will hit the URL
will return the XML
, I need to parse and get the necessary info.Which is the best way to do?
Joined: Mar 22, 2005
Dec 09, 2008 00:48:00
from hwere to read the URL contents can be as easy as
InputStream is = (InputStream) new URL("...").getContent()
An example of how to use the SAX API to parse XML
can be found here
. Note that where it uses "System.in" you would use the
you obtained from the line of code above.
I agree. Here's the link:
subject: Read XML from URL
get value from url
You've seen it a thousand times before... "SQLException: No suitable driver"
Reading from XML file
RMI Binding on localhost
Access to XML parsing after login authorization
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015