Init XmlBuilder with template_type