System.Xml.XmlReader.IsNameToken Method

Returns a value indicating whether or not the string argument is a valid XML name token.

Syntax

public static bool IsNameToken (string str)

Parameters

str
The name token to validate.

Returns

true if it is a valid name token; otherwise false.

Remarks

This method uses the tp://go.microsoft.com/fwlink/?LinkId=49863 to determine whether the name token is valid.

Requirements

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