title: Using the XML Simple Framework to deserialize a list of elements containing CDATA
body: <p>Given the following XML:</p>
  
  <pre><code>&lt;stuff&gt;
      &lt;item id="1"&gt;&lt;![CDATA[first stuff...]]&gt;&lt;/item&gt;
      &lt;item id="2"&gt;&lt;![CDATA[more stuff...]]&gt;&lt;/item&gt;
  &lt;/stuff&gt;
  </code></pre>
  
  <p>I am struggling mightily to figure out how to deserialize this with the Simple Framework.  I have started out with the following Java classes:</p>
  
  <pre><code>import java.util.ArrayList;
  import java.util.List;
  
  import org.simpleframework.xml.Root;
  import org.simpleframework.xml.ElementList;
  
  @Root(name="stuff")
  public class Stuff {
  
      @ElementList(inline=true)
      public List&lt;Item&gt; itemList = new ArrayList&lt;Item&gt;();
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>import org.simpleframework.xml.Attribute;
  import org.simpleframework.xml.Element;
  
  @Element(name="item", data=true)
  public class Item {
  
      @Attribute
      public String id;
  }
  </code></pre>
  
  <p>So the missing piece for me is how do I access the CDATA content for each item element?</p>