bin:decode-string

Decodes binary data as a string in a given encoding.

decode-string($in as xs:base64Binary?) ➔ xs:string?

Arguments

 

$in

xs:base64Binary?

Input binary data

Result

xs:string?

decode-string($in as xs:base64Binary?, $encoding as xs:string) ➔ xs:string?

Arguments

 

$in

xs:base64Binary?

Input binary data

 

$encoding

xs:string

The encoding type to be used

Result

xs:string?

decode-string($in as xs:base64Binary?, $encoding as xs:string, $offset as xs:integer) ➔ xs:string?

Arguments

 

$in

xs:base64Binary?

Input binary data

 

$encoding

xs:string

The encoding type to be used

 

$offset

xs:integer

Offset in octets into the input data

Result

xs:string?

decode-string($in as xs:base64Binary?, $encoding as xs:string, $offset as xs:integer, $size as xs:integer) ➔ xs:string?

Arguments

 

$in

xs:base64Binary?

Input binary data

 

$encoding

xs:string

The encoding type to be used

 

$offset

xs:integer

Offset in octets into the input data

 

$size

xs:integer

Size in octets to operate over

Result

xs:string?

Namespace

http://expath.org/ns/binary

Links to specifications

EXPath Binary Module

Notes on the Saxon implementation

Supported encodings are: UTF-8, UTF-16, ISO-8859-1 and US-ASCII.