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”按钮即可
好简单的呀,window-perferences-找到文件关联项来,然后加入该类型即可
当前文件右击选择open with
另:window-perferences-General-Editors-File Assceiations 选择xml默认打开方式
直接点击文件右键呀,选择打开方式就OK了。