file:append-text

Appends a string to a file.

append-text($file as xs:string, $value as xs:string, $encoding as xs:string?:='UTF-8') ➔ empty-sequence()

Arguments

 

$file

xs:string

Path to file

 

$value

xs:string

String value to be written

 

$encoding

xs:string?

:= 'UTF-8'

Encoding used for string-binary conversion

Result

empty-sequence()

Namespace

http://expath.org/ns/file

Links to specifications

EXPath File Module 1.0

EXPath File Module 4.0

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.