Help me plz... [message #565248] |
Fri, 14 February 2003 05:24 |
Eclipse User |
|
|
|
Originally posted by: dwjang.jkdsoft.co.kr
It's so hard to use xsd for me.
Can you help me create XSDSchema object that contains this schema?
<xsd:element name = "XIDocument">
<xsd:complexType>
<xsd:sequence>
<xsd:element name = "PrimaryTable"/>
<xsd:element ref = "Database" minOccurs = "0" maxOccurs = "unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
I made something like this code but it didn't work.
XSDSchema schema = XSDFactory.eINSTANCE.createXSDSchema();
XSDElementDeclaration elementDeclaration =
XSDFactory.eINSTANCE.createXSDElementDeclaration();
elementDeclaration.setName("XIDocument");
XSDComplexTypeDefinition complexTypeDefinition =
XSDFactory.eINSTANCE.createXSDComplexTypeDefinition();
elementDeclaration.getSchema().getContents().add(complexType Definition);
..
..
..
|
|
|
Powered by
FUDForum. Page generated in 0.03077 seconds