tags:

views:

86

answers:

1

JAXB version 1 spec have a Validator object, in version 2 Validator object was depricated and optional. What i need to use instead Validator object?

Thanks!

+3  A: 

In JAXB 2.0, the setValidating() method has been deprecated. Now, schema validation is performed using the JAXP 1.3 validation API. To validate using JAXB 2.0, create a SchemaFactory

For an example see the Validator Section here

stacker