Changes

Jump to navigation Jump to search
772 bytes removed ,  15:35, 8 December 2010
==Introduction==
 
With XQuery Update you can modify the content of an xml database with a huge variety of functions. There are some hints you should know:
 
# A XQuery Update query can never return a result. So you can't combine reading queries and updating queries into one query, even if they are separated with a comma.
#: Incorrect Query: <pre>for $i in 1 to 10 return $i, insert nodes <test/> into root()</pre>
# Updates of a XQuery Update query are not visible until the whole query is finished. So values generated by subqueries are not accessible in the other parts of the query. This is because XQuery Update uses a so-called [http://www.w3.org/TR/xquery-update-10/#id-processing-model pending update list] in the processing model and executes all updates at the end of the query.
# The order of XQuery Update functions in a query is irrelevant. There is a [http://www.w3.org/TR/xquery-update-10/#id-upd-apply-updates specification] which controls the execution order of the update functions.
#: <b>Example:</b>
administrator, Bureaucrats, editor, reviewer, Administrators
408

edits

Navigation menu