Eclipse xml验证

时间:2012-11-02 14:41:10

标签: xml eclipse validation xsd

如何让Eclipse Indigo针对我的classpath 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。