I must admit the previous one was with .SVG in the list of 'File extensions to display in internal browser view' because when I put .XML in there as you suggested this happens.
So far I have failed to find a combination that works. But it displays OK in an external browser so it isn't a total loss.