Making WriteAsXml format method for each element to save a score