avaBean property's type must be <code>java.lang.String</code>.</li>
   <li> The only other mapping annotations that can be used
        with <code>@XmlID</code>
        are: <code>@XmlElement</code> and <code>@XmlAttribute</code>.</li>
 </ul>
 
 <p><b>Example</b>: Map a JavaBean property's type to <code>xs:ID</code></p>
 
<div class="snippet-container"><button class="copy snippet-copy" aria-label="Copy snippet" onclick="copySnippet(this)"><span data-copied="Copied!">Copy</span><img src="../../../../../copy.