@PerLycke How do you open the XMLs? By double-clicking in Finder, dragging them to Geany icon in the launcher, or using File->Open?
Anyway, from your description it sounds strange - Geany itself should treat all the XMLs equally so it must be something specific to High Sierra.