XmlConvert.IsXmlChar Method (Char)

 

Checks if the passed-in character is a valid XML character.

Namespace:   System.Xml
Assembly:  System.Xml (in System.Xml.dll)

public static bool IsXmlChar(
	char ch
)

Parameters

ch
Type: System.Char

The character to validate.

Return Value

Type: System.Boolean

true if the passed in character is a valid XML character; otherwise false.

For details about allowed characters, see the XML 1.0 spec (fourth edition) recommendation.

.NET Framework
Available since 4.0
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: