52ky 发表于 2022-5-2 10:49:55

在 ECLIPSE 中导入 DTD 和 XSD 文件以使 XML 自动提示

DTD 类型约束文件
    1. Window->Preferences->XML->XML Catalog->User Specified Entries窗口中,选择Add 按纽
      
    2.在Add XML Catalog Entry 对话框中选择或输入以下内容:
      Location: F:\soft\programmingSoft\Framework\Ibatis\sql-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:\soft\programmingSoft\Framework\Spring\spring-framework-2.5.6.SEC01-with-dependencies\spring-framework-2.5.6.SEC01\dist\resources\spring-beans-2.5.xsd
      Key Type: Schema Location
      KEY: http://www.springframework.org/schema/beans/spring-beans-2.5.xsd

(DTD type constraint file
1. In the window - > Preferences - > XML - > XML catalog - > user specified entries window, select the Add button
2. Select or enter the following in the add XML catalog entry dialog box:
Location: F:\soft\programmingSoft\Framework\Ibatis\sql-map-config-2. dtd
Key Type: URI
KEY:http://ibatis.apache.org/dtd/sql-map-config-2.dtd
XSD type constraint file
1. In the window - > Preferences - > XML - > XML catalog - > user specified entries window, select the Add button
2. Select or enter the following in the add XML catalog entry dialog box:
Location: F:\soft\programmingSoft\Framework\Spring\spring-framework-2.5.6. SEC01-with-dependencies\spring-framework-2.5.6. SEC01\dist\resources\spring-beans-2.5. xsd
Key Type: Schema Location
KEY:http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
)



页: [1]
查看完整版本: 在 ECLIPSE 中导入 DTD 和 XSD 文件以使 XML 自动提示