ancestors property

Iterable<XmlNode> ancestors

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

Implementation

Iterable<XmlNode> get ancestors => XmlAncestorsIterable(this);