document(withRootElement:)
Returns an Xmldocument object initialized with a given root element.
Declaration
class func document(withRootElement element: XMLElement) -> AnyParameters
- element:
An Xmlelement object representing an element.
Return Value
An NSXMLDocument object initialized with the root element element or nil if the object couldn’t be created.
See Also
Creating and Initializing Node Objects
init(kind:)init(kind:options:)document()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:)