Thanks Deepak. This also works $nodeagain/node()/text()
Regards, Pragya -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of [email protected] Sent: Monday, May 24, 2010 5:07 PM To: [email protected] Subject: General Digest, Vol 71, Issue 56 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. xdmp:unquote query (Pragya Kapoor) 2. Re: xdmp:unquote query ([email protected]) ---------------------------------------------------------------------- Message: 1 Date: Mon, 24 May 2010 16:46:13 +0530 From: Pragya Kapoor <[email protected]> Subject: [MarkLogic Dev General] xdmp:unquote query To: "[email protected]" <[email protected]> Message-ID: <619edcf9bde87d48a4ad619d8580024e0434f24...@blrkecmbx05.ad.infosys.com> Content-Type: text/plain; charset="us-ascii" Hi, When I convert a string into a node using xdmp:unquote, I am unable to fetch the text of that node using text() function. let $node := <result>abc</result> let $strnode := xdmp:quote($node) let $nodeagain := xdmp:unquote($strnode) return $nodeagain/text() The above snippet gives me no results whereas it should give me abc Any idea, what is wrong in the above code? Thanks, Pragya **************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS******** End of Disclaimer ********INFOSYS*** -------------- next part -------------- An HTML attachment was scrubbed... URL: http://developer.marklogic.com/pipermail/general/attachments/20100524/7a9e52b9/attachment-0001.html ------------------------------ Message: 2 Date: Mon, 24 May 2010 17:09:14 +0530 From: <[email protected]> Subject: Re: [MarkLogic Dev General] xdmp:unquote query To: <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset="utf-8" Hi Pragya, Mod your return to $nodeagain/result/text() Regards Deepak From: [email protected] [mailto:[email protected]] On Behalf Of Pragya Kapoor Sent: Monday, May 24, 2010 4:46 PM To: [email protected] Subject: [MarkLogic Dev General] xdmp:unquote query Hi, When I convert a string into a node using xdmp:unquote, I am unable to fetch the text of that node using text() function. let $node := <result>abc</result> let $strnode := xdmp:quote($node) let $nodeagain := xdmp:unquote($strnode) return $nodeagain/text() The above snippet gives me no results whereas it should give me abc Any idea, what is wrong in the above code? Thanks, Pragya **************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS******** End of Disclaimer ********INFOSYS*** This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://developer.marklogic.com/pipermail/general/attachments/20100524/01814051/attachment.html ------------------------------ _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general End of General Digest, Vol 71, Issue 56 *************************************** _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
