Contents

rootDocument

Returns the Xmldocument object containing the root element and representing the XML document as a whole.

Declaration

var rootDocument: XMLDocument? { get }

Discussion

If the receiver is a standalone node (that is, a node at the head of a detached branch of the tree), this method returns nil.

See Also

Navigating the Tree of Nodes