if you need a recursive type declaration, here is an example that might help:
<xs:schema id="XMLSchema1" targetNamespace="http://tempuri.org/XMLSchema1.xsd" elementFormDefault="qualified" xmlns="http://tempuri.org/XMLSchema1.xsd" xmlns:mstns="http://tempuri.org/XMLSchema1.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" > <xs:element name="node" type="nodeType"></xs:element> <xs:complexType name="nodeType"> <xs:sequence minOccurs="0" maxOccurs="unbounded"> <xs:element name="node" type="nodeType"></xs:element> </xs:sequence> </xs:complexType> </xs:schema>
As you can see, this defines a recursive schema with only one node named "node", which can be as deep as possible.
Dani Duran Sep 29 '08 at 14:45 2008-09-29 14:45
source share