Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
From XMLUPDATEGRAM() to UPDATE command?
Message
From
12/07/2005 16:36:31
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01031754
Message ID:
01031895
Views:
14
Dmitry,

>It looks like Alex Feldstein's procedure XMLUpdateGramParse() could be applied (with some modifications) to process XML created with XMLUPDATEGRAM(). But I am surprised as to why VFPT does not have something native in VFP to deal with it? That is, what was the purpose of creating the XMLUPDATEGRAM()? I am not complaining to you, just sharing my frustration <g>.

You might want to avoid XMLUPDATEGRAM() completely and use XMLAdapter on both sides. Use XMLAdapter.AddTableSchema() to point the adapter to your view cursor, set XMLAdapter.IsDiffGram = .T., then call XMLAdapter.ToXML to create the diffgram.

You could then use XMLAdapter.ApplyDiffGram on the other end. I have not tested the above scenario, but it's where I would look if I were in your shoes.

As for why there is not a way built into VFP to apply XMLUPDATEGRAM, I'm guessing that they focused their energies on the more recent DiffGram technology instead of finishing the job they started a long time ago with XMLUPDATEGRAM.
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform