Format xml files on load