ShawnMolloy
MIS
I've created an XmlDocument object and would like to send the output to a string. The save method of the document seenms like it only acepts and XmlWriter. How do I adapt that to write to a string instead of a file?
My ultimate goal is to send the XML to a flash player via a querystring.
XmlDocument doc = new XmlDocument();
XmlNode docNode = doc.CreateXmlDeclaration("1.0", "UTF-8", null);
doc.AppendChild(docNode);
// songs element
XmlNode songs = doc.CreateElement("songs");
doc.AppendChild(songs);
// here i want to save to a string and send to querystring.