1 2 3 4 5 6
<?php $s = simplexml_load_file('security.xml'); echo $s->id; $s->id = 20; $s->asXML('security.new.xml'); ?>