load model from xml, and replace properties