Text of an element is a node of text() so to replace the value of an element
just reference the text() node
let $node-text := $node/text()
return
xdmp:node-replace($node-text, text {"foo"})
Gary Vidal
Media Consultant
MarkLogic Corporation
[email protected]
Phone: +1 917 576-5794
Skype: ml-garyvidal
www.marklogic.com
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
[email protected]
Sent: Wednesday, August 14, 2013 3:00 PM
To: [email protected]
Subject: General Digest, Vol 110, Issue 43
Send General mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://developer.marklogic.com/mailman/listinfo/general
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific than "Re:
Contents of General digest..."
Today's Topics:
1. Alternative for xdmp:node-replace (Singh, Gurbeer)
----------------------------------------------------------------------
Message: 1
Date: Wed, 14 Aug 2013 16:40:10 +0000
From: "Singh, Gurbeer" <[email protected]>
Subject: [MarkLogic Dev General] Alternative for xdmp:node-replace
To: "[email protected]"
<[email protected]>
Message-ID:
<[email protected]>
Content-Type: text/plain; charset="us-ascii"
Is there any inbuilt function to replace node text , or we have to use
xdmp:node-replace, I found xdmp:set but that work only for a variable not for a
node.
~Gurbeer
________________________________
NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or
views contained herein are not intended to be, and do not constitute, advice
within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and
Consumer Protection Act. If you have received this communication in error,
please destroy all electronic and paper copies and notify the sender
immediately. Mistransmission is not intended to waive confidentiality or
privilege. Morgan Stanley reserves the right, to the extent permitted under
applicable law, to monitor electronic communications. This message is subject
to terms available at the following link:
http://www.morganstanley.com/disclaimers If you cannot access these links,
please notify us by reply message and we will send the contents to you. By
messaging with Morgan Stanley you consent to the foregoing.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://developer.marklogic.com/pipermail/general/attachments/20130814/4f884d64/attachment-0001.html
------------------------------
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general
End of General Digest, Vol 110, Issue 43
****************************************
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general