title: c# xml string special characters An error occurred while parsing EntityName. Line 1,
body: <p>Please help explain why the dataset cannot read the encoded xml?</p>
  
  <pre><code>    string xml = "&lt;?xml version=\"1.0\" standalone=\"yes\" ?&gt;
      &lt;DataSet&gt;&lt;node&gt;it's my \"node\" &amp; i like it&lt;/node&gt;&lt;/DataSet&gt;";
      string encodedXml = System.Security.SecurityElement.Escape(xml);
      DataSet ds = new DataSet();
      ds.ReadXml(New XmlTextReader(new StringReader(encodedXml)));
  </code></pre>
  
  <p>I have checked the link <a href="http://weblogs.sqlteam.com/mladenp/archive/2008/10/21/Different-ways-how-to-escape-an-XML-string-in-C.aspx" rel="nofollow">http://weblogs.sqlteam.com/mladenp/archive/2008/10/21/Different-ways-how-to-escape-an-XML-string-in-C.aspx</a>
  What i want to do is to <strong>read a string with special characters into a dataset</strong>. 
  Anyone could provide the code to <strong>read a string with special characters into a dataset</strong>.
  thanks very much</p>