Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Web Services in .Net
Message
De
05/06/2003 16:40:07
 
 
À
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:
00796940
Vues:
16
Hi, Jim.

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

In order to write a string to a file, one way would look like this:
FileStream oFs = new FileStream("c:\folder\yourfile.xml",FileMode.CreateNew,FileAccess.ReadWrite);

StreamWriter oWriter = new StreamWriter(oFs);

oWriter.Write(youVariableWithXML);
oWriter.Flush();
oWriter.Close();
oFs.Close();
If you're using the XMLTextReader to read this XML, it might be a method that could do that as well, but I'm not sure about it.

HTH
Claudio Lassala
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform