Q:

Update insert to Xml by sedna via PHP

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 :(

A:

There are Sedna event logs (SEDNA_HOME/data/event*.log files). Have you checked them? Is there any error message?
Have you tried to run the same update statement via se_term (Sedna Terminal)? Try also to run doc("ADEDB")/HRSystem/Employees query to see if it returns anything at all. 
Do you have namespaces in your document?

