xml file refactoring