XMLMap
public class XMLMap : Sequence, IteratorProtocol
A map of XML document path keys and metadata needed to convert an XML payload into a JSON payload.
-
Declaration
Swift
public typealias Element = (String, XMLMetadata)
-
Initialize directly with paths and values
Declaration
Swift
public init(_ existingValues: [String : XMLMetadata])
-
Generate XML map for PagedCollection types.
Declaration
Swift
public init(withPagedCodingKeys codingKeys: PagedCodingKeys, innerType: XMLModel.Type)
-
Declaration
Swift
public func next() -> (String, XMLMetadata)?
-
Accept a dot-separated path to get to XML properties. Returns nil if at any point a sub-key is not found.
Declaration
Swift
public subscript(index: String) -> XMLMetadata? { get set }