Search code examples
xsdeclipse-plugineclipse-emfeclipse-emf-ecore

How to convert XSD to Ecore (EMF)


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

Is there an Eclipse plugin for that?


Solution

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