The JAXP TransformerHandler [1] can be used to serialize a document with
SAX events. Xalan and JDK 1.4+ supports this API.

[1]
http://xerces.apache.org/xerces2-j/javadocs/api/javax/xml/transform/sax/TransformerHandler.html

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrgla...@ca.ibm.com
E-mail: mrgla...@apache.org

"Windchime" <w...@zahuta.com> wrote on 06/01/2009 12:26:19 PM:

> I have a relatively large number of objects that I would like to
> serialize as XML.  However, I don?t want to build a DOM.  Notably, a
> DOM for these objects requires a lot of memory.  Is there another
> Xerces (SAX-ish?) way to create the XML?
>
> Thanks,
>
> Windy

Reply via email to