>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.