Let's give an example of the code:
Code: Select all
<?php
if (file_exists('1.xml')) {
$xml = simplexml_load_file('1.xml');
} else {
exit('Error al abrir test.xml.');
}
[b] [size=200]$xml->z[x] = 'y'; [/size][/b]
echo $xml->asXML();
$xml->saveXML('1.xml'); // save as file
?>How is it done?
Any ideas? examples?
Thanks! =D
PS.- Sorry! I didn't noticed the PHP - Code Section... xD