Link to home
Start Free TrialLog in
Avatar of snajalm
snajalm

asked on

XML Related API!

I'm sending a request to the server which inreturn sends back a series of configuration parameters in XML format.  I have read the server responce storing it into a String variable.  Now I'd like to read through elements and altributes in order to pick the desired settings and store them in my Java DB.  What would be the API that would perform simple XML related tasks?!

Would I have to store the XML file sent by the server as a file or it's already doo that it's stored as a String?!

Regards
SOLUTION
Avatar of for_yan
for_yan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of snajalm
snajalm

ASKER

Thanks for you help so far!

So if we have an InputStream that is reading XML data off the URL connection.  How can I read this stream so that I pick an specific attribute occuring in different elements and store their values into a String array of some sort.

An example would be greatly appreciated!

Regards
SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of snajalm

ASKER

Thanks again for all your prompt and clear response!