<?xml version="1.0"?>

<mapping>

   <class name="xml.bug1865.Kennel">
      <map-to xml="kennel" />

      <field
         name="dogs"
         collection="arraylist"
         type="xml.bug1865.Dog"
         container="false"
      >
      </field>
   </class>

   <class name="xml.bug1865.Dog">
      <map-to xml="dog" />

      <field name="colour" type="string" required="true">
         <bind-xml node="attribute" />
      </field>

      <field name="bark" type="string" required="true">
         <bind-xml node="attribute" />
      </field>

   </class>

</mapping>
