file:write-text

Writes a strings to a file. If $file already exists, it will be overwritten.

write-text($file as xs:string, $value as xs:string) ➔ empty-sequence()

Arguments

 

$file

xs:string

Path to file

 

$value

xs:string

String value to be written

Result

empty-sequence()

write-text($file as xs:string, $value as xs:string, $encoding as xs:string) ➔ empty-sequence()

Arguments

 

$file

xs:string

Path to file

 

$value

xs:string

String value to be written

 

$encoding

xs:string

Encoding used for string-binary conversion

Result

empty-sequence()

Namespace

http://expath.org/ns/file

Links to specifications

EXPath File Module