Export (0) Print
Expand All

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
[C#]
public static bool IsNameToken(
 string str
);
[C++]
public: static bool IsNameToken(
 String* str
);
[JScript]
public static function IsNameToken(
   str : String
) : Boolean;

Parameters

str
The name token to validate.

Return Value

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

Remarks

This method uses the W3C XML 1.0 Recommendation (http://www.w3.org/TR/2000/REC-xml-20001006#NT-Nmtoken) to determine whether the name token is valid.

Requirements

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

Show:
© 2014 Microsoft