I am doing xml serialization using TextWriter and I am able to get the string of data, however I need to convert the string of data from TextWriter object to XMLDocument format. Does anyone have any idea on doing this?
My Code as shown below:
XmlSerializer xml = new XmlSerializer(Info.GetType()); TextWriter InfoXML = new StringWriter(); xml.Serialize(InfoXML, PInfo); // how to convert InfoXML to a XMLDocument format??