Hi guys
I need a quick lesson on grabbing data from XML...
I need to get the XML from a URL e.g:
http://www.website.com/pathtoxml/?city=xxxxxxxx
here's an example of the XML:
Code:
<current_conditions>
<condition data="Clear"/>
<temp_f data="54"/>
<temp_c data="12"/>
<humidity data="Humidity: 77%"/>
<icon data="sunny.gif"/>
<wind_condition data="Wind: S at 6 mph"/>
</current_conditions>
<forecast_conditions>
<day_of_week data="Thu"/>
<low data="43"/>
<high data="70"/>
<icon data="sunny.gif"/>
<condition data="Clear"/>
</forecast_conditions>
<forecast_conditions>
<day_of_week data="Fri"/>
<low data="46"/>
<high data="63"/>
<icon data="chance_of_rain.gif"/>
<condition data="Chance of Rain"/>
</forecast_conditions>
Whats the easiest way to grab the "temp_c" from inside <current_conditions>
Thanks guys!