blob: 4c8f3d0f4a70a618d3999abb2c5b2c59804352d2 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--
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">
<xsd:complexType name="phone">
<xsd:sequence>
<xsd:element minOccurs="0" name="number" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="employee-type">
<xsd:complexContent>
<xsd:extension base="person-type">
<xsd:sequence>
<xsd:element minOccurs="0" name="employee_name" type="xsd:string"/>
<xsd:element name="age" type="xsd:int"/>
<xsd:element minOccurs="0" name="address" type="xsd:string"/>
<xsd:element minOccurs="0" name="bytes" type="xsd:base64Binary"/>
<xsd:element minOccurs="0" name="jobTitle" type="xsd:string"/>
<xsd:element maxOccurs="unbounded" minOccurs="0" nillable="true" name="departments" type="department"/>
<xsd:element minOccurs="0" name="phone" type="phone"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="person-type">
<xsd:sequence/>
<xsd:attribute name="id" type="xsd:string"/>
</xsd:complexType>
<xsd:element name="empRoot2" type="employee-type"/>
<xsd:simpleType name="department">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="DEV"/>
<xsd:enumeration value="SALES"/>
<xsd:enumeration value="SUPPORT"/>
<xsd:enumeration value="HR"/>
<xsd:enumeration value="QA"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>