以spring为例
进入:window -> Preference... -> MyEclipse -> Editors -> XML ->XML Catalog
选择:选中“User Specified Entries”,点击“Add...”按钮
填入:
URI: 请选择本地文件系统上SPRING_HOME\dist\resources\spring-beans-2.5.xsd 文件
Key Type: 选择Schema Location
Key: http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
点击确定
将spring配置文件关闭再重新打开即可看到myeclipse可以自动提示。可以使用MyEclipse XML Editor打开这些xml文件。