Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CursorToXML, XMLToCursor and XMLAdapter
Message
From
12/05/2006 16:41:09
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
12/05/2006 07:20:08
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01121251
Message ID:
01121492
Views:
9
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform