startTag function
Wraps another matcher so it only sees XmlStartElementEvent
.
match
the matcher to wrap, such as named
Implementation
Matcher<XmlStartElementEvent> startTag([Matcher<XmlEvent>? match]) =>
((e) => e is XmlStartElementEvent && (match == null || match(e)));