class Nokogiri::XML::SAX::Parser

def initialize(doc = Nokogiri::XML::SAX::Document.new, encoding = nil)


parsing the input. (default +nil+ for auto-detection)
- +encoding+ (optional Encoding, String, nil) An Encoding or encoding name to use when
through the #document attribute.
events. Will create a new Nokogiri::XML::SAX::Document if not given, which is accessible
- +handler+ (optional Nokogiri::XML::SAX::Document) The document that will receive
[Parameters]

Create a new Parser.

new(handler, encoding) ⇒ SAX::Parser
new(handler) ⇒ SAX::Parser
new ⇒ SAX::Parser
:call-seq:
##
def initialize(doc = Nokogiri::XML::SAX::Document.new, encoding = nil)
  @encoding = encoding
  @document = doc
  @warned   = false
  initialize_native unless Nokogiri.jruby?
end