Difference between revisions of "SET XMLFORMAT"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
(19 intermediate revisions by 3 users not shown) | |||
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 | ||
Line 11: | Line 4: | ||
==Syntax== | ==Syntax== | ||
− | SET XMLFORMAT TO <RECITAL | + | SET XMLFORMAT TO <RECITAL | ADO> |
− | + | ||
==See Also== | ==See Also== | ||
− | SELECT | + | [[SQL SELECT|SELECT]], [[XML]] |
==Description== | ==Description== | ||
− | The SET XMLFORMAT TO <RECITAL | + | 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. | The default XMLFORMAT setting is ADO. The default XMLFORMAT setting can also be overridden using the FORMAT clause on the SELECT statement. | ||
− | ==Example==< | + | ==Example== |
+ | <code lang="recital"> | ||
set xmlformat to ADO | set xmlformat to ADO | ||
− | + | SELECT * FROM example; | |
− | SELECT | + | SAVE AS XML example |
− | SAVE AS XML example | + | |
− | // In Visual Basic the file can then be loaded: | + | // In Visual Basic the file can then be loaded like this: |
// Set adoPrimaryRS = New Recordset | // Set adoPrimaryRS = New Recordset | ||
− | // adoPrimaryRS.Open "example.xml" | + | // adoPrimaryRS.Open "example.xml"</code> |
− | + | ==Products== | |
− | Recital | + | Recital Server, Recital |
+ | [[Category:Documentation]] | ||
+ | [[Category:Commands]] | ||
+ | [[Category:Set_Commands|XMLFORMAT]] | ||
+ | [[Category:SQL]] | ||
+ | [[Category:SQL Set Commands]] | ||
+ | [[Category:XML]] | ||
+ | [[Category:XML Set Commands]] |
Latest revision as of 12:25, 24 December 2009
Purpose
Specify the default format for XML files created by SELECT...SAVE AS XML
Syntax
SET XMLFORMAT TO <RECITAL | ADO>
See Also
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"
Products
Recital Server, Recital