Implement loading and saving to/from XML files.