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

System.Xml.XmlReader.IsName Method

Determines whether the specified string is a valid XML name. [Edit]

public static bool IsName (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-Name) to determine whether the name is valid.

[Edit]

Requirements

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