title: JacksonXML simple list of Strings serialization and desirialization
body: <p>I have this xml</p>
  <pre><code>&lt;DeviceSettings&gt;
          &lt;Messages&gt;
              &lt;Message&gt;1&lt;/Message&gt;
              &lt;Message&gt;2&lt;/Message&gt;
              &lt;Message&gt;3&lt;/Message&gt;
          &lt;/Messages&gt;
  &lt;/DeviceSettings&gt;
  </code></pre>
  <p>My Kotlin data classes:</p>
  <pre><code>data class DeviceSettings(
      @JacksonXmlElementWrapper(localName = &quot;Messages&quot;)
      @JacksonXmlProperty(localName = &quot;Messages&quot;)
      val  messages: List&lt;String&gt;
  )
  </code></pre>
  <p>This looks like its working ok but I really dont understand why when serilizing back the object it becomes like this</p>
  <pre><code>&lt;DeviceSettings&gt;
  &lt;Messages&gt;
  &lt;Messages&gt;1&lt;/Messages&gt;
  &lt;Messages&gt;2&lt;/Messages&gt;
  &lt;Messages&gt;3&lt;/Messages&gt;
  &lt;/Messages&gt;
  &lt;/DeviceSettings&gt;
  </code></pre>
  <p>I would also like to have this structure:</p>
  <pre><code>data class DeviceSettings(
      @JacksonXmlProperty(localName = &quot;Messages&quot;)
      val  messages: List&lt;Message&gt;
  )
  
  data class Message(
      val value: String,
  )
  </code></pre>
  <p>But the above trows an error about wrong type</p>