I have this code here but it is giving me an error on the \[code\]getAttributes\[/code\] line and I cant for the life of me figure out why.This is the error message I get:\[quote\] Fatal error: Call to a member function getAttribute() on a non-object in /Applications/MAMP/htdocs/blogDepot/application/pages/myBlogs/index.php on line 58\[/quote\]\[code\]<?php$rss = new DOMDocument();$rss->load('http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/uk/rss.xml');$feed = array();foreach ($rss->getElementsByTagName('item') as $node) { $item = array ( 'title' => $node->getElementsByTagName('title')->item(0)->nodeValue, 'desc' => $node->getElementsByTagName('description')->item(0)->nodeValue, 'link' => $node->getElementsByTagName('link')->item(0)->nodeValue, 'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue, 'image' => $node->getElementsByTagName('thumbnail')->item(0)->getAttribute('url') ); array_push($feed, $item);}?>\[/code\]