Im trying to figure out how to edit text nodes in Sedna (with XQuery
Update) and I seem to be having problems. Unlike other databases, Sedna
doesnt come with a update value feature and inserting a string (text)
into a node doesnt seem to work... The only way I worked around this is by
replacing my node with the same node, with text; which seems pretty hackish.
Ill include examples to help explain.
----------------------------------------------------------------------------
----------
UPDATE
insert "text" into document("*.xml")//*/* (where * means any arbitrary
node.)
I receive the error
Query execution failed (SEDNA Message: ERROR SE2015 Invalid result of the
first insert argument: sequence contains atomic values ).
UPDATE
insert "text" into document("*.xml")//*/*/text() (where * means any
arbitrary node.)
Just doesnt work.
----------------------------------------------------------------------------
----------
So to work around, this is what I did...
UPDATE
replace $p in document("*.xml")//*/test (where * means any arbitrary
node.)
with <test>text<test>
----------------------------------------------------------------------------
----------
Am I missing something elementary to help me update text nodes? Because I
shouldnt be having problems with something so rudimentary.
Thanks in advance; and sorry for such a basic question. While waiting Im
going to re-read the documentation, as I may be missing something.
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Sedna-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sedna-discussion