XMLCoder Documentation

Enumeration XMLDecoder.​Node​Decoding​Strategy

public enum NodeDecodingStrategy  

Set of strategies to use for encoding of nodes.

Member Of


XMLDecoder facilitates the decoding of XML into semantic Decodable types.

Enumeration Cases


case deferredToDecoder

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


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

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