XMLCoder Documentation

Structure XMLHeader

public struct XMLHeader  

Type that allows overriding XML header during encoding. Pass a value of this type to the encode function of XMLEncoder to specify the exact value of the header you'd like to see in the encoded data.

Initializers

init(version:​encoding:​standalone:​)

public init(version: Double? = nil, encoding: String? = nil, standalone: String? = nil)  

Properties

version

public let version: Double? 

The XML standard that the produced document conforms to.

encoding

public let encoding: String? 

The encoding standard used to represent the characters in the produced document.

standalone

public let standalone: String? 

Indicates whether a document relies on information from an external source.