def start_element_namespace name, attributes = [], prefix = nil, uri = nil, ns = {}
attributes = attributes_to_hash(attributes)
if uri == @ns
case name.downcase
when 'record' then @record[:record] = MARC::Record.new
when 'leader' then @current_element = :leader
when 'controlfield'
@current_element=:field
@record[:field] = MARC::ControlField.new(attributes["tag"])
when 'datafield'
@record[:field] = MARC::DataField.new(attributes["tag"], attributes['ind1'], attributes['ind2'])
when 'subfield'
@current_element=:subfield
@record[:subfield] = MARC::Subfield.new(attributes['code'])
end
end
end