Fixed XML saving, Now working