Added XML saving

Added methods to various classes to save XML formats to internal
storage.