Create an XMLSplitter using the given matcher to determine where sub-streams start and end.
Create an XMLSplitter using the given matcher to determine where sub-streams start and end.
For example, XMLSplitter(* \ "foo"), when applied to the xml:
<elem> <foo>hello</foo> <foo>goodbye</foo> </elem>
would identify the first and second <foo> elements as separate substreams, each containing
the events StartElement("foo"), Text("hello"), EndElement("foo"), and
StartElement("foo"), Text("goodbye"), EndElement("foo") respectively.
Any context matched by the matcher will be passed through the joiner functions if you
call as, map, or flatMap on the resulting splitter, and thus the matched context
can be used to decide how you parse each sub-stream.
The type of the "context" matched by the matcher
A ContextMatcher used to identify where each sub-stream begins and ends, and extracts some context value to identify each sub-stream.
A new XMLSplitter that will split a stream into sub-streams identified by the matcher