Hi, I've been using this PHP code to retrieve external RSS feeds. $doc = new DOMDocument(); $doc->load($feedurl); $arrFeeds = array(); foreach ($doc->getElementsByTagName('item') as $node) { $itemRSS = 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 ); array_push($arrFeeds, $itemRSS); } Code (markup): Rather than load an external xml file, I want to load some xml stored in variable $xml but I can't get it to work. Could anyone show me the way?? It will be much appreciated, my head is starting to hurt.
Thanks! I'm embarrassed how long I've spent on this and simple it was to acheive. You are a beautiful man!