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