Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Web Services in .Net
Message
From
05/06/2003 16:46:40
 
 
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:
00796944
Views:
16
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
Previous
Reply
Map
View

Click here to load this message in the networking platform