[Mono-list] Xml pull Parsing and XmlText Reader in Mono
Atsushi Eno
atsushi@ximian.com
Tue, 20 Jul 2004 09:33:46 +0900
> 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