title: Jackson XML Annotations: String element with attribute
body: <p>I can't seem to find a way to make a Pojo Using the jackson-xml annotations that would generate xml like the following:</p>
  
  <pre><code>&lt;Root&gt;
      &lt;Element1 ns="xxx"&gt;
          &lt;Element2 ns="yyy"&gt;A String&lt;/Element2&gt;
      &lt;/Element1&gt;
  &lt;/Root&gt;
  </code></pre>
  
  <p>The closest I can seem to come is the following:</p>
  
  <p><strong>Root POJO</strong>:</p>
  
  <pre><code>public class Root {
      @JacksonXmlProperty(localName = "Element1")
      private Element1 element1;
  
      public String getElement1() {
          return element1;
      }
  
      public void setElement1(String element1) {
          this.element1 = element1;
      }
  }
  </code></pre>
  
  <p><strong>Element1 POJO</strong>:</p>
  
  <pre><code>public class Element1 {
      @JacksonXmlProperty(isAttribute = true)
      private String ns = "xxx";
      @JacksonXmlProperty(localName = "Element2")
      private Element2 element2;
  
      public String getElement2() {
          return element2;
      }
  
      public void setElement2(String element2) {
          this.element2 = element2;
      }
  }
  </code></pre>
  
  <p><strong>Element2 POJO</strong>:</p>
  
  <pre><code>public class Element2 {
      @JacksonXmlProperty(isAttribute = true)
      private String ns = "yyy";
      private String value;
  
      public String getValue() {
          return value;
      }
  
      public void setValue(String value) {
          this.value = value;
      }
  }
  </code></pre>
  
  <p>But this returns back the following:</p>
  
  <pre><code>&lt;Root&gt;
      &lt;Element1 ns="xxx"&gt;
          &lt;Element2 ns="yyy"&gt;&lt;value&gt;A String&lt;/value&gt;&lt;/Element2&gt;
      &lt;/Element1&gt;
  &lt;/Root&gt;
  </code></pre>
  
  <p>The element tags around "A String" I do not want to display.</p>