1、eclipse以xml文件方式打开的步骤
1)选中文件右击
2)选择open with
3)选择Eclipse XML Editor
即可以xml文件方式打开
2、Eclipse设定文件的默认打开方式为xml格式
1)选择菜单Window
2)选择Preferences
3)选择General
4)选择Editors
5)选择 File Associations
6)在弹出的窗口中做如下设置File types: *.xml
7)在Associated editors选择框里点击“XML Editor*** ”,点击“Default”按钮即可