Always open with check is getting ignored
Not sure if you've tried this:-

Right click on an XML file and select Get Info

find the Open With section and choose TextEdit.

Underneath you should find an option for Change All

Clicking on that should change all XML files to open with TextEdit.