title: Ignoring undefined element references during unmarshalling in JAXB
body: <p>I'm currently working on a project requesting web services using CXF framework.</p>
  <p>For some reasons, I started to receive invalid XML SOAP(missing element with ID referenced from ) response that results in throwing exception during unmarshalling to POJO instance.</p>
  <p><strong>Example:</strong></p>
  <p>XML excerpt where attribute <code>ref</code> references to an element with identifier <code>Person1</code> that does not exist in XML.</p>
  <pre><code>&lt;ext:Applicant s:ref=&quot;Person1&quot;/&gt;
  </code></pre>
  <p>where <code>ref</code> is <code>IDREF</code> type in XSD schema</p>
  <pre><code>&lt;attribute name=&quot;ref&quot; type=&quot;IDREF&quot;/&gt;
  </code></pre>
  <p>Exception thrown by JAXB</p>
  <pre><code>javax.xml.ws.soap.SOAPFaultException: Unmarshalling Error: Undefined ID &quot;Person1&quot;. ] with root cause
  javax.xml.bind.UnmarshalException: Undefined ID &quot;Person1&quot;.
      at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:744) ~[jaxb-impl-2.3.1.jar!/:2.3.1]
      at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.errorUnresolvedIDREF(UnmarshallingContext.java:795) ~[jaxb-impl-2.3.1.jar!/:2.3.1]
      at com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor$IDREFTransducedAccessorImpl$1.run(TransducedAccessor.java:330) ~[jaxb-impl-2.3.1.jar!/:2.3.1]
      at...
  </code></pre>
  <p>Is there a way how to make JAXB ignore missing references and unmarshall incoming XML response without throwing exception?</p>