add model to xml