2012-11-02 65 views
3

如何讓Eclipse Indigo驗證xml是否存在於我的classpath jar中的xsd?目前,它似乎只是針對xsd的Web發佈版本進行驗證。例如,我已經在我的XML如下:Eclipse 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。由Eclipse支持的

回答