Difference between revisions of "SET XMLFORMAT"

From Recital Documentation Wiki
Jump to: navigation, search
Line 1: Line 1:
=SET XMLFORMAT=
 
 
 
 
==Class==
 
==Class==
 
SQL Applications
 
SQL Applications
Line 14: Line 11:
  
 
==See Also==
 
==See Also==
[[SQL SELECT|SELECT]]
+
[[SQL SELECT|SELECT]], [[XML]]
  
  
Line 27: Line 24:
 
set xmlformat to ADO
 
set xmlformat to ADO
 
EXEC SQL
 
EXEC SQL
    SELECT * FROM example
+
  SELECT * FROM example
    SAVE AS XML example;
+
  SAVE AS XML example;
  
 
// In Visual Basic the file can then be loaded like this:
 
// In Visual Basic the file can then be loaded like this:
 
// Set adoPrimaryRS = New Recordset
 
// Set adoPrimaryRS = New Recordset
 
// adoPrimaryRS.Open "example.xml"</code>
 
// adoPrimaryRS.Open "example.xml"</code>
 +
  
 
==Products==
 
==Products==

Revision as of 14:57, 20 April 2009

Class

SQL Applications


Purpose

Specify the default format for XML files created by SELECT...SAVE AS XML


Syntax

SET XMLFORMAT TO <RECITAL | ADO>

See Also

SELECT, XML


Description

The SET XMLFORMAT TO <RECITAL | ADO> command allows you to specify the default format for XML files created by SELECT...SAVE AS XML. The XMLFORMAT can be either RECITAL or ADO (Microsoft® ActiveX® Data Objects). Any XML files created in the ADO format can be loaded with the Open method of an ADO Recordset object.

The default XMLFORMAT setting is ADO. The default XMLFORMAT setting can also be overridden using the FORMAT clause on the SELECT statement.


Example

set xmlformat to ADO
EXEC SQL
  SELECT * FROM example
  SAVE AS XML example;
 
// In Visual Basic the file can then be loaded like this:
// Set adoPrimaryRS = New Recordset
// adoPrimaryRS.Open "example.xml"


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer