`

MyEclipse添加XML的xsd文件和dtd文件

阅读更多

以添加spring的spring-beans-2.0.xsd为例:

1:Preferences->MyEclipse->XML->XML Catalog->选中User Specified Entries->点击Add;
2:Add XML Catalog Entry窗口:Key Type选择URI,Location选择File System选中dist\resources\文件夹下的spring-beans-2.0.xsd;
3:Add XML Catalog Entry窗口:Key Type选择Schema Location,Key路径在后面加上/spring-beans-2.0.xsd;

以添加struts2的struts-2.0.dtd为例:

1:Preferences->MyEclipse->XML->XML Catalog->选中User Specified Entries->点击Add;
2:Add XML Catalog Entry窗口:Key Type选择URI,Key路径在后面加上http://struts.apache.org/dtds/struts-2.0.dtd
3:Add XML Catalog Entry窗口:Location选择File System选中struts-2.1.8.1\lib\struts2-core-2.1.8.1\struts-2.0.dtd;

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics