title: Java, parse raw, unconverted value of an xml attribute. Jaxson or jaxb
body: <p>Given following XML input, how can I parse raw value of "descr" attribute?</p>
  
  <pre><code>  &lt;?xml version="1.0"?&gt;
    &lt;declaration descr="&amp;#xA0;"/&gt;
  </code></pre>
  
  <p>I tried following with JAXB and Jackson. In both cases space is printed, while I expect </p>
  
  <pre><code> &amp;#xA0;
  </code></pre>
  
  <p>JaxB test:
   </p>
  
  <pre><code>@XmlAccessorType(XmlAccessType.FIELD)
  @XmlRootElement(name = "declaration")
  public class DeclarationTestJaxb {
  
    @XmlAttribute
    private String descr;
  
    public String getDescr() {
        return descr;
    }
  
    public void setDescr(String descr) {
        this.descr = descr;
    }
  
    @Override
    public String toString() {
        return descr;
      }
  
    public static void main(String[] args) throws JAXBException {
      Unmarshaller unmarshaller =  JAXBContext.newInstance(DeclarationTestJaxb.class).createUnmarshaller();
      System.out.println(unmarshaller.unmarshal(new File("test.xml")));
    }
  }     
  </code></pre>
  
  <p>I tried the same with  @JsonRawValue and @JacksonXmlProperty(isAttribute = true).
  However the output is still converted.</p>