Luigi,
The only way that you can do this is if you get the underlying stream
that the reader is attached to and then set the position of the stream to
the beginning. If you do this, you will probably have to create a new
reader and pass the stream to that, as you can't tell if the old one is
caching information read from the underlying stream or not.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"BLUE" <bluewrote in message news:ew**************@TK2MSFTNGP04.phx.gbl...
>I can set memory stream position to 0 to "reset" it to the initial
position, but is there a similar method to reset XmlReader position (else
it is at EOF)?
I've seen deprecated XmlTextReader had ResetState method... why XmlReader
has not?
Thanks,
Luigi.