There is a tool in Castor that will take an XML instance document and
attempt to create a Schema for it. For complex cases the Schema will
most likely need modifying, but it's a good start and definately a time
saver. 

See class: org.exolab.castor.xml.schema.util.XMLInstance2Schema

Since we already have a tool that can introspect java classes, it would
be pretty straight forward to do it from the object model itself. No one
is currently working on this, but simply borrowing code from the
org.exolab.castor.tools.MappingTool (which uses the introspector to
create a default mapping file), and the XMLInstance2Schema classes, one
should be able to fairly quickly assemble exactly what you are looking
for.

--Keith

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to