implemented xml template