users@jaxb.java.net

Unmarshal validation from annotations

From: Mitch Claborn <mitch_at_claborn.net>
Date: Mon, 15 Oct 2007 09:39:24 -0500

JAXB 2.1 ri20070917

Looks like the way to unmarshal with validation in 2.1 is the
unmarshaller.setSchema() method. How do I get a schema from my annontated
classes to pass to this method?

E.G. I want the required=true in the following to be enforced:

@XmlElement(required=true, name="page")




Mitch Claborn
mitch_at_claborn.net