I have two XML reader objects, readerA and readerB which read the same XML.
I then perform a number of read operations on readerA, which moves readerA to a different position to readerB.
Now, I want to set readerB's position to the same position as that of readerA.
But if I do the following:
readerA = readerB;
I seem to do a shallow copy of readerA and everytime I do a read on readerA thereafter, readerB reads as well.
How do I do a proper copy of readerB from readerA, without having readerB read everytime readerA does??