title: Render Empty XML Elements as Parent Elements
body: <p>I have a strange requirement where an application consuming some XML that my application is generating actually needs empty elements to be serialized as parent elements. For example: <pre><code>&lt;element foo="bar" /&gt;</code></pre></p>
  
  <p>should be:</p>
  
  <pre><code>&lt;element foo="bar"&gt;&lt;/element&gt;</code></pre>
  
  <p>I'm not aware of any way that the <a href="http://msdn.microsoft.com/en-us/library/system.xml.serialization.xmlserializer.aspx" rel="nofollow noreferrer">XmlSerializer</a> allows you to change this. Does anybody know how to accomplish this?</p>