withParentEvents method
Annotates a stream of XmlEvent objects with parent events. The parent
events are thereafter accessible through XmlParented.parentEvent
.
XmlEndElementEvent are parented to their corresponding XmlStartElementEvent. Throws an XmlTagException is the nesting is invalid.
Implementation
Stream<List<XmlEvent>> withParentEvents() =>
transform(const XmlWithParentEvents());