Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CursorToXML, XMLToCursor and XMLAdapter
Message
De
12/05/2006 16:41:09
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
12/05/2006 07:20:08
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01121251
Message ID:
01121492
Vues:
14
>I was using CursorToXML and XMLToCursor to pass some information back-and-forth between some scripts, but now I have a situation where I have multiple cursors to pass. Someone suggested using the CursorAdapter to do this, but I'm having some difficulty understanding it's usage. How is it different from the other ones? With those, I just give it my XML variable, or cursor, set some flags and I'm good to go. Anyone have an example of this in code?

Why not have one top level cursor, which would have the alias of each cursor and a memo with its XML. So for each cursor involved, you

insert into topcursor (cAlias, cXml) values (lcAlias, lcXml)

and then on the receiving end (in rough metacode)

xmltocursor(tcXml, "topcursor")
scan
xmltocursor(topcursor.cXml, topcursor.cAlias)
endscan

That way you still pass a single string, and everything's in it. The cXml field would have to be a binary memo, AFAIK. I've done something like this for (believe it or not) backup.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform