ancestorElements property

Iterable<XmlElement> ancestorElements

Return a lazy Iterable of the ancestor XmlElement nodes of this node (parent, grandparent, ...) in reverse document order.

Implementation

Iterable<XmlElement> get ancestorElements =>
    ancestors.whereType<XmlElement>();