fix create xml bugs and complete some work