This documentation is archived and is not being maintained.

XmlReader.IsName Method

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

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


The name to validate.

Return Value

true if the name is valid; otherwise, false.


This method uses the W3C XML 1.0 Recommendation ( to determine whether the name 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