changing the format of the given xml