This documentation is archived and is not being maintained.

XmlReader.IsNameToken Method

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

[Visual Basic]
Public Shared Function IsNameToken( _
   ByVal str As String _
) As Boolean
public static bool IsNameToken(
 string str
public: static bool IsNameToken(
 String* str
public static function IsNameToken(
   str : String
) : Boolean;


The name token to validate.

Return Value

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


This method uses the W3C XML 1.0 Recommendation ( to determine whether the name token is valid.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

XmlReader Class | XmlReader Members | System.Xml Namespace