Thanks Werner.
So, this will be a Java 1.5+ dependent feature? I was actually hoping
for a Java 1.4 solution.
I have not looked at the Castor source, but it seems - at least
theoretically, that it would not be too difficult to recursively build
an XML schema from a mapping file so that all XML generated by the
mapping file would validate against the schema. I think the hard part
would be going the other way. I'll bet that the schema wouldn't be
"tight enough", so that there would be instances that validate but can't
be unmarshalled into the original Java class.
Do you have any thoughts on that?
-- Mark
Werner Guttmann wrote:
Mark,
not yet, to be honest. As part of the upcoming JAXB 2.x compatibility we
are adding a schema generator that allows you to generate an XML schema
from a set of Java classes.
Having said that, this will not be available (in a controlled way) for
several weeks. If you happen to have some time available, any
contributions from your side would be appreciated.
Regards
Werner
Mark Hansen wrote:
MappingTool generates a default mapping file for a Java class. Is there
any extension of MappingTool that can also give an XML Schema that
accurately describes the document instances produced by marshalling via
the default mapping file. I.e., a default schema that is bound to the
Java class?
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email