fixes xml formatting