nodes property

Iterable<XmlNode> nodes

Return a lazy Iterable of the direct descendants of this XmlNode (attributes, children) in document order.

Implementation

Iterable<XmlNode> get nodes => [attributes, children].expand((each) => each);