Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Append Data to VFP table from XML
Message
De
17/01/2004 17:50:00
 
 
À
17/01/2004 12:42:14
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
00867810
Message ID:
00867846
Vues:
23
Jim,

Getting an XML file into a DataSet is pretty straightforward. Try something like this:
DataSet ds = new DataSet();
if (File.Exists("MyXMLFile.xml"))
  ds.ReadXML("MyXMLFile.xml", XmlReadMode.InferSchema);
Your DataSet should then contain the two tables, which you'll then use to insert into your VFP tables.

You'll need to use the OleDbDataAdapter to connect to your VFP database. Read up on this in the documentation and start experimenting with it a bit. Post some specific questions as they come up.

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform