Hi, everyone.
I wanted to feed an XmlDocument to a Stream object.
I am using Visual Studio 2005.
This compiled:
but was very upset about newStream being null.
I tried to instantiate a 'new' stream but it didn't seem
to have a constructor as most objects seem to have.
I'm not in love with this method by any means, so suggestions on getting the text into a stream would be welcome.
Maybe get the xml as a string or something.
Thanks everyone.
Pat
Gather or post content for free.
I wanted to feed an XmlDocument to a Stream object.
I am using Visual Studio 2005.
This compiled:
Code:
Stream newStream = null;
myXml.Save(stream);
I tried to instantiate a 'new' stream but it didn't seem
to have a constructor as most objects seem to have.
Code:
Stream newStream = new Stream();
I'm not in love with this method by any means, so suggestions on getting the text into a stream would be welcome.
Maybe get the xml as a string or something.
Thanks everyone.
Pat
Gather or post content for free.