o.convertdata(lnResultMode, lcDocRoot, lcTable, lcRow)
Cursor XML Modes
0 - VFP Cursor (just returns)
1 - XML from cursor
2 - XML from cursor with Schema
3 - XML from cursor with DTD
5 - XML from Cursor using VFPs CursorToXML
6 - XML from Cursor using VFPs CursorToXML with SchemaObject XML Modes:
11 - XML from oData member
12 - XML from oData member with Schema
13 - XML from oData member with DTD
20 - XML from object hierarchical (No Schema/DTD)Miscellaneous Modes:
30 - ADO recordset from cursor (into vResult)
40 - Binary conversion of VFP cursor (EncodeDbf) (into vResult)
lcDocRoot
Optional - Docroot element name for generated XML
lcTable
Optional - table level element name
lcRow
Optional - row level element name
The cursor export methods work on the currently open cursor so the following works:
o = CREATE('wwbusiness')
use tt_cust
o.ConvertData(2)
ShowXML(o.cResultXML)
Usually you'll want to use Query() with the lnResultMode parameter set.