Tweaks to load XML if that's what it is