/// <summary> /// Does the location represent an attribute's name? /// </summary> /// <param name="location"> /// The XML location. /// </param> /// <returns> /// <c>true</c>, if the location represents an attribute's name; otherwise, <c>false</c>. /// </returns> public static bool IsAttributeName(this XmlLocation location) { if (location == null) { throw new ArgumentNullException(nameof(location)); } return(location.IsAttribute() && location.IsName()); }