01-18-2008, 07:39 PM
|
#7 (permalink)
|
|
The Prestige
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
|
yes, load an xmlfile into the dom as robertk says, it does most of the hard work for you :)
PHP Code:
$dom = DomDocument(); $dom->loadXML('xmlfile');
at the moment its creating a new xml document then saving it over you old one, instead you need to tell it you have an exsiting tree and that you want to append changes to it, not create a new xml doc.
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
|
|
|
|