Add xml template to search (v1) function