Should be easy and obvious but I cant find a way - the XMLOutputFactory
accepts anly OutputStream
, Result
or another Writer
to generate a new XMLStreamWriter
.
What I have at hand is an XMLStreamReader
which has no methods for extracting a Result
or an OutputStream
.
If the solution would be easier using the Event API, that would be OK too.
Thank you