I have a webservice that returns this string value:
<NewDataSet>
<Table>
<Country>Mexico</Country>
<City>Acapulco / G. Alvarez</City>
</Table>
<Table>
<Country>Mexico</Country>
<City>Aerop. Internacional Monterrey, N. L.</City>
</Table>
<Table>
<Country>Mexico</Country>
<City>Aguascalientes, Ags.</City>
</Table>
</NewDataSet>
I need to insert the City values in a database table. What I intend to do is search the entire string and everytime it detects a tag , I want to extract the value inside and then I would store each value in a List for later use.
However I have not been able to find a way to repeat the process various times on the same string.
I first tried Substring and Split with no success yet. Do you know a method that help me solve this problem? Thanks in advance.