XMLCoder Documentation

Enumeration XMLEncoder.​Node​Encoding​Strategy

public enum NodeEncodingStrategy  

Set of strategies to use for encoding of nodes.

Member Of

XMLEncoder

XMLEncoder facilitates the encoding of Encodable values into XML.

Enumeration Cases

deferred​ToEncoder

case deferredToEncoder

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

custom

case custom(XMLEncodingClosure) 

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