02-05-2013 09:00 AM
Hi All
I want to parse the xml file which i store in my assets folder and want to show the data in list, i tried this using datasource but it is not working.
Can somebody please provide code for this.
My xml is in this format:
<CountryListResponse xmlns="......">
<Countries>
<Country>
<CountryCode>AF</CountryCode>
<CountryID>1</CountryID>
<CountryName>Afghanistan</CountryName>
<Languages i:nil="true"/>
</Country>
<Country>
<CountryCode>IN</CountryCode>
<CountryID>2</CountryID>
<CountryName>India</CountryName>
<Languages i:nil="true"/>
</Country>
</Countries>
</CountryListResponse>
Plese someone provide the code to parse this xml and bind it into list.
Thanks in advance.
02-05-2013 09:58 AM
This should get you on the right track.