Implemented XML save format.