A
Andy B
I have the following empty object:
XmlDocument ContractXmlDocument = new XmlDocument();
I was reading that you could use XmlSerializer.Serialize to serialize an
object (Contract) in this case to an XmlDocument object (above). How exactly
do you do this? I have the code for putting the object into a physical xml
file, but not into another Xml formatted Document object. My serialize to a
file code looks like this:
XmlWriter FileWriter = new XmlWriter();
Stream FileStream = new Stream(@"Contract.xml");
XmlSerializer.Serialize(Contract, FileStream);
Any ideas?
XmlDocument ContractXmlDocument = new XmlDocument();
I was reading that you could use XmlSerializer.Serialize to serialize an
object (Contract) in this case to an XmlDocument object (above). How exactly
do you do this? I have the code for putting the object into a physical xml
file, but not into another Xml formatted Document object. My serialize to a
file code looks like this:
XmlWriter FileWriter = new XmlWriter();
Stream FileStream = new Stream(@"Contract.xml");
XmlSerializer.Serialize(Contract, FileStream);
Any ideas?