Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Help me plz...
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);
..
..
..
Previous Topic:Any simple way for simple schema?
Next Topic:Help me plz...
Goto Forum:
  


Current Time: Thu Oct 30 15:32:14 GMT 2014

Powered by FUDForum. Page generated in 0.04412 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software