updating ofXml to be templated