Exporting DataWindow data in XML or in XHTML

You can export the data in a Web DataWindow in XML or XHTML to a string using the Describe or GetProperty method and the Data.XML or Data.XHTML properties:

xmlstring = wdw.Describe("DataWindow.Data.XML")
xmlstring = wdw.GetProperty("DataWindow.Data.XML")
xmlstring = wdw.Describe("DataWindow.Data.XHTML")
xmlstring = wdw.GetProperty("DataWindow.Data.XHTML")

The Data.XHTML property also contains a form element, XHTML input elements, state information, and XHTML and JavaScript for navigation. When you export data, DataWindow .NET uses an export template to specify the content of the generated XHTML and CSS style sheet. You can also export the JavaScript that performs the XSLT transformation on the browser using the Data.XMLWeb property. For more information see the property descriptions in the DataWindow Object Reference.

NoteDefault export format If you have not created or assigned an export template, DataWindow .NET uses the default export format. This is the same format used when you create a new default export template. See “Creating and saving templates”.