W3C home > Mailing lists > Public > xmlschema-dev@w3.org > May 2011

Re: Perform XML Schema validation at run-time?

From: Noah Mendelsohn <nrm@arcanedomain.com>
Date: Tue, 17 May 2011 15:40:54 -0400
Message-ID: <4DD2CF46.30201@arcanedomain.com>
To: Michael Glavassevich <mrglavas@ca.ibm.com>
CC: "G. Ken Holman" <gkholman@CraneSoftwrights.com>, "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>


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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 17 May 2011 19:41:19 GMT