# File lib/nokogiri/html/sax/parser.rb, line 39 def parse_file filename, encoding = 'UTF-8' raise ArgumentError unless filename raise Errno::ENOENT unless File.exists?(filename) raise Errno::EISDIR if File.directory?(filename) ParserContext.file(filename, encoding).parse_with self end