My issue is essentially if I close the XmlValidatingReader does the
underlying Stream automatically get released or do I need to explicitly
close it?

readStream.Close

If I need to explicitly close it, is there a way to reference the
underlying Stream for an XmlValidatingReader? Meaning, I'd like to be able
to pass the XmlValidatingReader into methods other than the one the opened
it and the Stream as:

XmlTextReader xmlReader = new XmlTextReader(readStream);
XmlValidatingReader xmlValidatingReader = new XmlValidatingReader
(xmlReader);


Can I close the reader inside this method when I'm done and have readStream
closed too??  Is there a way to tell?
studentSchedulingAdapter.Fill(xmlValidatingReader);

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
NEW! ASP.NET courses you may be interested in:

2 Days of ASP.NET, 29 Sept 2003, in Redmond
http://www.develop.com/courses/2daspdotnet

Guerrilla ASP.NET, 13 Oct 2003, in Boston
http://www.develop.com/courses/gaspdotnet

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to