isValidXmlName

fnbool isValidXmlName(string s) @safe nothrow pure

Returns true if s is a valid XML 1.0 Name (ASCII subset).

A Name must start with a NameStartChar and may be followed by zero or more NameChar characters. This is used for ID and IDREF lexical validation.

Parameters

sThe string to validate.

Returns

true if s is a valid Name.