XMLContainerCoding
public enum XMLContainerCoding
rules for encoding/decoding containers like arrays and dictionaries.
-
default case, flat arrays and coding dictionaries like all other codable structures
Declaration
Swift
case `default`
-
case for coding arrays. where there is an enclosing xml element and each array element has name is defined by element. eg
1 2 Declaration
Swift
case array(entry: String?)
-
case for coding dictionaries where key element contains the value. Encoding like a struct or class where the keys are the variable names. This is only valid for dictionaries that have keys of type ‘String’ eg
value value2 Declaration
Swift
case structure
-
case for coding dictionaries where key and value are stored in separate elements and these can be either stored as children of the dictionary element or as children of a enclosing entry element which is then stored under the dictionary element eg
name John Smith … …Declaration
Swift
case dictionary(entry: String?, key: String, value: String)