class ActiveSupport::XmlMini_NokogiriSAX::HashBuilder

def end_element(name)

def end_element(name)
  if current_hash.length > current_hash.delete(HASH_SIZE_KEY) && current_hash[CONTENT_KEY].blank? || current_hash[CONTENT_KEY] == ""
    current_hash.delete(CONTENT_KEY)
  end
  @hash_stack.pop
end