Get XML String Out of an Instance of a Class Generated from an XSD File by XSD.exe
Copy this code and paste it in your HTML
TextWriter writer
= new StringWriter
(); XmlSerializer serializer
= new XmlSerializer
(myObject
.GetType()); serializer.Serialize(writer, myObject);
return writer.ToString();
Report this snippet
Comments
Subscribe to comments