I know this may sound a daft question but I'm wanting to save Serialized XML into a databse but for the life of me I cant do it.
So far I have my class
public static void SerializeToXML(Candidate candidate)
XmlSerializer serializer = new XmlSerializer(typeof(Candidate));
TextWriter textWriter = new StreamWriter(@"C:\movie.xml");
This basically save the serialized properties in the Candidate class into the movie.xml file which is great but I want it to return XML (so it can be re-used) so I can store the XML in the XML database field
Any help would be greatly appreciated
View Complete Post