Completed xml generator

xml generator is completed
Bugs fixed and attribute manipulation feature added