wiedkla wrote:
> Hi,
>
> (from the JAXB API javadoc as shipped with JAXB 2)
>
> On-Demand Validation
> "This form of validation enables a client application to receive information
> about
> validation errors and warnings detected in the Java content tree. At any
> point, client
> applications can call the Validator.validate method on the Java content tree
> (or any
> sub-tree of it). All JAXB Providers are required to support this operation."
>
> However: Validator.validate is deprecated and throws an exception!
>
> How can this be done with JAXB 2?
You can validate as a part of the marshalling by using
Marshaller.setSchema().
> Btw. There is a project for istack-commons.jar at dev.java.net, but no
> download link. Any idea?
It's meant for this project and
http://jax-ws.dev.java.net/ project, and
not really for anyone else. Which aspect of istack-commons are you
interested?
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com