class Nokogiri::XML::NodeSet

def remove_attr name

Remove the attributed named +name+ from all Node objects in the NodeSet
##
def remove_attr name
  each do |el|
    next unless el.respond_to? :remove_attribute
    el.remove_attribute(name)
  end
  self      
end