def add_attributes hash
      if hash.kind_of? Hash
        hash.each_pair {|key, value| @attributes[key] = value }
      elsif hash.kind_of? Array
        hash.each { |value| @attributes[ value[0] ] = value[1] }
      end
    end
def add_attributes hash
      if hash.kind_of? Hash
        hash.each_pair {|key, value| @attributes[key] = value }
      elsif hash.kind_of? Array
        hash.each { |value| @attributes[ value[0] ] = value[1] }
      end
    end
Add multiple attributes to this element.
 hash:: is either a hash, or array of arrays
  el.add_attributes( {"name1"=>"value1", "name2"=>"value2"} )
  el.add_attributes( [ ["name1","value1"], ["name2"=>"value2"] ] )