> My situation is simple:
> I have an Xml doc that I want to transform into another Xml doc.
[quoted text clipped - 5 lines]
> The call I'm making to Transform is the one that requires a Stream
> object as a parameter.
[...]
> My problem is with my understanding of how Streams work.
>
> When I run this code I get an error saying that the Stream cannot be
> null, which I understand. What I'm not getting though is that streams
> are for reading and writing, does this just mean from files written
> to disk? Or could I use a stream the way I attempting do it right now?
Jacques,
there are different types of streams -- FileStrams, NetworkStreams,
MemoryStreams. If you don't need to persist your XSLT result at this
point in time, use a MemoryStream to dump the transformation result to
memory. From here, you can construct another XmlDocument, either using
XmlDocument.Load() or an XmlReader that wraps the MemoryStream.
Cheers,

Signature
http://www.joergjooss.de
mailto:news-reply@joergjooss.de