We have created an API
We have programmed a client within sfdc using visualforce and apex controller.
In order to parse the resp we are using xmlStreamReader utility. But getting below exception if the attribute value of any xml tag has special characters.
Exception: 18:46:25.626 (626839218)|EXCEPTION_THROWN|[1160]|System.XmlException: ParseError at [row,col]:[1,152] Message: The entity name must immediately follow the '&' in the entity reference.
How to work on this ? Is there any workaround to pass
&
in a string and it may need to be&