Class: SAXMachine::SAXNokogiriHandler
- Inherits:
-
Nokogiri::XML::SAX::Document
- Object
- Nokogiri::XML::SAX::Document
- SAXMachine::SAXNokogiriHandler
- Includes:
- SAXAbstractHandler
- Defined in:
- lib/sax-machine/handlers/sax_nokogiri_handler.rb
Constant Summary
Constants included from SAXAbstractHandler
SAXMachine::SAXAbstractHandler::NO_BUFFER
Instance Method Summary collapse
Methods included from SAXAbstractHandler
#_characters, #_end_element, #_error, #_initialize, #_start_element, #_warning
Instance Method Details
#sax_parse(xml_input) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/sax-machine/handlers/sax_nokogiri_handler.rb', line 8 def sax_parse(xml_input) parser = Nokogiri::XML::SAX::Parser.new(self) parser.parse(xml_input) do |ctx| ctx.replace_entities = true end end |