fix bug in xml helper - when reading a file without a version, create a new one.