Open ClassFoundationXML5.9.0
XMLElement
class XMLElement
Superclasses
Citizens in FoundationXML
Conformances
protocol Collection
A sequence whose elements can be traversed multiple times, nondestructively, and accessed by an indexed subscript.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol NSCopying
The
NSCopying
protocol declares a method for providing functional copies of an object. The exact meaning of “copy” can vary from class to class, but a copy must be a functionally independent object with values identical to the original at the time the copy was made.protocol NSObjectProtocol
The
NSObjectProtocol
groups methods that are fundamental to all Foundation objects.protocol Sequence
A type that provides sequential, iterated access to its elements.
Members
convenience init(kind: XMLNode.Kind, options: XMLNode.Options
) convenience init(name: String
) convenience init(name: String, stringValue: String?
) init(name: String, uri: String?
) convenience init(xmlString: String
) throws var attributes: [XMLNode]?
var namespaces: [XMLNode]?
func addAttribute(XMLNode
) func addChild(XMLNode
) func addNamespace(XMLNode
) func attribute(forLocalName: String, uri: String?
) -> XMLNode? func attribute(forName: String
) -> XMLNode? func elements(forLocalName: String, uri: String?
) -> [XMLElement] func elements(forName: String
) -> [XMLElement] func insertChild(XMLNode, at: Int
) func insertChildren([XMLNode], at: Int
) func namespace(forPrefix: String
) -> XMLNode? func normalizeAdjacentTextNodesPreservingCDATA(Bool
) func removeAttribute(forName: String
) func removeChild(at: Int
) func removeNamespace(forPrefix: String
) func replaceChild(at: Int, with: XMLNode
) func resolveNamespace(forName: String
) -> XMLNode? func resolvePrefix(forNamespaceURI: String
) -> String? func setAttributesWith([String : String]
) func setChildren([XMLNode]?
)