The structure of the xml is based on the Castor v0.9.5.4 Mapping xml schema.
<?xml version="1.0" encoding="UTF-8"?>
<mapping>
<class auto-complete="false"
name="curam.taxonomy.util.impl.Taxonomy">
<map-to xml="taxonomy" />
<field collection="arraylist" name="taxonomyTerms"
type="curam.taxonomy.util.impl.TaxonomyTerm">
<bind-xml name="record" />
</field>
</class>
<class auto-complete="false"
name="curam.taxonomy.util.impl.TaxonomyTerm">
<map-to xml="record" />
<field name="name" type="java.lang.String">
<bind-xml name="name" node="element" />
</field>
<field name="code" type="java.lang.String">
<bind-xml name="code" node="attribute" />
</field>
<field name="definition" type="java.lang.String">
<bind-xml name="definition" node="element" />
</field>
<field name="facet" type="java.lang.String">
<bind-xml name="facet" node="element" />
</field>
<field name="comments" type="java.lang.String">
<bind-xml name="comments" node="element" />
</field>
<field name="bibliographicReference" type="java.lang.String">
<bind-xml name="bibliographicReference" node="element" />
</field>
<field name="createdDate" type="java.lang.String">
<bind-xml name="createdDate" node="element" />
</field>
<field name="lastModifiedDate" type="java.lang.String">
<bind-xml name="lastModifiedDate" node="element" />
</field>
<field collection="arraylist" name="taxonomyTerms"
type="curam.taxonomy.util.impl.TaxonomyTerm">
<bind-xml name="record" />
</field>
<field collection="arraylist" name="externalTerms"
type="curam.taxonomy.util.impl.ExternalTerm">
<bind-xml name="externalTerm" />
</field>
<field collection="arraylist" name="relatedConcepts"
type="curam.taxonomy.util.impl.RelatedConcept">
<bind-xml name="relatedConcept" />
</field>
<field collection="arraylist" name="useReferences"
type="java.lang.String">
<bind-xml name="useReference" />
</field>
<field collection="arraylist" name="relatedTerms"
type="java.lang.String">
<bind-xml name="see Also" />
</field>
<field collection="arraylist" name="oldCodes"
type="java.lang.String">
<bind-xml name="oldCode" />
</field>
</class>
<class auto-complete="false"
name="curam.taxonomy.util.impl.RelatedConcept">
<map-to xml="relatedConcept" />
<field name="code" type="java.lang.String">
<bind-xml name="code" node="attribute" />
</field>
<field name="name" type="java.lang.String">
<bind-xml node="text" />
</field>
</class>
<class auto-complete="false"
name="curam.taxonomy.util.impl.ExternalTerm">
<map-to xml="externalTerm" />
<field name="externalCode" type="java.lang.String">
<bind-xml name="externalCode" node="element" />
</field>
<field name="name" type="java.lang.String">
<bind-xml name="name" node="element" />
</field>
<field name="system" type="java.lang.String">
<bind-xml name="system" node="element" />
</field>
</class>
</mapping>