Decode the XML returned by the web service (<and> are replaced by & lt; and & gt;)?

Possible duplicate:
How to decode a string into an XML string in C #

I call a webservice that returns XML. If I use SOAP, everything is fine, I will return to XML back. If, however, I use POST to get the return value, the XML comes in as the content of the response. This means that all <and> are replaced by &lt;and &gt;.

Is there a way to convert a string back to valid XML? I do not want to use RegEx or replace manually, as I am sure that there are several other characters that have been encoded in addition to <and>.

Framework-.NET 3.5

+5
2

HttpServerUtility.HtmlDecode(encodedString) .

msdn HtmlDecode

+4

- HttpServerUtility.HtmlDecode .

HttpUtility.HtmlDecode .

+2

All Articles