Well, Xml Reader does not support that scenario unfortunately. It expects to
start from the beginning of the document.
My requirement is to be able to part process an xml file, then complete the
processing later on. This could even be after a system reboot! And the files
could be very large. Say 200mb or more. It must be stream based xml
processing, and I don't want to have to start reading from the start because
the files will be coming over the network.
I am considering developing such a facililty myself but don't fancy coding
xml parsing from scratch. Are there any helper libraries out there that
could relieve some of the burden?
Thanks
"Oleg Tkachenko [MVP]" <oleg@NO!SPAM!PLEASEtkachenko.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Xerox wrote:
What I really want to be able to do is create an XmlReader that I can
detach from a stream. Persist the XmlReader's state, then reattach it to the
stream at a later date and have the XmlReader advance up to where it was in the
stream instantly by doing a seek on the stream.
I think it should work unless you are modifying stream, why not? But
what's the point?
--
Oleg Tkachenko [XML MVP, MCP]
http://blog.tkachenko.com