Codice PHP:

$xml
=simplexml_load_file("il_tuo_file.xml");

$new_node=$xml->addChild('nuovonodo','valore');
$new_node->addAttribute('nuovo_attr','valore');

$xml->asXML('path/dove/salvare il file/file.xml'); 
se ti puo interessare:
http://www.cyberfox.netsons.org/blog...p?a=view&id=13