class Nokogiri::XML::SAX::Parser

def initialize(doc = Nokogiri::XML::SAX::Document.new, encoding = "UTF-8")

Create a new Parser with +doc+ and +encoding+
def initialize(doc = Nokogiri::XML::SAX::Document.new, encoding = "UTF-8")
  @encoding = check_encoding(encoding)
  @document = doc
  @warned   = false
end