Is it possible to save the current position of XMLReader for future use?

I created an XMLReader object from a Stream object that was previously written by an XMLWriter object.

I know that the XMLReader object XMLReader only forward, and therefore I want to keep the current reading position, so I will continue to read only from the place that I stopped reading.

Is it possible?
I know that this can be difficult, because XMLReader read fragments of memory blocks, so there may be a problem restoring the current reading point of XML elements.

Please advise only if you know for sure that this will work from your experience with this problem.

Note :
1. I thought just to save the whole link to the XMLReader object for this script.
2. XMLReader Position = the current pointer to the reading element is not Stream.Position , because it is something else.

+6
source share
1 answer

All Articles