« Return to Thread: Can JAXB Unmarshaller be configured to fail on missing xsi:type-binding?

Re: Can JAXB Unmarshaller be configured to fail on missing xsi:type-binding?

by metro-3 :: Rate this Message:

Reply to Author | View in Thread

Hi Glen,

thanks for your answer.

> Can you make the base type abstract in your XSD and see if you get error messages that way?

If I remember correctly, an abstract base type would indeed lead to an exception (which would be OK for me). Unfortunately, I cannot change the schema, and the base type is not defined abstract. This was done because the base type is sufficient for the default case. We have a lot of xml documents for the default case. They are not generated, thus 'xsi:type'-attribute definitions have been avoided to reduce complexity and gain readability.
[Message sent by forum member 'ck1' (ck1)]

http://forums.java.net/jive/thread.jspa?messageID=354592

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

 « Return to Thread: Can JAXB Unmarshaller be configured to fail on missing xsi:type-binding?