XMLCoder Documentation

Enumeration XMLDecoder.​Node​Decoding​Strategy

public enum NodeDecodingStrategy  

Set of strategies to use for encoding of nodes.

Member Of

XMLDecoder

XMLDecoder facilitates the decoding of XML into semantic Decodable types.

Enumeration Cases

deferred​ToDecoder

case deferredToDecoder

Defer to Encoder for choosing an encoding. This is the default strategy.

custom

case custom((Decodable.Type, Decoder) -> ((CodingKey) -> NodeDecoding)) 

Return a closure computing the desired node encoding for the value by its coding key.