An instance of System.Xml.XmlWriter is writing to an underlying Stream right ?(regardless of what the specific implementation of the XmlWriter is)
So how come there are no methods available for a programmer to retrieve the Stream object from the XmlWriter?
I'm sure I am missing something simple. Thanks in advance.
PS: In case anyone asks, what I really want to do is get the stream from an XmlWriter instance passed to me, and create an XmlReader from it (flush the Writer first if needs be).
I then need to use the XmlReader as a parameter to XslCompiledTransform.Transform method
Edit: punctuation