Hi Jasmin, Unfortunately we have no written documentation on the Schema Object Model...only the API. It's planned to include a written documentation.
Arnaud > -----Original Message----- > From: Jasmin Wason [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 18, 2003 11:17 AM > To: [EMAIL PROTECTED] > Subject: [castor-dev] org.exolab.castor.xml.schema (was - Creating a sequence > ModelGroup) > > > Please could someone direct me to any documentation or examples about > using org.exolab.castor.xml.schema in > addition to the API docs? > > Thanks, > > Jasmin > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Sent: 15 March 2003 22:28 > > To: [EMAIL PROTECTED] > > Subject: [castor-dev] Creating a sequence ModelGroup > > > > > > I am new to Castor and have been trying to use > > org.exolab.castor.xml.schema to > > programmatically create an XML Schema. > > > > I have run into a problem creating a <sequence> model group > > and just get a > > <group> when using org.exolab.castor.xml.schema.writer to > > view the XML. Here > > is the code I tried for adding one ElementDecl (subEl) to > > another (elDec): > > > > ModelGroup group = new ModelGroup(); > > group.setOrder(Order.seq); > > group.addElementDecl(subEl); > > > > ComplexType comp = new ComplexType(schema); > > comp.addGroup(group); elDec.setType(comp); > > > > Here is the output: > > > > <schema xmlns="http://www.w3.org/2001/XMLSchema"> > > <element name="root"> > > <complexType> > > <group> > > <element name="sub"/> > > </group> > > </complexType> > > </element> > > </schema> > > > > I expect there is a simple answer to this, can anyone help? > > > > Also, is there any documentation about using > > org.exolab.castor.xml.schema in > > addition to the API docs? > > > > Thanks, > > > > Jasmin > > > > ----------------------------------------------------------- > > If you wish to unsubscribe from this mailing, send mail to > > [EMAIL PROTECTED] with a subject of: > > unsubscribe castor-dev > > > > > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
