System.Xml.XmlConvert.IsXmlChar Method

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

Syntax

public static bool IsXmlChar (char ch)

Parameters

ch
The character to validate.

Returns

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

Remarks

For details about allowed characters, see the tp://go.microsoft.com/fwlink/?LinkId=147985 recommendation.

Requirements

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