views:

1474

answers:

2

What is the best way to convert .xsd-files into .ecore-files? Is there an eclipse plugin for that?

+1  A: 

That's what worked for me:

  • New -> Project...
  • Eclipse Modeling Framework -> EMF Project
  • Model Importers: XML Schema
  • Model URIs: [Select xsd-File]

To revalidate the .ecore-File when xsd has changed:

  • Right-Click on .genmodel-File
  • Reload...
Peter Lang
In Galileo you have to install the feature "XSD Ecore Converter". This provides the model importer for XML Schema.
ftl
A: 

Hi,

From the 3rd step onwards it is not working. May be this posting is for old version of eclipse. I am using Ganymede. I tried with Europa as well. I am not getting a window for Model Importers.

Is there any body who has an alternate solution for this.

Ebin John.

It works for me now, using Ganymede (3.4.2). Can you epxplain what exactely does not work for you? If you can not post comments yet, just edit your question...
Peter Lang