I have a class derived from XmlTextReader. It implements the following
methods:
public override void ReadEndElement()
public override void ReadStartElement()
public override string ReadString()
public override bool Read()
When the class is used to read a document, the Read override is called
many times and I can see the document contents being stepped through
using base.LocalName etc. What I don't understand is that the other
three overrides are never called. Samples I've found on Google seem to
indicate that all ReadXXX methods are called when a relevant document
item is encountered but that isn't happening in this case.
My aim is to replace an attribute value on all occurances of a specific
element. I can add code into the Read() override to identify when the
reader is processing that element, but need to override the behaviour of
ReadString() so I can substitute the new attribute value.
Thanks,
Ian