I have an ASMX web service. It returns data in XML format . Data returned is large. Order of 30-40000 records. I am trying to use
TBXML.
<ArrayOfNAllAddresses xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://tempuri.org/">
<NAllAddresses>
<AllAddID>60386 </AllAddID>
<AllAddressLine>XYZA Company </AllAddressLine>
<AllAddressCity>>Chicago </AllAddressCity>
<AllAddressState>IL </AllAddressState>
<AllAddressZip>5555</AllAddressZip>
<AllCustID >41257> </AllCustID>
</NAllAddresses>
<NAllAddresses>
....
</NAllAddresses>
</ArrayOfNAllAddresses>
TBXMLElement *elem_NAddresses = [TBXML childElementNamed:@"ArrayOfNAllAddresses" parentElement:root];
NSLog(@"the value is at 873 %@",elem_NAddresses);
while (elem_NAddresses != nil) {
//It should enter here. But it won't
}
So i tried it. But it won't enter the while loop. I changed the value from ArrayOfNAlllAddresses to use NALLAddresses. But it won't work in either. Can someone tell me how to parse it?Thanks. If you need more info let me know.