Re: Perform XML Schema validation at run-time?

On 5/16/2011 7:25 PM, Michael Glavassevich wrote:
> If you don't want invalid documents to be accepted quietly you can register
> a schema (not necessarily XML Schema; could also be Relax NG, Schematron or
> something else) and if you want you can force JAXB to fail if an error is
> reported by the validator or respond in some other way with the error
> handler you've registered.

OK, so there's the example Roger asked for, a widely deployed commercial 
system that provides for runtime validation. As you'd expect, this happens 
when the user turns it on, I.e. by flipping the "fail on validation error" 
switch.

How widely used that switch is in production, I don't know.

Noah

Received on Tuesday, 17 May 2011 19:41:18 UTC