Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using CursorToXML() and XMLToCursor() in VFP7
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Title:
Using CursorToXML() and XMLToCursor() in VFP7
Miscellaneous
Thread ID:
00710047
Message ID:
00710047
Views:
72
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
Map
View

Click here to load this message in the networking platform