You can export the data in a DataWindow object or Java DataStore to XML using any of the techniques used for exporting to other formats such as PSR or HTML:
Using the saveAs method:
ds_1.saveAs("C:\TEMP\Temp.xml", FileSaveAsType.XML, true);
Using the Describe method:
ls_xmlstring = dw_1.describe(”DataWindow.Data.XML”);
Using the Save Rows As menu item in the DataWindow editor.
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, Sybase WorkSpace 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, Sybase WorkSpace uses a
default export format. This is the same format used when you create
a new default export template. See “Creating templates”.