Within the Azure API Management, I have an API, within its outbound policy I wish to find-and-replace like this;
<find-and-replace from="<" to="<" />
However, the "<" character is of course illegal since the policy itself is written in XML giving me the following error;
Error parsing policy xml document. '<', hexadecimal value 0x3C, is an invalid attribute character. Line 72, position 43.
Reason:
My backend API returns a text string which I want to "convert" into a valid XML.
Questions:
- Would a string that uses & gt ; and & lt ; (minus the spaces) instead of < and > still be XML valid?
- If the answer to #1 is no, then, how can I find and replace within the Azure API policy?