I have a console application to load XmlDocument , but it fail to load if the string has values like * $
Any idea how to load the xml? all responses are appreciated
using System;
using System.Net;
using System.Xml;
public class Program
{
public static void Main()
{
//string xmlStringWorking = "<xml>© ¨ À ¥ §</xml>";
string xmlStringWorking = "<xml>* $ © ¨ À ¥ §</xml>";
xmlStringWorking= WebUtility.HtmlDecode(xmlStringWorking);
XmlDocument doc = new XmlDocument();
doc.LoadXml(xmlStringWorking);
Console.WriteLine(xmlStringWorking);
}
}
expecting special characters are here