How, why, when and where... creating a schema out of my jaxb annotated classes

Posted by ekeren on Stack Overflow See other posts from Stack Overflow or by ekeren
Published on 2010-04-09T00:37:21Z Indexed on 2010/04/09 0:43 UTC
Read the original article Hit count: 412

Filed under:
|

I have jaxb annotated classes and I want to unmarshal them and use the setSchema for validation.

I have a two questions:

  1. Do I have to create the schema at "build time" using ant or can I just ad-hock create them for validation when needed.
  2. Where do you put your schema files?
  3. is there another reason but validation to create a schema if I prefer writing my class first?

© Stack Overflow or respective owner

Related posts about jaxb

Related posts about java