fix usage XmlGenerator