Monday, March 26, 2007

JAXB

In jaxb 2.0 we can carry out validations before marshalling and after unmarshalling.
This is in contrast with jaxb 1.0 , where validations are performed only after marshalling.

In jaxb 2.0 we can have an event handler registered with the marshaller/unmarshaller.
So in case while marshalling, any parsing errors comes that are handled using this event handler. So u may decide to write the xml even if it has error in it.

http://java.sun.com/developer/EJTechTips/2006/tt0128.html

No comments: