Loading TOC...

MarkLogic 10 Product Documentation
infodev:get-file

infodev:get-file(
   $source-location as xs:string,
   $ticket-id as xs:string,
   $policy-deltas as element(info:options)?
) as node()

Summary

[DEPRECATED] This is a convenience function that wraps xdmp:document-get. The document specified in $source-location is bundled with other documents into a transaction, and ingested.

This function is similar to infodev:ingest, only it takes care of handling the infostudio options.

Parameters
source-location The document to be ingested.
ticket-id The ID of the ticket created by the infodev:ticket-create function.
policy-deltas An options node to be used with requests associated with this ticket. It is merged with the effective policy at runtime.

Required Privileges

http://marklogic.com/xdmp/privileges/infostudio

Example

xquery version "1.0-ml"; 

import module namespace infodev = 
   "http://marklogic.com/appservices/infostudio/dev"
   at "/MarkLogic/appservices/infostudio/infodev.xqy";

infodev:get-file("/space/myfile.xml", infodev:ticket-create(), ())  
 
    

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.