root/ext/simplexml/examples/security.php

/* [<][>][^][v][top][bottom][index][help] */
<?php
$s = simplexml_load_file('security.xml');
echo $s->id;
$s->id = 20;
$s->asXML('security.new.xml');
?>

/* [<][>][^][v][top][bottom][index][help] */