IsXmlChar() public static method

public static IsXmlChar ( char ch ) : bool
ch char
return bool
Example #1
0
        static string RemoveInvalidXmlChars(string text)
        {
            var validXmlChars = text.Where(ch => XmlConvert.IsXmlChar(ch)).ToArray();

            return(new string(validXmlChars));
        }