Open ClassFoundationXML5.9.0
XMLDocument
class XMLDocument
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(
) convenience init(contentsOf: URL, options: XMLNode.Options
) throws init(data: Data, options: XMLNode.Options
) throws init(rootElement: XMLElement?
) convenience init(xmlString: String, options: XMLNode.Options
) throws var characterEncoding: String?
var childCount: Int
var documentContentKind: XMLDocument.ContentKind
var dtd: XMLDTD?
var isStandalone: Bool
var mimeType: String?
var version: String?
var xmlData: Data
func addChild(XMLNode
) func insertChild(XMLNode, at: Int
) func insertChildren([XMLNode], at: Int
) func removeChild(at: Int
) func replaceChild(at: Int, with: XMLNode
) func rootElement(
) -> XMLElement? func setChildren([XMLNode]?
) func setRootElement(XMLElement
) func validate(
) throws func xmlData(options: XMLNode.Options
) -> Data enum ContentKind