JAXB: Exception thrown during Unmarshalling ! HELP !
1 posts in topic
Flat View  Flat View

Posted By:   Raja_Sarkar
Posted On:   Thursday, January 22, 2004 08:36 AM

Hi, my JAXB works fine when the input XML conforms with the schema. But sometimes the input XML contains some extra non-business related fields (populated by the client application) that are absent from my schema definitions and cannot be predicted. In such scenarios JAXB fails during unmarshalling. Is there a way round this ? I have tried Unmarshaller.setValidating( false), but still fails ! Ideally I would want the parser to ignore such fields. Do I need to write a custom EventHandler as means of a way out? Kindly suggest


Re: JAXB: Exception thrown during Unmarshalling ! HELP !

Posted By:   Christopher_Koenigsberg  
Posted On:   Friday, January 23, 2004 06:21 AM

Sounds like you need to either fix your schema, to validate the incoming documents, or fix the clients, to only generate valid documents according to the schema?

About | Sitemap | Contact