Classes
- XMLDecoder
-
XMLDecoder
facilitates the decoding of XML into semanticDecodable
types. - XMLEncoder
-
XMLEncoder
facilitates the encoding ofEncodable
values into XML.
Structures
- Attribute
-
Property wrapper specifying that a given property should be encoded and decoded as an XML attribute.
- Element
-
Property wrapper specifying that a given property should be encoded and decoded as an XML element.
- ElementAndAttribute
-
Property wrapper specifying that a given property should be decoded from either an XML element or an XML attribute. When encoding, the value will be present as both an attribute, and an element.
- XMLDocumentType
- XMLHeader
-
Type that allows overriding XML header during encoding. Pass a value of this type to the
encode
function ofXMLEncoder
to specify the exact value of the header you'd like to see in the encoded data. - XMLEncoder.OutputFormatting
-
The formatting of the output XML data.
Enumerations
- XMLDocumentType.External
- XMLDecoder.DateDecodingStrategy
-
The strategy to use for decoding
Date
values. - XMLDecoder.DataDecodingStrategy
-
The strategy to use for decoding
Data
values. - XMLDecoder.NonConformingFloatDecodingStrategy
-
The strategy to use for non-XML-conforming floating-point values (IEEE 754 infinity and NaN).
- XMLDecoder.KeyDecodingStrategy
-
The strategy to use for automatically changing the box of keys before decoding.
- XMLDecoder.NodeDecoding
-
A node's decoding type
- XMLDecoder.NodeDecodingStrategy
-
Set of strategies to use for encoding of nodes.
- XMLEncoder.PrettyPrintIndentation
-
The indentation to use when XML is pretty-printed.
- XMLEncoder.NodeEncoding
-
A node's encoding type. Specifies how a node will be encoded.
- XMLEncoder.DateEncodingStrategy
-
The strategy to use for encoding
Date
values. - XMLEncoder.StringEncodingStrategy
-
The strategy to use for encoding
String
values. - XMLEncoder.DataEncodingStrategy
-
The strategy to use for encoding
Data
values. - XMLEncoder.NonConformingFloatEncodingStrategy
-
The strategy to use for non-XML-conforming floating-point values (IEEE 754 infinity and NaN).
- XMLEncoder.KeyEncodingStrategy
-
The strategy to use for automatically changing the value of keys before encoding.
- XMLEncoder.NodeEncodingStrategy
-
Set of strategies to use for encoding of nodes.
Protocols
- XMLDecodableSequence
-
Type-erased protocol helper for a metatype check in generic
decode
overload. If you custom sequence type is not decoded correctly, try making it confirm toXMLDecodableSequence
. Default conformances forArray
andDictionary
are already provided by the XMLCoder library. - XMLChoiceCodingKey
-
An empty marker protocol that can be used in place of
CodingKey
. It must be used when attempting to encode and decode union-type–like enums with associated values to and fromXML
choice elements. - DynamicNodeDecoding
-
Allows conforming types to specify how its properties will be decoded.
- DynamicNodeEncoding
-
Allows conforming types to specify how its properties will be encoded.
Extensions
- Array