1. 在windows-preferences里面,在Type filter text里面输入catalog,选择xml Catalog,在选择add。 2.location选择xml文件的dtd在本机上的保存路径,key type选择uri,key填写那个dtd的url路径名称,保存后就OK