wwXML::CreateADOXML

Creates an XML fragment from an ADO recordset.

<cursor>
   <row>
      <data1/>
      <data2/>
   </row>
</cursor>

Use this method if you want to combine multiple objects/cursors into a single XML document, or if you want to create a very simple XML layout. This document is well formed, but requires at least the <?xml version="1.0"> header.

o.CreateADOXML(loRS, lcName, lcRowName, lnIndent)

Return Value

The XML fragment for the ADO recordset.

Parameters

loRS
An ADO recordset.

lcName
Optional - element name used at the table level. Note this tag sits underneath the document root. (wwBanners in the example).
Default value: The name of the current Alias().

lcRowName
Optional - The element name used for each row of the cursor.
Default value: "row"

lnIndent
Optional - Indentation level to start with.


See also:

Class wwXML (Low Level Methods)

© West Wind Technologies, 1996-2024 • Updated: 10/30/99
Comment or report problem with topic