Adding Template definitions (XML)