本文转自:http://bobshute.iteye.com/blog/619940


IED Eclipse Java EE IDE for Web Developers:
DTD 类型约束文件
   1. Window->Preferences->XML->XML Catalog->User Specified Entries窗口中,选择Add 按纽

   2.在Add XML Catalog Entry 对话框中选择或输入以下内容:
       Location: F:\javajar\sql-map-config-2.dtd

         [该dtd可以到下载的ibatis中搜索出来,当然也可以到http://ibatis.apache.org/dtd/ 此地址去下载]
       Key Type: URI [是下拉菜单选择,不是输入]
       KEY: http://ibatis.apache.org/dtd/sql-map-config-2.dtd

          [可以到ibatis配置文件中 的头里面查看到.]

XSD 类型约束文件
  1.到http://www.springframework.org/schema/beans/ 地址下载spring的dtd文件,另存为的时候

修改扩展名为xsd.

  2. Window->Preferences->XML->XML Catalog->User Specified Entries窗口中,选择Add 按纽

  3.在Add XML Catalog Entry 对话框中选择或输入以下内容:
       Location: F:\javajar\spring-beans-2.5.xsd
       Key Type: Schema Location

       [当选中xsd的时候key type 下拉菜单自动换成 Namespace Name和  Schema  Location ,此时选择]
       KEY: http://www.springframework.org/schema/beans/spring-beans-2.5.xsd

      [可以查看spring配置文件 application.xml 它的beans的属性中的xsi:schemaLocation中包含此值]