class Nokogiri::XML::SyntaxError

exceptions are typically stored on Nokogiri::XML::Document#errors.
This class provides information about XML SyntaxErrors. These
##

def error?

return true if this is an error
##
def error?
  level == 2
end

def fatal?

return true if this error is fatal
##
def fatal?
  level == 3
end

def none?

return true if this is a non error
##
def none?
  level == 0
end

def to_s

def to_s
  super.chomp
end

def warning?

return true if this is a warning
##
def warning?
  level == 1
end