private static Dictionary <string, string> formatKeys(IEnumerable <KeyValuePair <string, string> > toFormat) { return(toFormat.ToDictionary(kv => Xml.Escape(kv.Key), kv => kv.Value)); }