I am learning Android recently and need to open xml files frequently. So I want to change the default opening method.
Solution:
Set the default opening method to XML Editor.
Menu: Window -> Preferences -> General -> Editors -> File Associations
File types: *.xml
Associated editors: XML Editor*** -> Default
Click "XML Editor***" in the Associated editors selection box and click the "Default" button.
You will see "XML Editor***" at the top, which changes to "XML Editor(Default)***".
Okay, try double-clicking the *.xml file again to see if it is ok.