users@jersey.java.net

XSD validation during unmarshalling

From: Andrew Cole <andrew_at_9summer.com>
Date: Thu, 3 Jul 2008 16:05:14 -0700

Hi all

I'm using Jersey 0.7 and have a number of methods that accept objects
unmarshalled from XML via JAXB bindings. It does not appear that the
unmarshalling process is validating the XML against the schema used to
create the JAXB bindings. For instance, I have a pattern restriction on a
string element that is not being respected, and I can leave out elements
that have a minOccurs of 1. How can I configure the unmarshaller to
validate against my schema?

Thanks,
Andrew