如何将xsd转换为ecore(EMF) [英] How to convert xsd to ecore (EMF)
本文介绍了如何将xsd转换为ecore(EMF)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
将.xsd文件转换为.ecore文件的最佳方式是什么?
是否有一个eclipse插件?
What is the best way to convert .xsd-files into .ecore-files? Is there an eclipse plugin for that?
推荐答案
这对我有用:
- 新建 - >项目...
- Eclipse建模框架 - > EMF项目
- 模型进口商: XML模式
- 模型URI : [选择xsd-File]
- New -> Project...
- Eclipse Modeling Framework -> EMF Project
- Model Importers: XML Schema
- Model URIs: [Select xsd-File]
要在xsd更改时重新验证.ecore-File:
To revalidate the .ecore-File when xsd has changed:
- 右键单击 .genmodel -File
- 重新加载...
- Right-Click on .genmodel-File
- Reload...
这篇关于如何将xsd转换为ecore(EMF)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文