XMLCoder Documentation

Enumeration XMLEncoder.​Non​Conforming​Float​Encoding​Strategy

public enum NonConformingFloatEncodingStrategy  

The strategy to use for non-XML-conforming floating-point values (IEEE 754 infinity and NaN).

Member Of


XMLEncoder facilitates the encoding of Encodable values into XML.

Enumeration Cases


case `throw`

Throw upon encountering non-conforming values. This is the default strategy.


case convertToString(positiveInfinity: String, negativeInfinity: String, nan: String) 

Encode the values using the given representation strings.