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