1 <?xml version="1.0" encoding="UTF-8"?>
3 Copyright (c) 2000-2014 Ericsson Telecom AB
5 All rights reserved. This program and the accompanying materials
6 are made available under the terms of the Eclipse Public License v1.0
7 which accompanies this distribution, and is available at
8 http://www.eclipse.org/legal/epl-v10.html
10 <schema xmlns="http://www.w3.org/2001/XMLSchema"
11 xmlns:ns="www.example.org/all"
12 targetNamespace="www.example.org/all">
14 <attribute name="attrGlobal" type="token"/>
16 <attributeGroup name="attrGroup">
17 <attribute name="attrInGroup2" type="token"/>
18 <attribute name="attrInGroup1" type="token"/>
22 <annotation><documentation xml:lang="EN">All, mandatory</documentation></annotation>
24 <complexType name="e29a">
26 <element name="foo" type="integer"/>
27 <element name="bar" type="float"/>
28 <element name="ding" type="string"/>
32 <simpleType name="e29simple">
33 <restriction base="integer"/>
36 <element name="e29aAndAttributes" type="ns:e29aAndAttributes"/>
37 <complexType name="e29aAndAttributes">
39 <element name="foo" type="integer"/>
40 <element name="bar" type="float"/>
41 <element name="ding" type="string"/>
43 <attribute name="attrLocal" type="integer"/>
44 <attribute ref="ns:attrGlobal"/>
45 <attributeGroup ref="ns:attrGroup"/>
48 <annotation><documentation xml:lang="EN">All, optional</documentation></annotation>
50 <complexType name="e29bAndAttributes">
52 <element name="foo" type="integer"/>
53 <element name="bar" type="float"/>
54 <element name="ding" type="string"/>
56 <attribute name="attrLocal" type="ns:e29simple"/>
57 <attribute ref="ns:attrGlobal"/>
58 <attributeGroup ref="ns:attrGroup"/>
61 <annotation><documentation xml:lang="EN">All, some elements are optional</documentation></annotation>
63 <complexType name="e29cAndAttributes">
65 <element name="foo" type="integer"/>
66 <element name="bar" type="float" minOccurs="0"/>
67 <element name="ding" type="string"/>
69 <attribute name="attrLocal" type="integer"/>
70 <attribute ref="ns:attrGlobal"/>
71 <attributeGroup ref="ns:attrGroup"/>