So how do limit the contents of an element to only contain more elements of itself using xsd?
<LOCATION>
...... <LOCATION></LOCATION>
</LOCATION>
Printable View
So how do limit the contents of an element to only contain more elements of itself using xsd?
<LOCATION>
...... <LOCATION></LOCATION>
</LOCATION>
Figured it out...
Code:
<xs:element name="Location" >
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="Location" minOccurs="0" maxOccurs="unbounded" />
</xs:choice>
<xs:attribute name="Name" use="required">
<xs:simpleType>
<xs:restriction base="xs:NMTOKEN" />
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>