XMLCoder Documentation

Enumeration XMLDecoder.​Data​Decoding​Strategy

public enum DataDecodingStrategy  

The strategy to use for decoding Data values.

Member Of

XMLDecoder

XMLDecoder facilitates the decoding of XML into semantic Decodable types.

Enumeration Cases

deferred​ToData

case deferredToData

Defer to Data for decoding.

base64

case base64

Decode the Data from a Base64-encoded string. This is the default strategy.

custom

case custom((_ decoder: Decoder) throws -> Data) 

Decode the Data as a custom box decoded by the given closure.