# EasyPOLocal.xsd Sample

This topic inludes the source code for the EasyPOLocal.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 <?xml version="1.0" encoding="UTF-8"?> 02 <xs:schema targetNamespace="http://openuri.org/easypoLocal" xmlns:pol="http://openuri.org/easypoLocal" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> 03 <xs:element name="NAME" type="xs:string"/> 04 <xs:element name="PURCH_ORDER"> 05 <xs:complexType> 06 <xs:sequence> 07 <xs:element name="CUST"> 08 <xs:complexType> 09 <xs:sequence> 10 <xs:element ref="pol:NAME"/> 11 <xs:element name="ADDR" type="xs:string"/> 12 </xs:sequence> 13 </xs:complexType> 14 </xs:element> 15 <xs:element name="DATE" type="xs:dateTime"/> 16 <xs:element name="LINE_ITEM" maxOccurs="unbounded"> 17 <xs:complexType> 18 <xs:sequence> 19 <xs:element name="DESC" type="xs:string"/> 20 <xs:element name="PER_UNIT_OZ" type="xs:int"/> 21 <xs:element name="PRICE" type="xs:double"/> 22 <xs:element name="QUANT" type="xs:int"/> 23 </xs:sequence> 24 </xs:complexType> 25 </xs:element> 26 <xs:element name="SHIPPER"> 27 <xs:complexType> 28 <xs:sequence> 29 <xs:element ref="pol:NAME"/> 30 <xs:element name="PER_OZ_RATE" type="xs:decimal"/> 31 </xs:sequence> 32 </xs:complexType> 33 </xs:element> 34 </xs:sequence> 35 </xs:complexType> 36 </xs:element> 37 </xs:schema>`