CMSSimplepie and Yahoo Weather
Posted: Fri Jul 02, 2010 11:11 pm
Hello, i have a problem with Yahoo weather rss feed (http://weather.yahooapis.com/forecastrss?p=PLXX0049&u=c)
I need only name of an icon (i have my own icons), and temperature, so i need capture code and temp attributes from :
how do i capture those attributes using cmssimplepie? i have no idea how to even begin.
i will be most thankful for help
I need only name of an icon (i have my own icons), and temperature, so i need capture code and temp attributes from :
Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<rss version="2.0" xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
<channel>
<item>
<yweather:condition text="Clear" code="31" temp="17" date="Fri, 02 Jul 2010 11:00 pm CEST" />
</item>
</channel>
i will be most thankful for help