Example III

This example exports all rows from a DataWindow using a custom export template and an external schema for type definitions. The export settings are shown in Table 8.11.

Table 8.11. Settings for Example III
TemplateMetaDataTypeSaveMetaDataIncludeWhiteSpaceHeadGroups
t_ordersXMLSchema!MetaDataExternal!CheckedUnchecked
Listing 8.4. XML Data Export (Example III)
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE Orders>
<Orders xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="xml11E.xsd">
   <Customer id="101" fname="Michaels" lname="Devlin">
      <Order id="2001"> <Item id="1"> <Product>300</Product> <Qty>12</Qty> <ShipDate>1996-09-15</ShipDate> </Item> <Item id="2"> <Product>301</Product> <Qty>12</Qty> ...

Get PowerBuilder® 9: Internet and Distributed Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.