title: Encoding XML in C#
body: <p>I have a xml file which has umlauts in it like so:</p>
  
  <pre><code>&lt;NameGe&gt;ËÇ&lt;/NameGe&gt;
  </code></pre>
  
  <p>Is there a way to read this file and write it out like so:</p>
  
  <pre><code>&lt;NameGe&gt;&amp;#214;&amp;#231;&lt;/NameGe&gt;
  </code></pre>
  
  <p>so basically it should write the numeric/encoded value of the umlaut.</p>
  
  <p>Regards.</p>