>>myXDOC.OuterXml.Replace("\\","") doesn't work.
>>myXDOC.OuterXml.Replace(@"\","") doesn't work.
myXDOC.OuterXml.Replace("\"c,""c) won't compile.
What do you mean by "doesn't work"? Compile errors?
Strange functionality? May i be as bold as to suggest
that you might have assumed that Replace-method is
of type void (while it's of type string, ennoyingly
surprising)? Please elaborate.
I didn't see first part of the post but if you are expecting the contents
of myXDOC to change, that is your problem.
I don't expect that. However, i forget this, every
now and then.
You have to assign the value...
Yes, that's the point of what i wrote. Perhaps not
clear enough. The method is not a void, but string
type. Hence, one needs to catch the result of it.
--
Regards
Konrad Viltersten
----------------------------------------
May all spammers die an agonizing death;
have no burial places; their souls be
chased by demons in Gehenna from one room
to another for all eternity and beyond.