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
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 networking tools app
It is sorta covered in the
JavaRanch Style Guide
subject: Read XML from URL
Access to XML parsing after login authorization
Reading from XML file
get value from url
RMI Binding on localhost
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