title: JAXB: XMLIDRef in attribute?
body: <p>I have an XML which looks like this :</p>
  <pre><code>&lt;MyClass id=&quot;abc-123&quot;&gt;
     &lt;SomeAttribute idref=&quot;cde-456&quot; /&gt;
  &lt;/MyClass&gt;
  
  &lt;SomeOtherClass id=&quot;cde-456&quot;&gt;
  </code></pre>
  <p>And want to bind this using JAXB / Moxy. The best I could achieve so far is</p>
  <pre><code> @XmlIDREF
   @XmlElement(name=&quot;SomeAttribute &quot;)
   //@XmlPath(&quot;SomeAttribute /@idref&quot;)
   protected SomeOtherClass someAttribute ;
  </code></pre>
  <p>but this gives only <code>&lt;SomeAttribute&gt;cde-456&lt;/SomeAttribute&gt;</code></p>
  <p>Any idea, how binding of the idref attribute might work ?
  The @XmlPath does not work.</p>