[xquery-talk] XQuery Update: replacing element content with a
sequence of nodes
andrew.j.welch at gmail.com
Thu Apr 14 16:28:17 PDT 2011
> Andrew's solution works unless your system relies on the identity of the
> parent element. If you have external references to a node, e.g. in some API,
> then replacing it in this way may not be visible via the external reference.
> I could imagine a future version of XQuery Update that supports this use
> case directly, e.g.
> replace content of node parent
> with (<one/><two/>)
> I'm not married to this syntax, but it's analogous to the existing "replace
> value of node".
well I guess a combination of delete and insert is the alternative
that keeps the parent node (delete all child nodes, insert new nodes)
More information about the talk