What is the best way to convert .ecore-files into .xsd-files?
Asked
Active
Viewed 6,697 times
5
-
Have you seen this? http://stackoverflow.com/questions/671555/how-to-convert-xsd-to-ecore-emf – mbreining Apr 13 '11 at 05:18
-
1yes, but I need reverse convertion – qwazer Apr 13 '11 at 06:04
2 Answers
8
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.

Tillmann Seidel
- 1,032
- 1
- 12
- 20
2
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.

Lii
- 11,553
- 8
- 64
- 88

Robert Wang
- 31
- 2