CustomerDBClient.xsd Sample

This topic inludes the source code for the CustomerDBClient.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/bea/samples/workshop/database" 
03     xmlns:db="http://openuri.org/bea/samples/workshop/database" 
04     xmlns:xs="http://www.w3.org/2001/XMLSchema" 
05     elementFormDefault="qualified" 
06     attributeFormDefault="unqualified">
07     <xs:complexType name="full-addressType">
08         <xs:sequence>
09             <xs:element name="address" type="xs:string"/>
10             <xs:element name="city" type="xs:string"/>
11             <xs:element name="state" type="xs:string"/>
12             <xs:element name="zip" type="xs:string"/>
13         </xs:sequence>
14     </xs:complexType>
15     <xs:element name="full-address" type="db:full-addressType"/>
16 </xs:schema>