1 | <?xml version="1.0"?>
|
---|
2 | <xsd:schema
|
---|
3 | xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
---|
4 | xmlns:target="http://www.example.com/Test"
|
---|
5 | targetNamespace="http://www.example.com/Test"
|
---|
6 | version="1.0"
|
---|
7 | elementFormDefault="qualified" >
|
---|
8 |
|
---|
9 | <xsd:element name="foo" />
|
---|
10 | <xsd:element name="bar" />
|
---|
11 | <xsd:element name="joe" />
|
---|
12 |
|
---|
13 | <xsd:complexType name="dominik">
|
---|
14 | <xsd:all>
|
---|
15 | <xsd:element minOccurs="0" ref="target:foo" />
|
---|
16 | <xsd:element minOccurs="0" ref="target:bar" />
|
---|
17 | <xsd:element minOccurs="0" ref="target:joe" />
|
---|
18 | </xsd:all>
|
---|
19 | </xsd:complexType>
|
---|
20 |
|
---|
21 | <xsd:element name="test">
|
---|
22 | <xsd:complexType>
|
---|
23 | <xsd:sequence>
|
---|
24 | <xsd:element maxOccurs="unbounded" name="child" type="target:dominik" />
|
---|
25 | </xsd:sequence>
|
---|
26 | </xsd:complexType>
|
---|
27 | </xsd:element>
|
---|
28 |
|
---|
29 | </xsd:schema>
|
---|