General information
Title:
Using CursorToXML() and XMLToCursor() in VFP7
I'm looking for a way to use CursorToXML() and XMLToCursor() in VFP7 instead of the West Wind wwXML class. Awhile back I tried every combination of parameters for CursorToXML() but the Character fields that contained numeric data were being being changed to Numeric fields. Using wwXML got the job done but I would prefer to use the VFP functions, if possible.
Currently, I'm using #1 to put data into an XML string and then #2 to put it back into a cursor:
#1
USE MyTable
lcxmlstring = ""
oxml = CREATEOBJECT("wwXML")
oxml.ncreatedatastructure = 1
oxml.createdatastructureschema()
lcxmlstring = oxml.CURSORTOXML()
#2
lcCursor = "MyCursor"
oxml.XMLTOCURSOR(lcxmlstring, lcCursor)
Thanks for the help.
Aaron
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only