I am on .NET 2.0 and am trying to serialize an object to an XmlDocument
(or a string which I can then create an XmlDocument from).
What I have so far is (User is my class);
XmlSerializer x = new XmlSerializer(typeof(User));
MemoryStream memStream = new MemoryStream();
How can I get this to a string or an XmlDocument?
The serialization works fine as if I serialize to a text file (using
StreamWriter), everything looks fine.
I've try converting to bytes, reading on XmlWriter, but nothing seems
to work.
Thanks,