我从.NET SOAP服务器返回了以下SOAP响应。
(<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<GetCategoriesIMFollowing_WithTokenResponse xmlns="http://tempuri.org/">
<GetCategoriesIMFollowing_WithTokenResult>8,9,10,11,12,2</GetCategoriesIMFollowing_WithTokenResult>
</GetCategoriesIMFollowing_WithTokenResponse>
</soap:Body>
</soap:Envelope>).
我需要解析它以获得整数(8,9,10,11,2)
获取这些数字最简单的方法是什么?
提前谢谢。
我在这个链接中找到了我需要的东西
http://www.whatsoniphone.com/blog/android-app-development-parsing-web-service-response-part-1/#
谢谢。