Window -> Preferences -> General -> Editors -> File Associations 在File types:中选择 *.xml 在Associated editors选择框:中选择XML Editor(default)(locked by 'XML' ***) --> 点击“Default”按钮-->ok