In this answer there's an recommendation "Use a SAX (or StAX) parser and writer at the same time.". As I understand it, it should combine e.g., a org.xml.sax.XMLReader
with some XML-writer, my problem is that there seem to be many of them and none fits exactly to the XMLReader
. Ideally, I'm looking for something capable of both
- accepting the arguments as they come from
startElement
andendElement
- writing an arbitrary XML-containing string
The name of the factory class for the writer is probably sufficient for me.