ItemsRowSetSchema.xsd Sample

This topic inludes the source code for the ItemsRowSetSchema.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"?>
02 <xsd:schema targetNamespace=" items.xmlBeans.workshop.samples.bea.openuri.org" xmlns=" items.xmlBeans.workshop.samples.bea.openuri.org" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wld="http://www.bea.com/2002/10/weblogicdata" elementFormDefault="qualified" attributeFormDefault="unqualified">
03   <xsd:element name="ItemsRowSet" wld:DefaultNamespace=" items.xmlBeans.workshop.samples.bea.openuri.org" wld:RowSet="true" wld:WriteTable="WEBLOGIC.ITEMS">
04     <xsd:complexType>
05       <xsd:choice maxOccurs="unbounded">
06         <xsd:element name="ItemsRow">
07           <xsd:complexType>
08             <xsd:sequence>
09               <xsd:element name="ITEMNUMBER" type="xsd:int" wld:JDBCType="INTEGER" minOccurs="0" wld:AutoIncrement="true" wld:PrimaryKey="true" wld:ReadOnly="true" wld:TableName="WEBLOGIC.ITEMS"></xsd:element>
10               <xsd:element name="ITEMNAME" type="xsd:string" wld:JDBCType="VARCHAR" minOccurs="0" wld:TableName="WEBLOGIC.ITEMS" nillable="true"></xsd:element>
11               <xsd:element name="QUANTITYAVAILABLE" type="xsd:int" wld:JDBCType="INTEGER" minOccurs="0" wld:TableName="WEBLOGIC.ITEMS" nillable="true"></xsd:element>
12               <xsd:element name="PRICE" type="xsd:double" wld:JDBCType="DOUBLE" minOccurs="0" wld:TableName="WEBLOGIC.ITEMS" nillable="true"></xsd:element>
13             </xsd:sequence>
14             <xsd:anyAttribute namespace="http://www.bea.com/2002/10/weblogicdata" processContents="skip"></xsd:anyAttribute>
15           </xsd:complexType>
16         </xsd:element>
17       </xsd:choice>
18     </xsd:complexType>
19   </xsd:element>
20 </xsd:schema>