users@jaxb.java.net

SAX-like JAXB?

From: Henning Storhaug <Henning.Storhaug_at_fundator.no>
Date: Thu, 15 Jun 2006 10:17:00 +0200

Hi,
 
I must write a xml parser that reads records and process them individually due to memory constraints. I cannot read the whole file into memory. Second, the schema is complex so I'd like the binding and unmarshalling benefits of JAXB.
 
Can I have the event-based workings of SAX and the unmarshalling of JAXB work together? What I need is either some callback mechanism from JAXB when certain entities are unmarshalled and have JAXB forget about the processed entities, or some way to break up the file and forward the bits and pieces to the unmarshaller.
 
Can you give me some pointers to what I'm looking for?
 
Regards,
Henning Storhaug