Exporting the DataWindow in XML or XHTML

Exporting in XML

You can export the DataWindow or DataStore object in XML using PowerScript dot notation or the Describe method:

ls_xmlstring = dw_1.Object.DataWindow.Data.XML
ls_xmlstring = dw_1.Describe("DataWindow.Data.XML")

When you export the DataWindow or DataStore object, PowerBuilder uses an export template to specify the content of the generated XML.

Default export format

If you did not create or assign an export template, PowerBuilder uses the default XSLT export format, which is the same format used when you create a new default export template. See "Creating and saving templates".

Exporting in XHTML

You can export the DataWindow or DataStore object in XHTML using PowerScript dot notation or the Describe method:

ls_xmlstring = dw_1.Object.DataWindow.Data.XHTML
ls_xmlstring = dw_1.Describe("DataWindow.Data.XHTML")

When you export the DataWindow or DataStore object, PowerBuilder uses an export template to specify the content of the generated XHTML and CSS style sheet.

Default export format

If you have not created or assigned an export template, PowerBuilder uses the default XHTML export format. This is the same format used when you create a new default export template. See "Creating and saving templates".