Recursiveness

How recursiveness is handled.

Recursiveness

In the XSD-Viewer plugin context recursive means that an element type has children of its own type. The example XSD below is set up this way.

<xs:complexType name="nodeType">
    <xs:sequence minOccurs="0" maxOccurs="unbounded">
        <xs:element name="node" type="nodeType"/>
    </xs:sequence>
</xs:complexType>

The XSD-Viewer plugin is able to draw XSD’s containing recursiveness but only to a certain level, depending on the complexity of the XSD schema itself. When an error occurs rendering the image, concluding possible recursiveness is detected, try to lower your depth level.

A rendered image of the XSD schema above is shown below. The chosen starting element is nodeType and the depth is set at 2 so it is clear this node type is recurring.

Last updated