selectSubtreeEvents method

Stream<List<XmlEvent>> selectSubtreeEvents(
  1. Predicate<XmlStartElementEvent> predicate
)

From a sequence of XmlEvent objects filter the event sequences that form sub-trees for which predicate returns true.

Implementation

Stream<List<XmlEvent>> selectSubtreeEvents(
        Predicate<XmlStartElementEvent> predicate) =>
    transform(XmlSubtreeSelector(predicate));