Completed xml generator

xml generator is completed