Hi,
1. Need to define XSD element that has some attributes and can hold list of itself
This is the type definition:
<xs:complexType name="t_TestCase" >
<xs:sequence>
<xs:element type="t_TestCase" minOccurs="0"></xs:element>
</xs:sequence>
</xs:complexType>
This is the element based on the type:
<xs:element name="TestCase" type="t_TestCase"></xs:element>
3. BUT - when adding attribute to the type - it seems that it is not valid anymore. (the sequence tag is invalid)
<xs:complexType name="t_TestCase" >
<xs:attribute name="att1"></xs:attribute>
<xs:sequence>
<xs:element type="t_TestCase" minOccurs="0"></xs:element>
</xs:sequence>
</xs:complexType>
Advise please?
Tx
Oren
1. Need to define XSD element that has some attributes and can hold list of itself
This is the type definition:
<xs:complexType name="t_TestCase" >
<xs:sequence>
<xs:element type="t_TestCase" minOccurs="0"></xs:element>
</xs:sequence>
</xs:complexType>
This is the element based on the type:
<xs:element name="TestCase" type="t_TestCase"></xs:element>
3. BUT - when adding attribute to the type - it seems that it is not valid anymore. (the sequence tag is invalid)
<xs:complexType name="t_TestCase" >
<xs:attribute name="att1"></xs:attribute>
<xs:sequence>
<xs:element type="t_TestCase" minOccurs="0"></xs:element>
</xs:sequence>
</xs:complexType>
Advise please?
Tx
Oren