Contents

level

Returns the nesting level of the receiver within the tree hierarchy.

Declaration

var level: Int { get }

Return Value

An integer indicating a nesting level.

Discussion

The root element of a document has a nesting level of one.

See Also

Managing XML Node Objects