rearrange xml