XML Parsing Failed due to Special Characters

Apr 7 2017 9:17 AM
I have an XML and I have to parse that XML in C# code into the class objects. But in the XML there are some special characters in the attribute values like <, > &, ", etc. I have written the relace of these special characters with  &lt;, &gt;, &amp;, &quot; etc.
 
But the problem is that < and > is replaced by  &lt; and &gt; for the XML tag as well. Please help how to resolve this. I want this to be replaced for only XML tag values.
 

Answers (1)