In LoadXml, nextId should be one past current Id.