DevTreks.Data/RuleHelpers/GeneralRules.cs
/// <summary>
/// Removes any chars that would violate a clean xml attribute value
/// </summary>
/// <param name="attName"></param>
/// <param name="attValue"></param>
Removes any chars that would violate a clean xml attribute value
Removes any chars that would violate a clean xml attribute value
private static void RemoveXmlChars(string attName, ref string attValue)
        {
            attValue = attValue.Replace("<", "-");
            attValue = attValue.Replace(">", "-");
            attValue = attValue.Replace("&", "-");
        }
private static void RemoveXmlChars ( string attName , ref string attValue ) { attValue = attValue . Replace ( " " , " " ) ; attValue = attValue . Replace ( " " , " " ) ; attValue = attValue . Replace ( " " , " " ) ; }
Removes any chars that would violate a clean xml attribute value
Removes any chars that would violate a clean xml attribute value
attName
string
None
string
ref
attValue
None