我从服务器得到响应,我想解析它并添加到数组列表中,但我得到了 Classcastexception。请帮我解析一下。
<NewDataSet>
<Table>
<Mother_Name>swati</Mother_Name>
<Mother_DOB>15/01/1987</Mother_DOB>
<Mother_Age>30</Mother_Age>
<Mother_ExpConceiveDate>28/07/2013</Mother_ExpConceiveDate>
<Alert_Description>mother alert</Alert_Description>
</Table>
</NewDataSet>
这是我的代码
int count = soapResponse.getPropertyCount();
SoapObject response1 = (SoapObject) response;
Log.w("response",""+response1.getProperty(0));
for (int j = 0; j < count; j++) {
/** Temp SeatInfo soap object */
SoapObject soChild = (SoapObject) response1.getProperty(j);
Log.w("motherName",""+soChild.getProperty(0));
}