Sanjay,

Did you try using xdmp:document-get() and xdmp:document-insert(),

let $doc := xdmp:document-get($loc)
return xdmp:document-insert($uri, $odc,$permissions.....)


Regards,
Indy

On Tue, Aug 11, 2015 at 7:20 PM, Sanjaya Keshari Dash <
[email protected]> wrote:

> Hi All,
>
>
>
> we have ML Server Enterprise Edition 8.0-3 installed one of the systems in
> our network. However, It worked fine while trying to load it from the same
> system where the server is running.
>
>
>
> While trying to load a file from another system(Remote) on the same
> network, the command is not able to trace the path, which is local to the
> remote host.
>
>
>
> *XQuery:*
>
> xquery version "1.0-ml";
>
> declare namespace html = "http://www.w3.org/1999/xhtml";;
>
>
>
>
> xdmp:document-load("d:\MarkLogic\day2ExampleCodes\day2ExampleCodes\breakfast\breakfast.xml",
>
>     <options xmlns="xdmp:document-load">
>
>       <uri>/assignment/breakfast/breakfast.xml</uri>
>
>       <repair>none</repair>
>
>       <permissions>{xdmp:default-permissions()}</permissions>
>
>     </options>)
>
>
>
> Error Message:
>
>
>
> *[1.0-ml] SVC-FILOPN:
> xdmp:document-load("d:\MarkLogic\day2ExampleCodes\day2ExampleCodes\breakfast\breakfa...",
> <options
> xmlns="xdmp:document-load"><uri>/assignment/breakfast/breakfast.xml</uri><repair>none</repa...</options>)
> -- File open error: open
> 'd:\MarkLogic\day2ExampleCodes\day2ExampleCodes\breakfast\breakfast.xml':
> No such file or directory*
>
> *Stack Trace*
>
> *At line 4 column 0:*
>
> In xdmp:eval("xquery version &quot;1.0-ml&quot;;&#10;declare namespace
> html = ...", (), <options
> xmlns="xdmp:eval"><database>16075890108731410617</database><modules>10812663131527...</options>)
>
> 2. declare namespace html = "http://www.w3.org/1999/xhtml";;
> 3.
> 4.
> xdmp:document-load("d:\MarkLogic\day2ExampleCodes\day2ExampleCodes\breakfast\breakfast.xml",
> 5. <options xmlns="xdmp:document-load">
> 6. <uri>/assignment/breakfast/breakfast.xml</uri>
>
> Please advise on the resolution if possible.
>
>
>
> thanks
>
> _ sanjaya
>
> **************** 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***
>
>
> _______________________________________________
> General mailing list
> [email protected]
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to