This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
The Castor Marshaller class is used to map a Java object structure into an XML document. However, it can take an org.xml.sax.ContentHandler either in its contructor, or in its marshal method. My question is, what does this ContentHandler do? ContentHandlers process events generated from parsing an XML document. How are they relevant to creating the document?
I'm interested because we are using Castor to create XML messages based on an object structure. However the objects structures are becoming too big to store whole in core memory. We are looking into a way we can read objects and output XML in a streaming way. Combining Castor Marshalling with SAX seems like a good approach, but I just can't figure out how it would work. [ June 08, 2006: Message edited by: Greg Charles ]
subject: Castor Marshaller and SAX Content Handler