title: Map Jackson json attribute to corresponding xml element
body: <p>I am using Jackson <code>objectMapper</code> to read JSON to JsonNode, Then I am using <code>xmlMapper</code> to serialize this to XML.</p>
  
  <p>I'd like to set an XML attribute value by parsing a <code>JSON</code> attribute with tag "@". Any help would be appreciated. Thanks.</p>
  
  <p>EXAMPLE JSON:</p>
  
  <pre><code>{
    "response" : {
      "label" : {
        "@data" : "someValue"
      }
    }
  }
  </code></pre>
  
  <p>NEED TO MAP TO XML:</p>
  
  <pre><code>&lt;response&gt;
    &lt;label data="someValue" /&gt;
  &lt;/response&gt;
  </code></pre>
  
  <p>This is what I can get right now:</p>
  
  <pre><code>&lt;response&gt;
    &lt;label&gt;
       &lt;@data&gt;someValue&lt;/@data&gt;
    &lt;/label&gt;
  &lt;/response&gt;
  </code></pre>
  
  <p>CODE:</p>
  
  <pre><code>JsonNode root = objectMapper.readTree(JSON); 
  xml = xmlMapper.writeValueAsString(root);
  </code></pre>