Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I get this into a string variable?
Message
 
To
09/05/2008 15:30:14
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01316145
Message ID:
01316155
Views:
22
This message has been marked as the solution to the initial question of the thread.
>Newbie question. I have the following snippet of C# code that writes the contents of "SearchResponse" to a file. How can I get the contents into a string variable instead?
>

Try something like this:
XmlSerializer xmlizer = new XmlSerializer(typeof(SearchResponse));
StringWriter sw = new StringWriter();
xmlizer.Serialize(sw, iw.SearchResponse); 
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform