function additemstring2rssfile($itemstring) { $newxml = new DOMDocument(); $newxml->loadXML($itemstring); $newitem = $newxml->getElementsByTagName("item")->item(0); error_log("DEBUG: new item to add to RSS file: " . $newitem->nodeValue); SMOBTools::additem2rssfile($newitem); }