Indeed, I managed to insert elements using se_term, so the problem must come
from the API.

Thank you for your help.


2011/4/15 Ivan Shcheklein <[email protected]>

> Can't run it either. I'll will write Charles Foster (author of the XQJ
> driver) that something is broken in current beta.
>
>
>> I have don another test: I wrote the query in a text file and executed it
>> with se_term. It told me the update was successful. After that I tried the
>> following query : for $x in doc('Hosts') return $x
>> I only get this line of output though : <?xml version="1.0"
>> standalone="yes"?>
>>
>
> That's because by default created document is empty. There is no 'Hosts'
> element inside. So doc('Hosts')/Hosts returns empty sequence. To create
> document with Hosts root element run:
>
> create document 'Hosts'
>
> update insert </Hosts> into doc('Hosts')
>
> After that you will be able to insert Host elements inside Hosts.
>
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Sedna-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sedna-discussion

Reply via email to