Extract XML template to another file