added template for simplexml