title: XmlDocument.Load not processing DTD?
body: <p>I am trying to build &amp; develop a Security POC, this code is part of an app that I've extracted into a smaller app because I am having some difficulty with it.</p>
  
  <pre><code> String str = "&lt;?xml version=\"1.0\"?&gt;&lt;!DOCTYPE foo[&lt;!ELEMENT foo ANY&gt; &lt;!ENTITY word \"A\"&gt;]&gt;&lt;foo&gt;&amp;word;&lt;/foo&gt;";
     System.Xml.XmlDocument xDoc = new System.Xml.XmlDocument();  
    xDoc.LoadXml(str);
   xDoc.Save(@"C:\Temp\xdoc.xml");
  </code></pre>
  
  <p>Consider the xml string contains a DTD entity word, which is referenced in my actual xml. When the document is loaded I would expect the DTD To get processed and therefore replace the entity "word" referred to in my xml with the character string "A". Then write the whole document back out to disk. However when I examine xDoc.xml. The Entity expansion/replacement hasn't happened.</p>
  
  <p>Why not? </p>