title: Suppress xsi:nil but still show Empty Element when Serializing in .Net
body: <p>I have a c# class that has 20+ string properties.  I set about a fourth of those to an actual value.  I would like to serialize the class and get an output of </p>
  
  <pre><code>&lt;EmptyAttribute&gt;&lt;/EmptyAttribute&gt;
  </code></pre>
  
  <p>for a property </p>
  
  <pre><code>public string EmptyAttribute {get;set;}
  </code></pre>
  
  <p>I do not want the output to be</p>
  
  <pre><code>&lt;EmptyAttribute xsi:nil="true"&gt;&lt;/EmptyAttribute&gt;
  </code></pre>
  
  <p>I am using the following class </p>
  
  <pre><code>public class XmlTextWriterFull : XmlTextWriter
  {
      public XmlTextWriterFull(string filename) : base(filename,Encoding.UTF8) { }
  
      public override void WriteEndElement()
      {
          base.WriteFullEndElement();
          base.WriteRaw(Environment.NewLine);
      }
  }
  </code></pre>
  
  <p>so that I can get the full tags.  I just don't know how to get rid of the xsi:nil.</p>