Windchime wrote:
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?
I'd recommend using XMLEventWriter or XMLStreamWriter. These API's are included in java 1.6 but you can get hold of them separately. The good thing about this is it abstracts away from what you're actually writing to. It can write to a stream or a DOM document or whatever. Being able to write to a DOM might still be useful (e.g. in tests).
Chris Simmons. --------------------------------------------------------------------- To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org For additional commands, e-mail: j-users-h...@xerces.apache.org