Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using CursorToXML() and XMLToCursor() in VFP7
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Titre:
Using CursorToXML() and XMLToCursor() in VFP7
Divers
Thread ID:
00710047
Message ID:
00710047
Vues:
73
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
Fil
Voir

Click here to load this message in the networking platform