Nokogiri::XML::SAX
module Nokogiri::XML::SAX
SAX Parsers are event driven parsers. Nokogiri provides two different event based parsers when dealing with XML. If you want to do SAX style parsing using HTML, check out Nokogiri::HTML::SAX.
The basic way a SAX style parser works is by creating a parser, telling the parser about the events we're interested in, then giving the parser some XML to process. The parser will notify you when it encounters events you said you would like to know about.
To register for events, you simply subclass Nokogiri::XML::SAX::Document, and implement the m