rp_data::cursortoxml

This save the cursor to xml and adds index and structure information to the XML (Public)

o.cursortoxml( tccursor, tlTableNode, tlOmitHeader)

Return Value

True or False

Parameters

tcCursor
This is the name of the cursor which will be placed into the property oRows

tlTableNode
If this is true then no table header, "<table">, will be inserted into the XML

tlOmitHeader
If this is true then no XML Header will be inserted into the XML

Remarks

This method is useful for obtaining XML data from cursors you have created. You can append more than
one table into the xml by setting the property lappendxml to True. In this case the cursors
data will be added to the XML already in cResultXML

Also important to this method are the following properties
o.lincludefoxstructurefromquery
o.nxmlschematype
o.lstoreindexes


Example

o.lincludefoxstructurefromquery = .t.
o.nxmlschematype = 0
o.lstoreindexes = .t.
o.CursorToXML("TRecords",.T.)

The above would

1.	Place an XML version of "Trecords" into the property cResultXML
2.	Add the foxpro table structure of "Trecords" to the XML in cResultXML
3.  Include no schema
4.	Add the indexes on the table "Trecords" to the XML in cResultXML
5.  Add Table Node

See also:

Class rp_data


Last Updated: 23/11/2005