why tempspace results here??
Posted
by SubPortal
on Stack Overflow
See other posts from Stack Overflow
or by SubPortal
Published on 2010-05-12T06:22:57Z
Indexed on
2010/05/12
6:24 UTC
Read the original article
Hit count: 174
if we supposed that "A.B." is a value for an xml element called given-names the following code converts this value to "A.tempspacetempspaceB." instead of "A. B."
foreach (XElement initial in doc.XPathSelectElements("//given-names"))
{
string v = initial.Value.Replace(".", ". ").TrimEnd(' ');
initial.SetValue(v);
}
So why tempspace comes here instead of literal space??
thank you for any help.
© Stack Overflow or respective owner