fix usage of XmlGenerator