| 1 |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> |
| 2 |
|
| 3 |
<xs:complexType name="mixedElement" mixed="true"> |
| 4 |
<xs:choice minOccurs="0" maxOccurs="unbounded"> |
| 5 |
<xs:element name="elem"/> |
| 6 |
</xs:choice> |
| 7 |
</xs:complexType> |
| 8 |
|
| 9 |
<xs:element name="root"> |
| 10 |
<xs:complexType mixed="false"> <!-- Invalid because it's not empty --> |
| 11 |
<xs:complexContent> |
| 12 |
<xs:extension base="mixedElement"> |
| 13 |
<xs:choice> |
| 14 |
<xs:element name="elem1"/> |
| 15 |
</xs:choice> |
| 16 |
</xs:extension> |
| 17 |
</xs:complexContent> |
| 18 |
</xs:complexType> |
| 19 |
</xs:element> |
| 20 |
|
| 21 |
</xs:schema> |