In my application I'm using XAttribute.SetValue(...)
to set the value of an xml-attribute. The value is provided by the user.
I have the following methode to set the attribute-value:
private void SetValue(XAttribute attribute, string input)
{
attribute.SetValue(input);
}
If the input is Hello "World"
then the value of the attribute is: Hello "World"
This is what I've expected.
If the input is already "masked" like Hello "World"
then the value of the attribute is: Hello "World"
That's not correct.
Is there a way to avoid this conversion?