Reformats whitespace for pretty printing XML