title: Converter for Joda-Time `DateTime` object to String in `org.simpleframework.xml` ("Simple XML Serialization" library)
body: <p>How to build a converter for the <code>org.simpleframework.xml</code> libary?</p>
  
  <p>I am using the <a href="http://simple.sourceforge.net/" rel="nofollow">Simple XML Serialization library</a> (<code>org.simpleframework.xml</code> package) from <a href="http://www.simpleframework.org/" rel="nofollow">SimpleFramework.org</a>. </p>
  
  <p>I want <a href="http://www.joda.org/joda-time/" rel="nofollow">Joda-Time</a> <a href="http://www.joda.org/joda-time/apidocs/org/joda/time/DateTime.html" rel="nofollow"><code>DateTime</code></a> objects to be serialized as an <a href="http://en.wikipedia.org/wiki/ISO_8601" rel="nofollow">ISO 8601</a> string such as <code>2014-07-16T00:20:36Z</code>. Upon re-constituting the Java object, I want a DateTime to be constructed from that string. The <a href="http://simple.sourceforge.net/download/stream/doc/tutorial/tutorial.php" rel="nofollow">documentation</a> does not really explain how to build a converter.</p>
  
  <p>I know it has something to do with a <a href="http://simple.sourceforge.net/download/stream/doc/javadoc/org/simpleframework/xml/transform/Transform.html" rel="nofollow"><code>Transform</code></a> and a <a href="http://simple.sourceforge.net/download/stream/doc/javadoc/index.html?org/simpleframework/xml/transform/Transform.html" rel="nofollow"><code>Matcher</code></a>. In the <a href="https://github.com/MythTV-Clients/MythTV-Service-API" rel="nofollow"><code>MythTV-Service-API</code></a> project, I found implementations of both <a href="https://github.com/MythTV-Clients/MythTV-Service-API/blob/master/src/main/java/org/mythtv/services/api/converters/JodaDateTimeTransform.java" rel="nofollow">Transform</a> and <a href="https://github.com/MythTV-Clients/MythTV-Service-API/blob/master/src/main/java/org/mythtv/services/api/converters/JodaDateTimeMatcher.java" rel="nofollow">Matcher</a>. But I have not determined how to put it together.</p>