Last sync 2016.04.01
[deliverable/titan.core.git] / regression_test / XML / xsdConverter / Examples / Example1.xsd
1 <!--
2 Copyright (c) 2000-2016 Ericsson Telecom AB
3 All rights reserved. This program and the accompanying materials
4 are made available under the terms of the Eclipse Public License v1.0
5 which accompanies this distribution, and is available at
6 http://www.eclipse.org/legal/epl-v10.html
7
8 Contributors:
9 Balasko, Jeno
10 Raduly, Csaba
11 -->
12 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
13
14 <!-- This is an embedded example. An element with a sequence body and an attribute.
15 The sequence body is formed of elements, two of them are also complexTypes.-->
16
17 <xs:element name="shiporder">
18 <xs:complexType>
19 <xs:sequence>
20
21 <xs:element name="orderperson" type="xs:string"/>
22
23 <xs:element name="shipto">
24 <xs:complexType>
25 <xs:sequence>
26 <xs:element name="name" type="xs:string"/>
27 <xs:element name="address" type="xs:string"/>
28 <xs:element name="city" type="xs:string"/>
29 <xs:element name="country" type="xs:string"/>
30 </xs:sequence>
31 </xs:complexType>
32 </xs:element>
33
34 <xs:element name="item" >
35 <xs:complexType>
36 <xs:sequence>
37 <xs:element name="title" type="xs:string"/>
38 <xs:element name="note" type="xs:string" minOccurs="0"/>
39 <xs:element name="quantity" type="xs:positiveInteger"/>
40 <xs:element name="price" type="xs:decimal"/>
41 </xs:sequence>
42 </xs:complexType>
43 </xs:element>
44
45 </xs:sequence>
46
47 <xs:attribute name="orderid" type="xs:string" use="required"/>
48
49 </xs:complexType>
50 </xs:element>
51
52 </xs:schema>
This page took 0.033366 seconds and 5 git commands to generate.