jmoller | df09ad2 | 2011-03-18 08:10:35 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> |
| 3 | |
| 4 | <xs:element name="Example"> |
| 5 | <xs:complexType> |
| 6 | <xs:sequence> |
| 7 | <xs:element name="x" type="x_Type" maxOccurs="unbounded" /> |
| 8 | <xs:element name="y" type="y_Type" minOccurs="0" maxOccurs="unbounded" /> |
| 9 | </xs:sequence> |
| 10 | </xs:complexType> |
| 11 | </xs:element> |
| 12 | |
| 13 | <xs:complexType name="x_Type"> |
| 14 | <xs:attribute name="mesg" type="mesg_Type" /> |
| 15 | </xs:complexType> |
| 16 | |
| 17 | <xs:complexType name="y_Type"> |
| 18 | <xs:attribute name="intAttr" type="xs:integer" /> |
| 19 | </xs:complexType> |
| 20 | |
| 21 | <xs:simpleType name="mesg_Type"> |
| 22 | <xs:restriction base="xs:string"> |
| 23 | <xs:enumeration value="hello" /> |
| 24 | <xs:enumeration value="world" /> |
| 25 | <xs:enumeration value="test" /> |
| 26 | </xs:restriction> |
| 27 | </xs:simpleType> |
| 28 | |
| 29 | </xs:schema> |