Need help in displaying xml in table view

Joined
Jan 22, 2013
Messages
1
Reaction score
0
Points
1
I'm currently developing an app for a company. It would display all their subsidiaries in a certain country. But i'm having problems when there are 2 or more subsidiaries in one country i am just able to display one subsidiary.

here is my xml

<?xml version="1.0" encoding="UTF-8"?>
<countries>
<country>
<countryname>Philippines</countryname>
<subsidiaries>
<subsidiary>
<name id = "1">Sartorius Philippines Inc.</name>
<address>Unit 20-A The World Centre Building, 330 Senator Gil Puyat Avenue Makati 1209 City Philippines, Philippines</address>
<phone>+63.2.8640.929</phone>
<fax>+63.28640.932</fax>
<email>[email protected]</email>
<website>http://www.sartorius-mechatronics.com.ph</website>
</subsidiary>
</subsidiaries>
</country>
<country>
<countryname>Denmark</countryname>
<subsidiaries>
<subsidiary>
<name>Sartorius Stedim Nordic A|S</name>
<address>stedim Hoerskaetten 6d 2630 Taastrup, Denmark</address>
<phone>+45.7023.4400</phone>
<fax>+45.4630.4030</fax>
<email>[email protected]</email>
<website></website>
</subsidiary>
<subsidiary>
<name>Sartorius Nordic A|S</name>
<address>Hoerskaetten 6D 2630 Taastrup, Denmark</address>
<phone>+45.7023.4400</phone>
<fax>+45.4630.4030</fax>
<email>[email protected]</email>
<website></website>
</subsidiary>
</subsidiaries>
</country>
</countries>

as you can see in the country denmark, there are 2 subsidiaries. but when i display it on table view it only shows the last subsidiary, does anyone know how to deal with this? I want to display both of the subsidiary when i choose denmark
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top