private void SetNodeXml(string key, string form, XmlNode node)
{
if(KeysOfVariablesThatAreUrlEncoded.Contains(key))
{
// Reference: BL-3235
//remove the url path encoding
form = UrlPathString.CreateFromUrlEncodedString(form).NotEncoded;
//switch to html/xml encoding
form = HttpUtility.HtmlEncode(form);
}
node.InnerXml = form;
}