Adding xml to csv function for Ramses and Oscar