update xml file structure