saving player in XML format