Added an xml option to the model file function.