Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Web Services in .Net
Message
From
05/06/2003 16:40:07
 
 
To
05/06/2003 16:22:03
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
General information
Forum:
ASP.NET
Category:
Web Services
Miscellaneous
Thread ID:
00796931
Message ID:
00796940
Views:
17
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
Previous
Reply
Map
View

Click here to load this message in the networking platform