Thank you, Christian.I expected it to be that easy.
From: Christian Grün christian.gruen@gmail.com To: mark bordelon markcbordelon@yahoo.com Cc: BaseX basex-talk@mailman.uni-konstanz.de Sent: Tuesday, March 14, 2017 1:45 PM Subject: Re: [basex-talk] XQUERY UPDATE question
Just use "replace node" instead of "replace value of node". Feel free to check out our documentation, it contains more information.
Am 14.03.2017 18:42 schrieb "mark bordelon" markcbordelon@yahoo.com:
Guten Tag, die Herren! I have a question about how I can insert, replace a node with a DOM node, instead of the text of that node. Right now when I 1) execute from the basex shell this command: xquery replace value of node /text//sent[@id=15] with <sent id=15><clause><word/><word/>< word/></clause></sent>
2) and then look at that node again with xquery /text//sent[@id=15]i see that the dom has been converted into a text node of <sent id=15><clause>< word/><word/>< word/></clause></ sent> How can I replace with true DOM and not have it convert to text?