例如要引进struts2的dtd 提示
windows
--Preferences
-- MyEclipse Enterprise Workbench
--XML--XML Catalog
在右边XML Catalog Entries
User Specified Entries的树
点击new
一下是struts2的xml 头
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
新建内容填写如下
location: dtd所在文件目录
key Types: public ID
key:-//Apache Software Foundation//DTD Struts Configuration 2.0//EN
schema 添加 写道
1.首先Windows-->preferences-->myeclipse--files and editors -->xml-->xml catalog
2.单击add出现的窗口中的Key Type 中选择URI 在location中选择FileSystem然后在spring的解压目录的dist/resources目录中选择spring-bean-2.5.xsd
3.回到设置窗口,把窗口中的KeyType改为Schema Location
4.Key的后边加上spring-bean-2.5.xsd
5.完成
2.单击add出现的窗口中的Key Type 中选择URI 在location中选择FileSystem然后在spring的解压目录的dist/resources目录中选择spring-bean-2.5.xsd
3.回到设置窗口,把窗口中的KeyType改为Schema Location
4.Key的后边加上spring-bean-2.5.xsd
5.完成