-3
我得到了來自服務器的響應,我想解析它並添加到arraylist中,但我得到了Classcastexception。請幫我解析它。Saop響應解析
<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>
,這是我的代碼this.this將返回你的XML的數組列表
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));
}
發佈相關代碼 – Raghunandan
int count = soapResponse.getPropertyCount(); SoapObject response1 =(SoapObject)響應; Log.w(「response」,「」+ response1.getProperty(0));對於(int j = 0; j
Kumar