XmlSerializer Class for SAX Events

Note to self: the nu.validator has a really handy looking SAX handler that serializes the XML.

Hat tip to Henri Sivonen for pointing this out along with a bunch of other useful XML generating tips.

2 Responses to “XmlSerializer Class for SAX Events”

  1. Jochen Wiedmann Says:

    What’s the advantage over the standard transformer handler ( http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/sax/TransformerHandler.html )


  2. Adrian Sutton Says:

    It doesn’t require creating an XSLT identity transform. I was looking for this the other day particularly so that I can parse an XML file and feed the SAX events through a pipeline of filters that might change them and finally get XML back at the end. I think I worked out a way to plug a transform handler in at the end of that in the end but I’m hoping (haven’t tried) the XmlSerializer class will be simpler to setup and not require a bunch of factories etc.

    It might pan out to be just as difficult, I’m not sure – I really just wanted to note the URL so I could look into it properly later.


Leave a Reply

(Valid OpenIDs will skip moderation)

Alternatively, subscribe to the Atom feed.