Initial version of xml loading/saving