Configuration file for adding a DTD
<! Doctype struts public
"-// Apache Software Foundation // DTD struts configuration 2.0 // en" "http://struts.apache.org/dtds/struts-2.0.dtd">
<! Doctype struts public "-// Apache Software Foundation // DTD struts configuration 2.0 // en"
Http://struts.apache.org/dtds/struts-2.0.dtd>
1. Window-> preference-> myeclipse-> file and eiditor-> XML catalog.
2. Click Add and fill in as required in the pop-up box. Enter the path of your DTD file in location. keytype is the default value. Key is the content in doctype. For example, struts2 enters the code.
-// Apache Software Foundation // DTD struts configuration 2.0 // en
Contents of alternatibe-web-Address: http://struts.apache.org/dtds/struts-2.0.dtd
3. Restart myeclipse.
Note: The DTD file must be the same as the version in your xml doctype, for example, struts2 your DTD file is struts-2.0.dtd, then your doctype is also changed to struts-2.0.dtd. In addition, you can find the DTD file in your downloaded development kit.
This article from the "Zhang zhipeng" blog, please be sure to keep this source http://zhangzhipeng.blog.51cto.com/9115459/1571050
DTD configuration steps