Add template to XML view