The Streaming API for XML (StAX) allows not only parsing of XML documents but also writing XML documents to an output stream. This tip shows how client applications can use the low-level, cursor-based ...