expath-file:write-text-lines

Writes the contents of a file as a sequence of strings, separated by newlines.

write-text-lines($file as xs:string, $values as xs:string*) ➔ xs:string

Arguments

 

$file

xs:string

The file to be written to

 

$values

xs:string*

The strings to be written

Result

xs:string

write-text-lines($file as xs:string, $values as xs:string*, $encoding as xs:string) ➔ xs:string

Arguments

 

$file

xs:string

The file to be written to

 

$values

xs:string*

The strings to be written

 

$encoding

xs:string

Character encoding

Result

xs:string

Details

Namespace: http://expath.org/ns/file

Notes on the Saxon implementation

Implemented since Saxon 9.5; available whether or not support for XPath 3.0 is enabled