Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Web Services in .Net
Message
De
05/06/2003 16:46:40
 
 
À
05/06/2003 16:22:03
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Web Services
Divers
Thread ID:
00796931
Message ID:
00796944
Vues:
17
Jim,

I'm assuming the XML has a schema with it. If so, try this (and you won't need to write it to a file):
// assuming XML is your string containing the XML
DataSet ds = new DataSet();
StringReader sr = new StringReader(XML);
ds.ReadXML(sr, XmlReadMode.InferSchema);
ds.AcceptChanges;
~~Bonnie

>Hello,
>
> I am using a web service that reports back the news. The return string is XML and is returned to a string variable. How would I write the XML to a file so I can put it into a dataset?
Bonnie Berent DeWitt
NET/C# MVP since 2003

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

Click here to load this message in the networking platform