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

XMLEncoder facilitates the encoding of Encodable values into XML.

Enumeration Cases

`throw`

case `throw`

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

convert​ToString

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

Encode the values using the given representation strings.