saxon:hexBinary-to-string
Converts a binary value to a string, given its encoding.
hexBinary-to-string($input as xs:hexBinary?, $encoding as xs:string) ➔ xs:string?
Arguments | |||
| $input | xs:hexBinary? | The binary input value |
| $encoding | xs:string | The character encoding |
Result | xs:string? |
Namespace
http://saxon.sf.net/
Saxon availability
Requires Saxon-PE or Saxon-EE.
Notes on the Saxon implementation
Available since Saxon 8.5.
Details
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.