File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
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.
Ping & DNS, my free Android app for network diagnostics
I agree. Here's the link:
subject: Read XML from URL
RMI Binding on localhost
get value from url
Reading from XML file
Access to XML parsing after login authorization
You've seen it a thousand times before... "SQLException: No suitable driver"
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014