Error in XML Data Bank with strings that contain "&"
I have a REST service that I am testing by querying a database for some name values and asserting these values against the service response. The issue I came across is that some values returned by my query contain the "&" symbol and when it tries to get that stored into an XML Data Bank, the whole test fails with the following error:
Invalid XML input: The entity name must immediately follow the '&' in the entity reference.
No additional details available
Is there any way to bypass this issue?
Example of test passing:
Tool successfully stores values into XML Data Bank and asserts against service response.
Example of test failing:
Ben & Jerrys
Tool fails to store values and entire test fails because of the "&" symbol in the second value.