Install
sudo gem install nokogiri
Contribute
github.com/tenderlove/nokogiri

An HTML, XML, SAX, & Reader parser with the ability to search documents via XPath or CSS3 selectors… and much more

Nokogiri

Class Nokogiri::XML::SyntaxError inherits from ::Nokogiri::SyntaxError

 

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

Attributes

code R
column R
domain R
file R
int1 R
level R
line R
str1 R
str2 R
str3 R

Public Instance Methods

error?() Show Source
 

return true if this is an error

# File lib/nokogiri/xml/syntax_error.rb, line 32 32: def error? 33: level == 2 34: end
fatal?() Show Source
 

return true if this error is fatal

# File lib/nokogiri/xml/syntax_error.rb, line 38 38: def fatal? 39: level == 3 40: end
none?() Show Source
 

return true if this is a non error

# File lib/nokogiri/xml/syntax_error.rb, line 20 20: def none? 21: level == 0 22: end
to_s() Show Source
# File lib/nokogiri/xml/syntax_error.rb, line 42 42: def to_s 43: super.chomp 44: end
warning?() Show Source
 

return true if this is a warning

# File lib/nokogiri/xml/syntax_error.rb, line 26 26: def warning? 27: level == 1 28: end