Changes

Jump to navigation Jump to search
895 bytes added ,  17:22, 27 May 2012
| '''Errors'''
|{{Error|BXCO0001|#Errors}} The input is an invalid XML string, or the wrong encoding has been specified.<br/>{{Error|BXCO0002|#Errors}} The specified encoding is invalid or not supported.
|-
| '''Examples'''
|
* {{Code|convert:to-string(xs:hexBinary('48656c6c6f576f726c64'))}} returns the string {{Code|HelloWorld}}.
|}
 
==convert:to-base64==
{|
|-
| width='90' | '''Signatures'''
|{{Func|convert:to-base64|$input as xs:string|xs:base64Binary}}<br/>{{Func|convert:to-base64|$input as xs:string, $encoding as xs:string|xs:base64Binary}}
|-
| '''Summary'''
|Converts the specified string to a {{Code|xs:base64Binary}}} item. If the default encoding is chosen, conversion will be very cheap in BaseX, as both {{Code|xs:string}} and {{Code|xs:base64Binary}} items are internally mapped to byte arrays.<br/>The UTF-8 default encoding can be overwritten with the optional {{Code|$encoding}} argument.
|-
| '''Errors'''
|{{Error|BXCO0001|#Errors}} The input cannot be represented in the specified encoding.<br/>{{Error|BXCO0002|#Errors}} The specified encoding is invalid or not supported.
|-
| '''Examples'''
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu