Contents

document(withRootElement:)

Returns an Xmldocument object initialized with a given root element.

Declaration

class func document(withRootElement element: XMLElement) -> Any

Parameters

  • 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