XSD Recursive just one time..why
Posted: Mon Sep 17, 2012 1:00 pm
Hey guys,
I'm trying to build a schema with a recursive element inside that call's itself.
What happens is that is just recursive one time and not unlimited as I was expecting.
Can anyone help me ?!
Means that by click on the list AssetChild it opens another list, so far so good, but then if click on the next AssetChild it is not recursive anymore , why is just limited to one call?
I'm trying to build a schema with a recursive element inside that call's itself.
What happens is that is just recursive one time and not unlimited as I was expecting.
Can anyone help me ?!
Code: Select all
<xs:element name="Response" type="Response"/>
<xs:complexType name="Response">
<xs:sequence>
<xs:element name="Asset" type="Recursive" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Recursive">
<xs:sequence>
<xs:element name="Id" type="xs:long" minOccurs="0"/>
<xs:element name="CreatedBy" type="xs:string" minOccurs="0"/>
<xs:element name="CreatedOn" type="xs:dateTime" minOccurs="0"/>
<xs:element name="ModifiedBy" type="xs:string" minOccurs="0"/>
<xs:element name="ModifiedOn" type="xs:dateTime" minOccurs="0"/>
<xs:element name="VersionNr" type="xs:long" minOccurs="0"/>
<xs:element name="AcctId" type="xs:long" minOccurs="0"/>
<xs:element name="AssetChild" type="Recursive" minOccurs="0" maxOccurs="unbounded"/> <------ Unlimited times
</xs:sequence>
</xs:complexType>