J
Janne
I have a Stream-object with a serialized Xml-Object.
How do I load an XmlDocument with the data from the
Stream-object?
I have tried the code below but it won't work.
Try 1.
XmlDocument myXmlDoc = new XmlDocument();
myXmlDoc.Load(myStream);
Try 2.
XmlTextReader myXmlTextReader = new XmlTextReader
(myStream);
XmlDocument myXmlDoc = new XmlDocument();
myXmlDoc.Load(myXmlTextReader);
How do I load an XmlDocument with the data from the
Stream-object?
I have tried the code below but it won't work.
Try 1.
XmlDocument myXmlDoc = new XmlDocument();
myXmlDoc.Load(myStream);
Try 2.
XmlTextReader myXmlTextReader = new XmlTextReader
(myStream);
XmlDocument myXmlDoc = new XmlDocument();
myXmlDoc.Load(myXmlTextReader);