How to convert XSD to Ecore (EMF)

Peter Lang picture Peter Lang · Mar 22, 2009 · Viewed 13.9k times · Source

What is the best way to convert .xsd-files into .ecore-files?

Is there an Eclipse plugin for that?

Answer

Peter Lang picture Peter Lang · Mar 23, 2009

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...