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
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.