$menu=<<<_XML_
What's For Dinner
http://example.com/
choices
Feet
http://example.com
test
_XML_;
$xml = simplexml_load_string($menu);
$xml['version'] = '6.3';
$xml->channel->title = strtoupper($xml->channel->title);
for ($i = 0; $i < 3; $i++) {
$xml->channel->item[$i]->link = str_replace('menu.example.com',
'dinner.example.org', $xml->channel->item[$i]->link);
}
?>