title: How to get Json.NET to serialize empty XML element to empty string
body: <p>The <a href="https://json.codeplex.com/releases/view/121470" rel="nofollow">release notes</a> for Json.NET 6.0 Release 3 states</p>
  
  <blockquote>
    <p>Change - Blank XML elements will be written as an empty string instead
    of null</p>
  </blockquote>
  
  <p>but this is not my experience.</p>
  
  <pre><code>var xmlText = @"&lt;document xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" Version=""1.1""&gt;
                      &lt;empty/&gt;
                      &lt;space&gt; &lt;/space&gt;
                      &lt;null xsi:nil=""true""/&gt;
                  &lt;/document&gt;";
  var doc = new XmlDocument();
  doc.LoadXml(xmlText);
  var jsonText = JsonConvert.SerializeXmlNode(doc);
  </code></pre>
  
  <p>I expected</p>
  
  <pre><code>"empty":"", "space":" ", "null":{"@xsi:nil":"true"}
  </code></pre>
  
  <p>but got</p>
  
  <pre><code>"empty":null, "space":"", "null":{"@xsi:nil":"true"}
  </code></pre>
  
  <p>The lost space is not a problem right now but I really like empty XML elements to be serialized as "" instead of null. Is this possible?</p>