Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » Help me plz...
Help me plz... [message #565248] Fri, 14 February 2003 05:24
Eclipse UserFriend
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 Apr 25 15:58:19 GMT 2024

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

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

Back to the top