у меня есть этот код
require('magpierss/rss_fetch.inc');
$url = 'http://weather.yahooapis.com/forecastrss?p=AUXX0013'
$rss = fetch_rss($url);
$title = $rss->items[0]['title'];
$description = $rss->items[0]['description'];
Как взять данные, например (code="33" ) из этой части xml
<yweather:forecast day="Thu" date="25 Sep 2014" low="43" high="57" text="Mostly Clear" code="33"/>