strip newlines and whitespace in XML comparison test