【发布时间】: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