【问题标题】:How is eclipse feature to generate sample xml from an xsd schema implemented?如何实现从 xsd 模式生成示例 xml 的 eclipse 功能?
【发布时间】:2017-04-01 22:55:31
【问题描述】:

我很好奇 eclipse 如何实现从 xsd 模式生成 xml,如下所述:

http://help.eclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.wst.xmleditor.doc.user%2Ftopics%2Ftcrexxsd.html

是否可以查看源代码以尝试了解此功能的实现方式?

【问题讨论】:

  • Eclipse 源代码可从git.eclipse.org/c 的 git 存储库获得,也可以作为 Eclipse 的一部分安装

标签: java xml eclipse xsd


【解决方案1】:

Generate -> XML File 的向导是 org.eclipse.wst.xml.ui.internal.wizards.NewXMLWizard 类。 引擎盖下的生成器是org.eclipse.wst.xml.ui.internal.wizards.NewXMLGenerator 类。 它们是 org.eclipse.wst.xml.ui 插件。只需点击链接即可查看来源。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-08-28
    • 2014-07-03
    • 2011-04-14
    • 1970-01-01
    • 2018-06-30
    • 2010-09-06
    • 2011-04-24
    相关资源
    最近更新 更多