only prettify xml if required