I am writing the XML into test file but when it writes the XML into text file it replaces the < and > with the < and >. I have tried many ways i.e. HTMLUtility.HtmlEncode and decode method to do the same but could not succeed. I am trying this XML into text file with .txt extension.
Is there any way to do it? Please help its urgent.
ali tuncerPosted Mar 6, 2016, 8:49 PM
I don't know if it is the best way but you could use String.Replace method to replace "<" with "<" in text file..