/// <summary> /// Gets the value of the attribute with the specified name. /// </summary> /// <param name="name">The name of the attribute to get a value for.</param> /// <returns> /// The value of the attribute or an empty string if the node is invalid /// or an attribute with the specified name is not found. /// </returns> public string AttributeValue(string name) { if (name == null) { throw new ArgumentNullException("name"); } if (name == String.Empty) { throw new ArgumentException("name"); } Check(); ANode node = AttributeANode(name); return(node == null ? String.Empty : node.@string().Token()); }