Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to convert ecore (EMF) to xsd

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

like image 752
qwazer Avatar asked Apr 13 '11 05:04

qwazer


2 Answers

You need to have the feature XSD Ecore Converter installed (it's part of the EMF project).

Then you can open the context menu on your ecore's generator model (extension .genmodel) and select Export Model. It should offer you now to export the ecore to XML schema.

like image 124
Tillmann Seidel Avatar answered Nov 13 '22 20:11

Tillmann Seidel


In Eclipse, when only EMF SDK is installed, you may not be able to see the model exporter for "XML Schema". (On my side, only "UML model" is visible).

Use an update site with EMF repository. Install the XSD features then the exporter would appear.

like image 35
Robert Wang Avatar answered Nov 13 '22 20:11

Robert Wang