Possible Duplicate:
Parsing XML data to NSMutableArray iOS – iPhone
<ForecastResult>
<Forecast>
<Date>2012-06-27T00:00:00</Date>
<WeatherID>4</WeatherID>
<Desciption>Sunny</Desciption>
<Temperatures>
<MorningLow/>
<DaytimeHigh>100</DaytimeHigh>
</Temperatures>
<ProbabilityOfPrecipiation>
<Nighttime/>
<Daytime>00</Daytime>
</ProbabilityOfPrecipiation>
</Forecast>
<Forecast>
<Date>2012-06-28T00:00:00</Date>
<WeatherID>4</WeatherID>
<Desciption>Sunny</Desciption>
<Temperatures>
<MorningLow>74</MorningLow>
<DaytimeHigh>95</DaytimeHigh>
</Temperatures>
<ProbabilityOfPrecipiation>
<Nighttime>10</Nighttime>
<Daytime>00</Daytime>
</ProbabilityOfPrecipiation>
</Forecast>
The above is my XML file and i want to read Date and DaytimeHigh into NSMuttableArray. I am using NSXML parser .
You were asking about
categListin the question I said was a duplicate. You shouldn’t focus on the question, but rather the answer. The answer in that question suggests that you use XMLReader, which allows for easy XML parsing into NSDictionary objects. Then you could pass the dictionary objects into an NSArray. For detailed instructions on how to use XMLReader, go to the linked page above. Here’s how you would pass the NSDictionary values n an NSMutableArray:Hope this helps!