开发者

Retrieving attributes value from soap response

I am us开发者_JAVA百科ing 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.


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

Thanks,


you need to learn Sax parser. what is Sax parser click here.with example

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜