Fixes issue with xml formatting