【问题标题】:Eclipse xml validationEclipse xml 验证
【发布时间】:2012-10-23 05:49:27
【问题描述】:

如何让 Eclipse Indigo 针对我的类路径 jar 中存在的 xsd 验证 xml?目前,它似乎仅针对 xsd 的 Web 发布版本进行验证。例如,我的 xml 中有以下内容:

    xmlns:gfe="http://www.springframework.org/schema/gemfire"
    xsi:schemaLocation="http://www.springframework.org/schema/gemfire   http://www.springframework.org/schema/gemfire/spring-gemfire-1.2.xsd"

在 Eclipse 中,验证是针对位于:http://www.springframework.org/schema/gemfire/spring-gemfire-1.2.xsd 的文档进行的。 但是,当我在 Eclipse 外部运行应用程序时,验证会针对包含在我的类路径上的库 jar 文件中的 xsd。

【问题讨论】:

    标签: xml eclipse validation xsd


    【解决方案1】:

    【讨论】:

    • 该教程没有描述如何使用包含在 jar 文件中的 xsd,它要求该文件位于文件系统中。
    猜你喜欢
    • 1970-01-01
    • 2014-06-29
    • 2014-12-05
    • 1970-01-01
    • 2011-11-21
    • 2014-01-06
    • 2021-10-24
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多