views:

16

answers:

0

Hi, I have a problem about xml parsing.

I parsed an xml that holds gas stations information. Each station has city, county, name and location informations.

First, I add city names array in my table view.

Question 1= When user selects a city name, How can I get county's in that city from my xml. (I don't want to get more than one county name, like distinct operation in sql)

Question 2: After that I want to select a county than it gives me names of all gas stations in that county and When I select a gas station, I wanted it's location information to show it's location on map. If I learn first operation, I think I accomplish others.

Please help me to solve these questions.

Thank you.