Mapping a collection or array
The code below shows an xml response. Here there are multiple Stationery and each Stationery has multiple stores. But when the response is automatically created from the request, there is only one Stationery and one store marked as array. But I need to map details of each store in that array to widgets. I also need to display each store in a map using the latitude and longitude of each store using markers. How is that possible?
pre
<Search>
<Stationery>
<StationeryId>2041</StationeryId>
<Store>
<StoreId>002</StoreId>
<StoreName>New Stationeries</StoreName>
<StoreAddress>5A, 13th avenue, Newyork</StoreAddress>
<StorePhone>1245889</StorePhone>
<StoreLatitude>10.03</StoreLatitude>
<StoreLongitude>76.30</StoreLongitude>
</Store>
<Store>
<StoreId>003</StoreId>
<StoreName>Lords Stationeries</StoreName>
<StoreAddress>7B, 78th avenue, Florida</StoreAddress>
<StorePhone>1457896</StorePhone>
<StoreURL/>
<StoreLatitude>9.94</StoreLatitude>
<StoreLongitude>76.35</StoreLongitude>
</Store>
</Stationery>
<Stationery>
<StationeryId>2100</StationeryId>
</Stationery>
</Search>
/pre