[Mono-devel-list] Re: [Mono-list] Xml pull Parsing and XmlText Reader in Mono

Atsushi Eno atsushi at ximian.com
Mon Jul 19 20:33:46 EDT 2004

> I want to know whether XmlTextReader reads through the whole Stream
> when we call the constructor of XmlTextReader. OR Does it when we
> actually call the read() method.

Not the former one. XmlTextReader consumes 1024 bytes every time
when its internal cache is empty on Read() and the first construction
(note that XmlTextReader must detect encoding from XML declaration).

Caching is the same behavior as MS does as long as I did packet
monitoring (it consumed the netwoek stream regardless of markup kind).

Atsushi Eno

More information about the Mono-devel-list mailing list