android - parsing the response from xml -
i new webservices , want parse xml , store response(string val) in local variable. how can this? plz 1 post code snippet this.
http/1.1 200 ok content-type: text/xml; charset=utf-8 content-length: length <?xml version="1.0" encoding="utf-8"?> <soap:envelope xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:xsd="http://www.w3.org/2001/xmlschema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:body> <registeruserresponse xmlns="http://tempuri.org/"> <registeruserresult>string</registeruserresult> </registeruserresponse> </soap:body> </soap:envelope>
there many parsing technique available in android itself: xmlpullparser, dom parser , saxparser. can implement any.
here best examples learn xml parsing: http://www.ibm.com/developerworks/library/x-android/
otherwise, should try google link: http://bit.ly/j1j12x
Comments
Post a Comment