Re:: Recursion in an XML Schema

Hi Matthew and Jeni.

I have been looking at your emails, and I have seen something that looks 
strange for me.

I think that in your schemas the structure would be infinitely anitate. Isn't 
it?

> <schema>
>    <complexType name="SectionType">
>        <sequence>
>            <element name="section" type="SectionType">
>            <annotation>
>                <documentation>Recursive</documentation>
>            </annotation>
>        </element>
>    </sequence>
>    </complexType>
>    <element name="section" type="SectionType"/>
></schema>


When you declare the element "section", you would have to make it optional. 
Perhaps at this way
<element name="section" type="SectionType" minoccurs="0"/>
or 
<element ref="section" minoccurs="0"/>

Am I right?

Thanks and excuse my english.

Received on Thursday, 1 November 2001 08:09:15 UTC