在Eclipse中导入dtd和xsd文件,使XML自动提示

DTD 类型约束文件 
    1. Window->Preferences->XML->XML Catalog->User Specified Entries窗口中,选择Add 按纽 
        
    2.在Add XML Catalog Entry 对话框中选择或输入以下内容: 
        Location: F:softprogrammingSoftFrameworkIbatissql-map-config-2.dtd 
        Key Type: URI 
        KEY: http://ibatis.apache.org/dtd/sql-map-config-2.dtd 
        
XSD 类型约束文件 

    1. Window->Preferences->XML->XML Catalog->User Specified Entries窗口中,选择Add 按纽 
        
    2.在Add XML Catalog Entry 对话框中选择或输入以下内容: 
        Location: F:softprogrammingSoftFrameworkSpringspring-framework-2.5.6.SEC01-with-dependenciesspring-framework-2.5.6.SEC01dist esourcesspring-beans-2.5.xsd 
        Key Type: Schema Location 
        KEY: http://www.springframework.org/schema/beans/spring-beans-2.5.xsd 
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/xiaoping8411/archive/2009/11/17/4822980.aspx

原文地址:https://www.cnblogs.com/google4y/p/3303586.html