Search code examples
androidsoapattributesksoap2

Retrieving attributes value from soap response


I am using ksoap for using webservice in my application. The output response contains attributes also. The response will be something like this;

<Response xmlns="namespace">
  <Result Id="number" Name="value"></Result>
</Response>

How can I retrieve value of Id from this? I tried with getAttribute() method but it did not work. Please help.


Solution

  • I got the solution! I referred this: http://www.simpligility.com/2010/05/attribute-support-for-ksoap2-on-android/

    Thanks,