读书人

[转]MyEclipse增添XML的xsd文件和dtd文

发布时间: 2012-12-26 14:39:29 作者: rapoo

[转]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;

?

使用自己的版本号。

读书人网 >XML SOAP

热点推荐