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
Saxon availability
Available whether or not support for XPath 3.0 is enabled. Implemented since Saxon 9.5. Requires Saxon-PE or Saxon-EE.