saxon:string-to-hexBinary
Encodes a string to an xs:hexBinary
value, using a given encoding.
string-to-hexBinary($in as xs:string?, $encoding as xs:string) ➔ xs:hexBinary?
Arguments | |||
| $in | xs:string? | The input string |
| $encoding | xs:string | The encoding of the input string |
Result | xs:hexBinary? |
Namespace
http://saxon.sf.net/
Saxon availability
Requires Saxon-PE or Saxon-EE.
Notes on the Saxon implementation
Available since Saxon 8.4.
Details
This function takes as input a string and the name of a character encoding (for example
UTF8
). It encodes the contents of the string value as a sequence of bytes
using a particular encoding, and returns the xs:hexBinary
representation of
this sequence of bytes.