I guess you need to check out the org.exolab.castor.xml.schema package. Have a look also on the util subpackage which contains an example to create a Schema object from an xml instance document.
We use this package rather extensively as the Xerces implementaion is far from ready . Zsolt Greg McCreath wrote: >Hi all, > >I have a requirement to build schemas behind tree/message structures >that the user is inputting. Effectively I need to create a schema to >validate a structure, but the user doesn't really know they are building >a schema. > >Two Castor questions: > >Is it possible to load a schema into a Castor in-memory 'Schema model' >so we may manipulate it with our UIs? > >Is it possible to get a in-memory schema model .... or preferable any >object model and render an on-disk schema from it? > >Many thanks > >Greg. > >----------------------------------------------------------- >If you wish to unsubscribe from this mailing, send mail to >[EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev > > > -- __ Kovax ||======== Name/Title : Zsolt Kovacs, Mr/PhD, CERN/UWE __\/_____ Phone/Fax : (41-22) 767-3457 / (41-22) 767 8930 \_ _/ Address : CERN div:EP 1211 Geneve 23 Switzerland | | Email : [EMAIL PROTECTED] --' `-- WWW : http://www.zsolt-kovacs.org ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
