Mono Class Library: System.Xml.XmlReader Overview | Members

System.Xml.XmlReader.IsNameToken Method

Determines whether the specified string is a valid XML name token (Nmtoken). [Edit]

public static bool IsNameToken (string s)

Parameters

s
A string specifying the name to validate. [Edit]

Returns

A bool where true indicates the name is valid; otherwise false. [Edit]

Remarks

Note:

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.

[Edit]

Requirements

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