I have an XML Element which can take the following format
or
Is it possible to enforce/describe this structure in a XSD? if so, how? (don't worry about line, I already have it defined. I tried the following, but it doesn't allow the 'simple' type.
Code:
<item>
Simple info
</item>
or
Code:
<item>
<line>Complex Info 1</line>
<line>Complex Info 2</line>
</item>
Is it possible to enforce/describe this structure in a XSD? if so, how? (don't worry about line, I already have it defined. I tried the following, but it doesn't allow the 'simple' type.
Code:
<xs:complexType name="item">
<xs:sequence minOccurs="0">
<xs:element name="line" type="xs:string" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>