file:read-text
Returns the content of a file as a string.
read-text($file as xs:string, $options as (xs:string | map(*))?:=()) ➔ xs:string
Arguments | ||||
| $file | xs:string | Path to file | |
| $options | (xs:string | map(*))? | := () | Options for reading the file. In EXPath 1.0, the argument is a string, providing the encoding to be used for string-binary conversion. From Saxon 13.0, in EXPath 4.0 a map can be provided. |
Result | xs:string | |||
Namespace
http://expath.org/ns/file
Links to specifications
Saxon availability
Available in XPath 2.0 and later versions. Implemented since Saxon 9.5. Requires Saxon-PE or Saxon-EE. Available for all platforms.