1.菜单:Window -> Preferences -> General -> Editors -> File Associations 2. 点击右边的:Add 按钮,在弹出的窗口中输入: *.xml
3. 在下面的:Associated editors:
选中:Text Editor..., 然后点击右边的“Default”按钮
搞定