findAllElements method
Return a lazy Iterable of the recursive child elements in document
order with the specified tag name.
Both name and namespace can be set to a specific String or '*' to
match anything. If no namespace is provided, the fully qualified name
will be matched, otherwise only the local name is compared.
For example:
document.findAllElements('xsd:annotation')finds all elements with the fully qualified tag namexsd:annotation.document.findAllElements('annotation', namespace: '*')finds all elements with the local tag nameannotationno matter their namespace.document.findAllElements('*', namespace: 'http://www.w3.org/2001/XMLSchema')finds all elements with the given namespace URI.
Implementation
Iterable<XmlElement> findAllElements(String name, {String? namespace}) =>
filterElements(descendants, name, namespace);