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.
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general