users@jaxb.java.net

JAXB Validation without a Schema

From: Shelley <randomshelley_at_gmail.com>
Date: Mon, 30 Jul 2007 15:17:03 -0500

Part of the benefit of JAXB is that a schema is not required; annotating
Java classes alone allows for XML serialization/deserialization. With the
deprecation of the Unmarshaller.setValidating() in favor of the
unmarshaller.setSchema() method, however, it seems that validation is only
available when an XSD is present. Is there another way to validate XML
during unmarshalling without a physical schema file?