title: <> Xml lost when converting To and From 64BaseString
body: <p>I have this simple Xml file</p>
  
  <pre><code>&lt;Root&gt;
      &lt;Licence Name="My name" Age="23"/&gt;
  &lt;/Root&gt;
  </code></pre>
  
  <p>During my encryption and decryption process, I'm using <code>ToBase64String()</code> and<code>FromBase64String()</code> methods, but it does not seam to work, when I try to decrypt the file, the <strong>&lt;></strong> witch limit my <strong>Licence</strong> element are lost. here's the result after encryption and decryption :</p>
  
  <pre><code>&lt;Root&gt;&amp;lt;Licence Name="My name" Age="23" /&amp;gt;&lt;/Root&gt;
  </code></pre>
  
  <p>Here is my code</p>
  
  <pre><code>//Encrypt
  private void bnEncrypt_Click(object sender, EventArgs e)
  {
          var xDoc = XElement.Load(@"C:\Opticien\Lic.xml");
          var data = xDoc.Element("Licence").ToString();
  
          var dataByte = Encoding.UTF8.GetBytes(data);
          var dataEncrypted = Convert.ToBase64String(dataByte);
  
          xDoc.SetValue(dataEncrypted);
          xDoc.Save(@"C:\Opticien\Lic.xml");
          memoEdit1.Text = xDoc.ToString();
  }
  
  //Decrypt
  private void bnDecrypt_Click(object sender, EventArgs e)
  {
          var xDoc = XElement.Load(@"C:\Opticien\Lic.xml");
          var data = xDoc.Value;
  
          var dataByte = Convert.FromBase64String(data);
          var dataDecrypted = Encoding.UTF8.GetString(dataByte);
  
          xDoc.SetValue(dataDecrypted);
          xDoc.Save(@"C:\Opticien\Lic.xml");
          memoEdit1.Text = xDoc.ToString();
  }
  </code></pre>