Difference between revisions of "SET XMLFORMAT"

From Lianjapedia
Jump to: navigation, search
m (1 revision: SQL)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Specify the default format for XML files created by SELECT...SAVE AS XML
 
Specify the default format for XML files created by SELECT...SAVE AS XML
 
  
 
==Syntax==
 
==Syntax==
Line 8: Line 7:
 
==See Also==
 
==See Also==
 
[[SQL SELECT|SELECT]], [[XML]]
 
[[SQL SELECT|SELECT]], [[XML]]
 
  
 
==Description==
 
==Description==
Line 14: Line 12:
  
 
The default XMLFORMAT setting is ADO.  The default XMLFORMAT setting can also be overridden using the FORMAT clause on the SELECT statement.
 
The default XMLFORMAT setting is ADO.  The default XMLFORMAT setting can also be overridden using the FORMAT clause on the SELECT statement.
 
  
 
==Example==
 
==Example==
Line 26: Line 23:
 
// adoPrimaryRS.Open "example.xml"</code>
 
// adoPrimaryRS.Open "example.xml"</code>
  
 
==Products==
 
Recital Server, Recital
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]

Revision as of 12:59, 10 February 2012

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
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"