ToXMLSAXHandler
This class receives notification of SAX-like events, and with gathered
information over these calls it will invoke the equivalent SAX methods
on a handler, the ultimate xsl:output method is known to be "xml".

class

ToXMLStream
This class converts SAX or SAX-like calls to a
serialized xml document.