Information générale
Titre:
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement