rearranging of xml