Converts a binary value to a string, given its encoding.
hexBinary-to-string($input as xs:hexBinary?, $encoding as xs:string) ➔ xs:string?
The binary input value
The character encoding
Requires Saxon-PE or Saxon-EE.
Notes on the Saxon implementation
Available since Saxon 8.5.
This function takes as input an
xs:hexBinary value and the name of a
character encoding (for example
UTF8). It interprets the contents of the
hexBinary value as a sequence of bytes representing a character string in a particular
encoding, and returns the corresponding string.
If the first argument is an empty sequence, the function returns an empty sequence.