Aqueduct.Extensions.XmlExtensions.AttributeValue C# (CSharp) Method

AttributeValue() public static method

public static AttributeValue ( this node, string attrName ) : string
node this
attrName string
return string
        public static string AttributeValue(this XElement node, string attrName)
        {
            if (node == null)
                return string.Empty;

            var attr = node.Attribute(attrName);
            return attr != null ? attr.Value : string.Empty;
        }