modified generate-xml to fix problem with generated code and reran