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.
Returns the nesting level of the receiver within the tree hierarchy.
var level: Int { get }An integer indicating a nesting level.
The root element of a document has a nesting level of one.