Loading TOC...

MarkLogic 12 EA 1 Product Documentation
xdmp:filesystem-file

xdmp:filesystem-file(
   $pathname as xs:string
) as xs:string

Summary

Reads a file from the filesystem. The file at the specified path must be UTF-8 encoded. This function is typically used for text files; for binary files, consider using the xdmp:external-binary function.

Parameters
pathname Pathname of the file to be read.

Required Privileges

http://marklogic.com/xdmp/privileges/xdmp-filesystem-file

Example

xdmp:filesystem-file("/etc/motd")
=> contents of /etc/motd

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