Class: AWS::Core::XML::SaxHandlers::Nokogiri

Inherits:
Object
  • Object
show all
Includes:
FrameStack
Defined in:
lib/aws/core/xml/sax_handlers/nokogiri.rb

Instance Method Summary collapse

Methods included from FrameStack

#attributes, #end_element, #initialize, #parse, #start_element, #text

Instance Method Details

#characters(chars) ⇒ Object



47
48
49
# File 'lib/aws/core/xml/sax_handlers/nokogiri.rb', line 47

def characters chars
  text(chars)
end

#end_documentObject



30
# File 'lib/aws/core/xml/sax_handlers/nokogiri.rb', line 30

def end_document; end

#end_element_namespace(*ignore) ⇒ Object



43
44
45
# File 'lib/aws/core/xml/sax_handlers/nokogiri.rb', line 43

def end_element_namespace *ignore
  end_element
end

#error(*args) ⇒ Object



31
# File 'lib/aws/core/xml/sax_handlers/nokogiri.rb', line 31

def error(*args); end

#sax_parse(xml) ⇒ Object



24
25
26
# File 'lib/aws/core/xml/sax_handlers/nokogiri.rb', line 24

def sax_parse xml
  ::Nokogiri::XML::SAX::Parser.new(self).parse(xml)
end

#start_documentObject



29
# File 'lib/aws/core/xml/sax_handlers/nokogiri.rb', line 29

def start_document; end

#start_element_namespace(element_name, attributes = [], *ignore) ⇒ Object



33
34
35
36
37
38
39
40
41
# File 'lib/aws/core/xml/sax_handlers/nokogiri.rb', line 33

def start_element_namespace element_name, attributes = [], *ignore

  attributes = attributes.map.inject({}) do |hash,attr| 
    hash.merge(attr.localname => attr.value)
  end

  start_element(element_name, attributes) 

end

#xmldecl(*args) ⇒ Object



28
# File 'lib/aws/core/xml/sax_handlers/nokogiri.rb', line 28

def xmldecl(*args); end