MyEclipse或Eclipse中配置dtd或xsd文件方式

DTD 类型约束文件 
    1. Window->Preferences->XML->XML Catalog->User Specified Entries窗口中,选择Add 按纽 
        MyEclipse或Eclipse中配置dtd或xsd文件方式      MyEclipse或Eclipse中配置dtd或xsd文件方式
    2.在Add XML Catalog Entry 对话框中选择或输入以下内容: 
        Location: D:\struts-2.3.dtd        (dtd文件位置)
        Key Type: URI 
        KEY:http://struts.apache.org/dtds/struts-2.3.dtd
        
XSD 类型约束文件 

    1. Window->Preferences->XML->XML Catalog->User Specified Entries窗口中,选择Add 按纽 
        
    2.在Add XML Catalog Entry 对话框中选择或输入以下内容: 
        Location: D:\spring-beans.xsd        (xsd文件位置)
        Key Type: Schema Location 
        KEY: http://www.springframework.org/schema/beans/spring-beans.xsd