| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| |
| Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved. |
| |
| This program and the accompanying materials are made available under the |
| terms of the Eclipse Public License v. 2.0 which is available at |
| http://www.eclipse.org/legal/epl-2.0, |
| or the Eclipse Distribution License v. 1.0 which is available at |
| http://www.eclipse.org/org/documents/edl-v10.php. |
| |
| SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause |
| |
| --> |
| |
| <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
| xmlns="http://www.example.org" |
| xmlns:sdo="commonj.sdo" |
| targetNamespace="http://www.example.org" |
| elementFormDefault="qualified" |
| attributeFormDefault="unqualified"> |
| |
| <xsd:element name="team" type="Team"/> |
| |
| <xsd:complexType name="Yard"> |
| <xsd:sequence> |
| <xsd:element name="squarefootage" type="xsd:string"/> |
| <xsd:element name="length" type="xsd:string"/> |
| <xsd:element name="width" type="xsd:string"/> |
| </xsd:sequence> |
| </xsd:complexType> |
| |
| <xsd:complexType name="Phone"> |
| <xsd:sequence> |
| <xsd:element name="number" type="xsd:string"/> |
| </xsd:sequence> |
| </xsd:complexType> |
| |
| <xsd:complexType name="Address"> |
| <xsd:sequence> |
| <xsd:element name="street" type="xsd:string"/> |
| <xsd:element name="city" type="xsd:string"/> |
| <xsd:element name="province" type="xsd:string"/> |
| <xsd:element name="yard" type="Yard"/> |
| </xsd:sequence> |
| </xsd:complexType> |
| |
| <xsd:complexType name="Employee"> |
| <xsd:sequence> |
| <xsd:element name="id" type="xsd:string" minOccurs="0"/> |
| <xsd:element name="name" type="xsd:string" minOccurs="0"/> |
| <xsd:element name="address" type="Address" minOccurs="0"/> |
| <xsd:element name="phone" type="Phone" minOccurs="0" maxOccurs="unbounded"/> |
| <xsd:element name="myChangeSummary" type="sdo:ChangeSummaryType"/> |
| </xsd:sequence> |
| </xsd:complexType> |
| |
| <xsd:complexType name="Team"> |
| <xsd:sequence> |
| <xsd:element name="name" type="xsd:string" minOccurs="0"/> |
| <xsd:element name="manager" type="Employee"/> |
| <xsd:element name="employee" type="Employee" maxOccurs="unbounded"/> |
| </xsd:sequence> |
| </xsd:complexType> |
| </xsd:schema> |