I have a situation where I'm storing some XML into a string like so:
string searchXML = @"<Search order=""name""><Group conditions_operand=""all""><Condition model=""Company""><Attribute>id</Attribute><Operator>equals</Operator><Values><Value>" + variablenamehere + "</Value></Values></Condition></Group></Search>";
and I've noticed that it's storing this into the string with several escape characters included, for example if i inspect the string I see:
<Search order=\"name\"><Group conditions_operand=\"all\">
Is it actually storing the \ character in there? If so how can I get rid of it as I do not think this is properly formatted XML. I am using double quotes in the first place because I need to do that as an escape sequence.