title: How to write ISO code accent in XML file?
body: <p>I would like to write Latin accents inside an XML text file with the corresponding ISO code.
  For instance <code>é</code> is replaced by <code>&amp;#233;</code> on the file.
  My issue is my first &amp; is escaped by <strong>Xml.Linq</strong>.
  So the result is <code>&amp;#amp;233;</code>.</p>
  
  <pre><code>internal void SaveCurrentFile(XElement root)
  {
      var encoding = Encoding.GetEncoding("ISO-8859-1");
      XmlWriterSettings xmlWriterSettings = new XmlWriterSettings
      {
          Indent = true,
          OmitXmlDeclaration = false,
          Encoding = encoding
      };
      using (var writer = XmlWriter.Create(GetFolderPath() + "test.xml", xmlWriterSettings))
      {
          root.Save(writer);
      }
  }
  </code></pre>
  
  <p>I did not see any options in XmlWriterSettings to help me.</p>
  
  <p>Thank you for your help.</p>