/// <summary>
 /// Checks whether the given name is a valid XML name.
 /// </summary>
 public static bool IsValidXmlName(string name)
 {
     if (string.IsNullOrWhiteSpace(name))
     {
         throw new ArgumentException("The XML name cannot be null, empty or consist solely of white space", "name");
     }
     return(TagReader.IsValidName(name));
 }