Conversion Module

This XQuery Module contains functions to convert data between different formats.

=Conventions=

All functions and errors in this module are assigned to the  namespace, which is statically bound to the convert prefix.

=Strings=

convert:string-to-hex
=Binary Data=

convert:binary-to-bytes
=Numbers=

convert:integer-from-base
=Dates and Durations=

convert:dayTime-to-integer
=Errors=

=Changelog=


 * Version 9.0


 * Added: convert:binary-to-integers.
 * Updated: convert:integers-to-base64, convert:integers-to-hex: Renamed from convert:bytes-to-base64; argument type relaxed from xs:byte to xs:integer.
 * Updated: error codes updated; errors now use the module namespace


 * Version 8.5


 * Updated: convert:binary-to-string:  argument added.


 * Version 7.5


 * Added: convert:integer-to-dateTime, convert:dateTime-to-integer, convert:integer-to-dayTime, convert:dayTime-to-integer.

The module was introduced with Version 7.3. Some of the functions have been adopted from the obsolete Utility Module.