blob: e7a9f8eb144e50d3e3624017b5a5c6f0c5d3dbc1 [file] [log] [blame]
<?xml version="1.0"?>
<!--
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
-->
<!-- Orders schema -->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xsd:element name="order">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="address">
<xsd:complexType>
<xsd:attribute name="addressee" type="xsd:string"/>
<xsd:attribute name="street" type="xsd:string"/>
<xsd:attribute name="city" type="xsd:string"/>
<xsd:attribute name="zip" type="xsd:string"/>
<xsd:attribute name="state" type="xsd:string"/>
<xsd:attribute name="country" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="line-item" maxOccurs="unbounded">
<xsd:complexType>
<xsd:attribute name="number" type="xsd:integer"/>
<xsd:attribute name="name" type="xsd:string"/>
<xsd:attribute name="quanity" type="xsd:integer"/>
<xsd:attribute name="price" type="xsd:double"/>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:integer"/>
<xsd:attribute name="ordered-by" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
</xsd:schema>