Or this...
<?xml version="1.0" encoding="utf-8" ?>
<xs:schema id="Test" targetNamespace="http://tempuri.org/Test.xsd"
elementFormDefault="qualified"
attributeFormDefault="qualified" xmlns="http://tempuri.org/Test.xsd"
xmlns:mstns="http://tempuri.org/Test.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xs:element name="class">
<xs:complexType>
<xs:sequence>
<xs:element name="info"/>
<xs:element ref="class" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
"Randy Maloney" wrote:
Hi all,
Struggling at the moment so I'm wondering if any one can help me out.
I'm creating a *.xsd schema where and would like define certain elements as
recursive
for example...
<class>
<info />
<class>
<info />
<class>
<info />
...and so on
</class>
</class>
</class>
The exact depth is unknown as I what the structure to be as flexible as
possible.
Any help out there would be greatly appreciated.
Kind regards.
rmaloney