首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > XML SOAP >

Eclipse 设立XML属性提示

2012-10-06 
Eclipse 设置XML属性提示IED Eclipse Java EE IDE for Web Developers:DTD 类型约束文件1. Window-Prefer

Eclipse 设置XML属性提示
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中包含此值]
本文转载自:http://bobshute.iteye.com/blog/619940

热点排行