Use the AttributeSet query method instead of the Attribute method.