title: How to implement xml serialization for custom types?
body: <p>I have some types that I want to serialize/deserialize and generate a UI based on the selected object. The UI will also change the object which in turn I will have to serialize to store it in my app.</p>
  
  <p>So:</p>
  
  <pre><code>[obj_apple stored in the app] -&gt; select obj_apple -&gt; deserialize -&gt; show in UI -&gt; use the UI to change obj_apple -&gt; deselect obj_apple -&gt; serialize -&gt; [obj_apple stored in the app]
  </code></pre>
  
  <p>The objects have to be serialized/deserialized and this data has to be string. That's why I thought having an xml serializer would be better.</p>
  
  <p>Which type of serializer would be the best? And are there any good examples to implement this for custom types?</p>