Rich Wallace wrote:
Worked great! If I have more than one instance of the text that I want to
replace, will it pick up all instances in the string or just the first one
it finds?
No, it's classical substring replacement, whenever substring is matched it's
replaced with another substring (second argument).
I'm still wondering, how do you get & in XmlTextReader, probably via
ReadInnerXml() method? Actually if you need string value (not XML fragment) as
value you can read it using Value property or ReadElementString() method -
then you don't have to bother about such XML-syntax-specific stuff like
escaping & etc - all will be done by XmlReader.
--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel