Skip to main content
summaryrefslogtreecommitdiffstats
blob: b0ff1a1abacedd418db5fbfed906731ae74a1d45 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.org/XMLSchemaWithGroups" xmlns:tns="http://www.example.org/XMLSchemaWithGroups" elementFormDefault="qualified"
	xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
	ecore:ignoreSubstitutionGroups="true">

    <element name="topElement">
    	<complexType>
    		<sequence>
    			<element ref="tns:child" maxOccurs="unbounded" minOccurs="0"></element>
    		</sequence>
    	</complexType>
    </element>
    


    <element name="child" type="tns:childComplexType">
    </element>
    
    <element name="specialChild" type="tns:SpecialChildComplexType" substitutionGroup="tns:child"></element>
    <complexType name="childComplexType">
    	<sequence>
    		<element name="hobby" maxOccurs="unbounded" minOccurs="0">
    			<complexType>
    				<attribute name="type" type="string" use="required"></attribute>
    			</complexType>
    		</element>
    	</sequence>
    	<attribute use="required" name="name" type="string"></attribute>
    </complexType>
    
    <complexType name="SpecialChildComplexType">
    	<complexContent>
    		<extension base="tns:childComplexType">
    			<attribute name="specialNeed" type="string" use="required"></attribute>
    		</extension>
    	</complexContent>
    </complexType>
    
        <element name="reallySpecialChild" type="tns:ReallySpecialChildComplexType" substitutionGroup="tns:specialChild"></element>
    <complexType name="ReallySpecialChildComplexType">
    	<complexContent>
    		<extension base="tns:SpecialChildComplexType">
    			<attribute name="reallySpecialNeed" type="string" use="required"></attribute>
    		</extension>
    	</complexContent>
    </complexType>
    
    
</schema>

Back to the top