I'm trying to insert new item to Xml file with this code
$conn = sedna_connect($host,$database,$user,$password);
$path = dirname(__FILE__) . '/ADEDB.xml';
$file = file_get_contents($path);
sedna_load($file, 'ADEDB');
sedna_tweak_opt(SE_OPTID_AUTOCOMMIT, false);
sedna_transact_begin();
sedna_execute('
UPDATE insert
<Employee id="3">
<name>Louay Hamada</name>
<bday>21/01/1986</bday>
<reg>Homs</reg>
<adrs>Mazzeh</adrs>
</Employee>
into doc("ADEDB")/HRSystem/Employees
');
sedna_transact_commit();
sedna_tweak_opt(SE_OPTID_AUTOCOMMIT, true);
I know that my code would be worng, but I'm not found any document or examples that helps me to pass this problem :(