<!-- Using the ObjectArrayMapper class along with the IdReferenceMapperBase
  class -->
<binding>
  <mapping name="names" class="extras.NameArray">
    <structure field="m_names" name="definitions"
        marshaller="org.jibx.extras.ObjectArrayMapper"
        unmarshaller="org.jibx.extras.ObjectArrayMapper"/>
    <collection name="references" field="m_references" usage="optional">
      <structure name="name" marshaller="extras.NameArray$RefMapper"
          unmarshaller="extras.NameArray$RefMapper"/>
    </collection>
  </mapping>
  <mapping name="name" class="extras.NameArray$Name">
    <value name="id" style="attribute" field="m_id" ident="def"/>
    <value name="first-name" field="m_first"/>
    <value name="last-name" field="m_last"/>
  </mapping>
</binding>
