class Nokogiri::XML::SyntaxError

def level_to_s

def level_to_s
  case level
  when 3 then "FATAL"
  when 2 then "ERROR"
  when 1 then "WARNING"
  end
end