Sha256: 1c6a34e5270e6bf740b129b0407a5df7da0a3c86ebac9fb86e730297ee7be944
Contents?: true
Size: 865 Bytes
Versions: 99
Compression:
Stored size: 865 Bytes
Contents
require 'nokogiri' module Aws module Xml class Parser class NokogiriEngine def initialize(stack) @stack = stack end def parse(xml) Nokogiri::XML::SAX::Parser.new(self).parse(xml) end def xmldecl(*args); end def start_document; end def end_document; end def comment(*args); end def start_element_namespace(element_name, attributes = [], *ignored) @stack.start_element(element_name) attributes.each do |attr| @stack.attr(attr.localname, attr.value) end end def characters(chars) @stack.text(chars) end def end_element_namespace(*ignored) @stack.end_element end def error(msg) @stack.error(msg) end end end end end
Version data entries
99 entries across 99 versions & 1 rubygems