Example #1
0
        /// <summary>
        /// Check if Element contains specified attribute.
        /// </summary>
        /// <param name="attributeName">The name of the attribute to look for</param>
        /// <returns>true if attribute exists false otherwise</returns>
        public bool HasAttribute(string attributeName)
        {
            if (string.IsNullOrEmpty(attributeName))
            {
                throw new ArgumentException("attributeName");
            }

            return(DomElement.HasAttribute(new nsAString(attributeName)));
        }