02-06-2008, 08:17 PM
|
#9 (permalink)
|
|
The Prestige
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
|
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)
|
|
|
|