[jboss-dev-forums] [Design of JBossXB] - Re: Using annotations to define schema mappings

jason.greene@jboss.com do-not-reply at jboss.com
Fri Oct 13 10:50:38 EDT 2006


"scott.stark at jboss.org" wrote : Yes, and we also need to support the ability to pickup the schema annotations from an external file. The jaxb mechanism for this has an xpath syntax where the elements that should be annotated are matched based on the expression.
  | 
  | An example from the jaxb2 spec, consider the following schema and external binding file.
  | Source Schema: A.xsd:
  | 


FYI, JAXB only uses that biding file for generating java files with annotations, it does not use them for runtime processing. So the whole thing is designed around a static java to xml mapping.

-Jason

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978165#3978165

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978165



More information about the jboss-dev-forums mailing list