简体   繁体   中英

How to convert ecore (EMF) to xsd

将.ecore文件转换为.xsd文件的最佳方法是什么?

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM