<?xml version="1.0"?>
<!DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Mapping DTD Version 1.0//EN" "http://castor.org/mapping.dtd">
<mapping>

    <class name="MapOfMaps">
        <field name="map" collection="map">
            <bind-xml name="map">
                <class name="org.exolab.castor.mapping.MapItem">
                    <field name="key" type="java.lang.String">
                        <bind-xml name="string1" node="attribute" />
                    </field>
                    <field name="value" collection="map">
                        <bind-xml name="nested">
                            <class name="org.exolab.castor.mapping.MapItem">
                                <field name="key" type="java.lang.String">
                                    <bind-xml name="string2" node="attribute" />
                                </field>
                                <field name="value" type="java.lang.String">
                                    <bind-xml name="string3" node="attribute" />
                                </field>
                            </class>
                        </bind-xml>
                    </field>
                </class>
            </bind-xml>
        </field>
    </class>

</mapping>
