skip to main content
Using the Driver : Persisting a Result Set as an XML Data File : Using the Windows XML Persistence Demo Tool
  

Try DataDirect Drivers Now

Using the Windows XML Persistence Demo Tool

The 32-bit driver for Windows ships with an XML persistence demo tool. This tool is installed in the product installation directory.
The tool has a graphical user interface and allows you to persist data as an XML data file.
To use the Windows XML Persistence Demo tool:
1. From the product program group, select XML Persistence Demo. The XMLPersistence dialog box appears.
XML Persistence dialog box
2. First, you must connect to the database. Click Connect. The Select Data Source dialog box appears.
Select Data Source dialog box (File Data Source tab)
3. You must either select an existing data source or create a new one. Take one of the following actions:
*Select an existing data source and click OK.
*Create a new file data source by clicking New. The Create New Data Source dialog box appears. Follow the instructions in the dialog box.
*Create a new machine data source by clicking the Machine Data Source tab and clicking New. The Create New Data Source dialog box appears. Follow the instructions in the dialog box.
4. After you have connected to a database, type a SQL Select statement in the Query text box of the XML Persistence dialog box. Then, click Persist. The Save As dialog box appears.
5. Specify a name and location for the XML data file that will be created. Then, click OK.
Note that the Status box in the XML Persistence dialog box displays whether the action failed or succeeded.
6. Click Disconnect to disconnect from the database.
7. Click Close to exit the tool.