Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Do I need to be using XML for this?
Message
De
08/12/2008 12:36:05
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Do I need to be using XML for this?
Divers
Thread ID:
01366006
Message ID:
01366006
Vues:
56
I don't really get all this XML stuff, and somehow, it has left me feeling kind left behind. I have never used it, and maybe I don't need it. I have one case where I am tempted to think I could, so let's see...

First off, my app is only running as an EXE right here on our lcoal LAN. So, no http stuff is going on (I guess that is the purpose of XML?)

So I have a case in a Parent-Child form where I let the user go to a parent record, and copy all the child records to a temp cursor (via SQL call with READWRITE), then they can go to another parent record in the same instance of the form, and they can paste the "buffered" child records as child records for the current parent. Upon pasting, I change the foreign key to point to the current parent. This provides a copy-paste like feature.

Notice that above I said "SAME INSTANCE". All my forms can run multiple instances and each intsance uses a Private DataSession. This lets each instance have its own buffered records cursor. Now, I'd like to have only one buffered record set that can be used *between* form instances, so that you could copy in one instance, and paste into another intance.

So, I could (1) write the cursor to a table, or (2) create public/global collection of objects (too complicated), or maybe (3) use this fancy XML stuff just to say I use XML.

So, is this new structure a good use of XML, or should I just stick to using tables? What would I gain with XML?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform