Update XmlGenerator.java