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