PurchaseOrder.xml Sample

This topic inludes the source code for the PurchaseOrder.xml Sample.

Sample Location

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

BEA_HOME/weblogic81/samples/workshop/SamplesApp/WebApp/tagSamples/netui_databinding/repeater/data/

Sample Source Code


01 <batchWidgetOrder batchID="3DJ" xmlns="http://www.openuri.org/">
02   <order id="13">
03     <storeID>ABCD</storeID>
04     <shipTo>
05       <name>Carl</name>
06       <address>A St.</address>
07       <city>Seattle</city>
08       <state>WA</state>
09       <zip>98104</zip>
10     </shipTo>
11     <billTo>
12       <name>Bob</name>
13       <address>A St.</address>
14       <city>Seattle</city>
15       <state>WA</state>
16       <zip>98104</zip>
17     </billTo>
18     <orderItems>
19       <item id="34K">
20         <name>Big Widget</name>
21         <price decimal="2">23233</price>
22         <quantity>5</quantity>
23       </item>
24       <item id="3d4K">
25         <name>S Widget</name>
26         <price decimal="2">16995</price>
27         <quantity>8</quantity>
28       </item>
29     </orderItems>
30   </order>
31   <order id="46">
32     <storeID>WXYZ</storeID>
33     <shipTo>
34       <name>Bob</name>
35       <address>123 B</address>
36       <city>Boston</city>
37       <state>MA</state>
38       <zip>02138</zip>
39     </shipTo>
40     <billTo>
41       <name>Bob</name>
42       <address>123 A</address>
43       <city>Boston</city>
44       <state>MA</state>
45       <zip>02138</zip>
46     </billTo>
47     <orderItems>
48       <item id="3D">
49         <name>BWidget</name>
50         <price decimal="2">199</price>
51         <quantity>3</quantity>
52       </item>
53     </orderItems>
54   </order>
55 </batchWidgetOrder>
56