views:

46

answers:

0

I'm developping an iphone application which uses google weather api to forecast the weather. The webservice is giving me data in the following format:-

<?xml version="1.0"?>
<xml_api_reply version="1">
<weather module_id="0" tab_id="0" mobile_row="0" mobile_zipped="1" row="0" section="0" >
    <forecast_information>
        <city data="Kolkata, West Bengal"/>
        <postal_code data="Kolkata"/>
        <latitude_e6 data=""/>
        <longitude_e6 data=""/>
        <forecast_date data="2010-04-28"/>
        <current_date_time data="2010-04-28 10:20:00 +0000"/>
        <unit_system data="US"/>
    </forecast_information>
    <current_conditions
        ><condition data="Haze"/>
        <temp_f data="97"/>
        <temp_c data="36"/>
        <humidity data="Humidity: 53%"/>
        <icon data="/ig/images/weather/haze.gif"/>
        <wind_condition data="Wind: S at 12 mph"/>
    </current_conditions>
    <forecast_conditions>
        <day_of_week data="Wed"/>
        <low data="82"/>
        <high data="91"/>
        <icon data="/ig/images/weather/chance_of_rain.gif"/>
        <condition data="Chance of Rain"/>
    </forecast_conditions>
    <forecast_conditions>
        <day_of_week data="Thu"/>
        <low data="82"/>
        <high data="96"/>
        <icon data="/ig/images/weather/rain.gif"/>
        <condition data="Rain"/>
    </forecast_conditions>
    <forecast_conditions>
        <day_of_week data="Fri"/>
        <low data="82"/>
        <high data="96"/>
        <icon data="/ig/images/weather/sunny.gif"/>
        <condition data="Clear"/>
    </forecast_conditions>
    <forecast_conditions>
        <day_of_week data="Sat"/>
        <low data="78"/>
        <high data="98"/>
        <icon data="/ig/images/weather/mostly_sunny.gif"/>
        <condition data="Mostly Sunny"/>
    </forecast_conditions>
</weather>

As I'm new to iPhone development so i'm facing problem while reading this using xmlparser. Please help me out of this problem. Looking forward to your valuable reply.

Thanks in advance..