fix new lines in extracted xml