View Single Post
Old 02-06-2008, 08:17 PM   #9 (permalink)
sketchMedia
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

PHP Code:
$rss $dom->getElementsByTagName('rss')->item(0); 
use that to get your root node within your existing XML, then append changes to it, like in my previous post.

you also need the new keyword:
PHP Code:
$dom DomDocument(); 
Should be:
PHP Code:
$dom = new DomDocument(); 
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote