Kiuma,

In your schema (at least in the snippet you included) there are only
two nesting levels defined whereas in the example you've got 3 nested
<item> elements. And as you probably know HiveMind doesn't allow
recursive Schema definitions.

HTH,

--knut

On 3/31/07, Andrea Chiumenti <[EMAIL PROTECTED]> wrote:
Hello I'd like to create something similar to this:

<item id="a">
    <item id="a-1">
        <item id="a-1-1"/>
        <item id="a-1-2"/>
        <item id="a-1-3"/>
    </item>
    <item id="a-2">
        <item id="a-2-1"/>
        <item id="a-2-2"/>
    </item>
 </item>

I've defined this, but It's wrong:
       <element name="item">
            <attribute name="id" required="true"/>
            <attribute name="parentId" required="false"/>
            <attribute name="order" required="false"/>
            <attribute name="label" required="false"/>
            <element name="item">
                <rules>
                    <invoke-parent method="addNode"/>
                </rules>
            </element>
            <conversion class="MyItem" />
        </element>

Can someone please tell me how to do ?

Thanks,
kiuma


Reply via email to