I have test data in an XML format, and the Text or Value from a WebElement (Selenium).
I compare both values and the Assert fails. Initially the XML whitespaces (due to formatting) were the obvious issue, but having removed them, I still get the following result. I have pasted the error log in Word and have no visual difference in spacing characters anymore.
Edit: Further investigation shows that the Assert fails on the newline character. When copying to Word, the whitespace following this character is different between the expected and actual result.
Edit 2: The hexcode in decimal is 13 versus 10 so they are different characters. The question is how to convert one to the other?