How to parse XML response from web service

Put your problem here if it does not fit any of the other categories.

How to parse XML response from web service

Postby gvkreddyvamsi » Mon Feb 25, 2008 1:01 pm

HI,

I have one example application to call web service.
Here in this application only iam getting XML response from web service.
How to parse the data from XML response .
Screen shot is attached here.

I need to get value stored at double tag.


Application also attached

by
vamsi
Attachments
android.zip
(29.41 KiB) Downloaded 163 times
CurrencyConvertWS.zip
(43.43 KiB) Downloaded 137 times
gvkreddyvamsi
Developer
Developer
 
Posts: 43
Joined: Mon Jan 21, 2008 5:10 am
Location: INDIA

Top

Postby plusminus » Mon Feb 25, 2008 2:12 pm

Hello vamsi,

Have a look at this Tutorial: :src: Parsing XML from the Net - Using the SAXParser.

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby gvkreddyvamsi » Tue Feb 26, 2008 5:53 am

Hi,

Actually the application Parsing application from net using SAX parser application is to parse content stored as a file on web server. But in my application xml generates dynamically. Need to parse the response.
pls check application once.....

Need to get value at double node.

by
vamsi
Attachments
and.PNG
Screen Shot
and.PNG (85.07 KiB) Viewed 1396 times
gvkreddyvamsi
Developer
Developer
 
Posts: 43
Joined: Mon Jan 21, 2008 5:10 am
Location: INDIA

Postby plusminus » Tue Feb 26, 2008 9:45 am

Hello vamsi,

of course you can do also parse dynamic generated content.
I.e. Google Weather API
Google Location API
Yahoo Geo API
...

all successfully done, using SAX Parsers.

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 11 guests