[MarkLogic Dev General] Not able to retrive content from uri

Michael Sokolov sokolov at ifactory.com
Sat Dec 5 07:08:39 PST 2009


These are actually being executed as a single transaction: updates aren't
visible until *after* the transaction completes.  I think you could use ";"
instead of "," and get the result you're after
 
-Mike


  _____  

From: general-bounces at developer.marklogic.com
[mailto:general-bounces at developer.marklogic.com] On Behalf Of Chowdhury,
Soumadri
Sent: Saturday, December 05, 2009 8:19 AM
To: general at developer.marklogic.com
Subject: [MarkLogic Dev General] Not able to retrive content from uri



Hi,

 

I have written two consecutive FLOWR expressions like the following,

 

let $a1 := "" return (xdmp:document-insert("/demo010",<a>data</a>)),

let $a2 := "" return (fn:doc("/demo010"))

 

The problem is the 2nd line returns an empty sequence, instead of the
content of the uri "/demo010"

 

How to resolve this problem? Any idea?

 

Thanks & Regards,

Soumadri Roy

 



  _____  

Disclaimer:
-----------

"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 e-mail 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://xqzone.marklogic.com/pipermail/general/attachments/20091205/3fd105b4/attachment.html


More information about the General mailing list