Exporting the DataWindow Web form in XML and XSLT or in XHTML

Exporting in XML and XSLT

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

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

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

NoteDefault 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.

NoteDefault 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” on page §.