named function

Matcher<XmlEvent> named(
  1. String desiredName
)

Matches tags with the provided qualified name.

desiredName the fully qualified name, including namespace prefix if needed (e.g. foo:bar)

Implementation

Matcher named(String desiredName) =>
    ((e) => e is XmlNamed && (e as XmlNamed).qualifiedName == desiredName);