Exporting to XML
You can export the data in a DataWindow or DataStore object to XML
using any of the techniques used for exporting to other formats such as
PSR or HTML:
-
Using the SaveAs method:
1ds1.SaveAs("C:TEMPTemp.xml", Xml!, true) -
Using PowerScript dot notation or the Describe method:
12ls_xmlstring = dw1.Object.DataWindow.Data.XMLls_xmlstring = dw1.Describe(DataWindow.Data.XML) -
Using the Save Rows As menu item in the DataWindow
painter.With the Preview view open, select File>Save Rows As,
select XML from the Files of Type drop-down list, provide a file
name, and click Save. You can use this in the development
environment to preview the XML that will be generated at
runtime.
When you export data, PowerBuilder uses an export template to
specify the content of the generated XML.
Default export format
If you have not created or assigned an export template,
PowerBuilder uses a default export format. This is the same format
used when you create a new default export template. See Creating templates.
OLE DataWindow objects cannot be exported using a template. You
must use the default format.