<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 27: Inconsistant serialize and de-serialize with empty elements</title><link>https://sourceforge.net/p/simple/bugs/27/</link><description>Recent changes to 27: Inconsistant serialize and de-serialize with empty elements</description><atom:link href="https://sourceforge.net/p/simple/bugs/27/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 30 Nov 2011 10:04:58 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/simple/bugs/27/feed.rss" rel="self" type="application/rss+xml"/><item><title>Inconsistant serialize and de-serialize with empty elements</title><link>https://sourceforge.net/p/simple/bugs/27/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;It's described here in detail:&lt;br /&gt;
&lt;a href="http://stackoverflow.com/questions/5648607/simpleframework-deserializing-an-empty-element-to-an-empty-string-instead-of-nu" rel="nofollow"&gt;http://stackoverflow.com/questions/5648607/simpleframework-deserializing-an-empty-element-to-an-empty-string-instead-of-nu&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Personally, I think that for XML elements, reading and writing should be consistent and allow for a round-trip with identical results unless there's a good reason not to.  It's surprising, then, that the contents of &amp;lt;fooElement&amp;gt;&amp;lt;/fooElement&amp;gt; are de-serialized into null (unexpected), while serializing null results in no element being written (expected) and an empty string results in &amp;lt;fooElement&amp;gt;&amp;lt;/fooElement&amp;gt; (also expected).  Obviously I could write a Converter or Transformer to change this, but I can't think of a reason why this is not the default behaviour.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 30 Nov 2011 10:04:58 -0000</pubDate><guid>https://sourceforge.netc71bed851d6803f328a996e474160d97fcfc60c4</guid></item></channel></rss>