I am developing a weather forecast of the current weather and weather forecast for my schools website. For this I will be using Yahoos RSS weather forecast. In this XML file there are some values stored in attributes. I would like to get those out with PHP. The file can be found here: http://weather.yahooapis.com/forecastrss?w=12602818&u=c
The XML file states the folowing line:
<rss xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0">
The value I would like to get out is the following:
<yweather:condition text="Partly Cloudy" code="30" temp="22" date="Wed, 12 Jun 2013 4:20 pm CEST"/>
I would, for example, like to receive 'temp' from this yweather:condition. Can anybody instruct me how this could be done with PHP?