Added more onto xmlSaveCode

TODO: String things together neatly