View Single Post
Old 01-18-2008, 07:39 PM   #7 (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

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)
sketchMedia is offline  
Reply With Quote