complete model from and to xml