# EasyPO.xsd Sample

This topic inludes the source code for the EasyPO.xsd Sample.

## Sample Location

This sample is located in the following directory in your WebLogic Workshop installation:

BEA_HOME/weblogic81/samples/workshop/SamplesApp/Schemas/

## Sample Source Code

`01 <xs:schema targetNamespace="http://openuri.org/easypo" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:po="http://openuri.org/easypo" elementFormDefault="qualified"> 02 <xs:element name="purchase-order"> 03 <xs:complexType> 04 <xs:sequence> 05 <xs:element name="customer" type="po:customer"/> 06 <xs:element name="date" type="xs:dateTime" /> 07 <xs:element name="line-item" type="po:line-item" minOccurs="0" maxOccurs="unbounded"/> 08 <xs:element name="shipper" type="po:shipper" minOccurs="0"/> 09 </xs:sequence> 10 </xs:complexType> 11 </xs:element> 12 <xs:complexType name="customer"> 13 <xs:sequence> 14 <xs:element name="name" type="xs:string"/> 15 <xs:element name="address" type="xs:string"/> 16 </xs:sequence> 17 </xs:complexType> 18 <xs:complexType name="line-item"> 19 <xs:sequence> 20 <xs:element name="description" type="xs:string"/> 21 <xs:element name="per-unit-ounces" type="xs:decimal"/> 22 <xs:element name="price" type="xs:double"/> 23 <xs:element name="quantity" type="xs:int"/> 24 </xs:sequence> 25 </xs:complexType> 26 <xs:complexType name="shipper"> 27 <xs:sequence> 28 <xs:element name="name" type="xs:string"/> 29 <xs:element name="per-ounce-rate" type="xs:decimal"/> 30 </xs:sequence> 31 </xs:complexType> 32 </xs:schema>`