document()
Returns an empty document node.
Declaration
class func document() -> AnyReturn Value
An empty document node—that is, an XMLDocument instance without a root element or XML-declaration information (version, encoding, standalone flag). Returns nil if the object couldn’t be created.
See Also
Creating and Initializing Node Objects
init(kind:)init(kind:options:)document(withRootElement:)element(withName:)element(withName:children:attributes:)element(withName:stringValue:)element(withName:uri:)attribute(withName:stringValue:)attribute(withName:uri:stringValue:)text(withStringValue:)comment(withStringValue:)namespace(withName:stringValue:)dtdNode(withXMLString:)predefinedNamespace(forPrefix:)processingInstruction(withName:stringValue:)