You are viewing documentation for version 1 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: AWS::Core::XML::SaxHandlers::REXML

Inherits:
Object
  • Object
show all
Includes:
REXML::StreamListener
Defined in:
lib/aws/core/xml/sax_handlers/rexml.rb

Instance Method Summary collapse

Instance Method Details

#sax_parse(xml) ⇒ Object



26
27
28
29
# File 'lib/aws/core/xml/sax_handlers/rexml.rb', line 26

def sax_parse xml
  source = ::REXML::Source.new(xml)
  ::REXML::Parsers::StreamParser.new(source, self).parse
end

#tag_end(name) ⇒ Object



35
36
37
# File 'lib/aws/core/xml/sax_handlers/rexml.rb', line 35

def tag_end name
  end_element
end

#tag_start(name, attrs) ⇒ Object



31
32
33
# File 'lib/aws/core/xml/sax_handlers/rexml.rb', line 31

def tag_start name, attrs
  start_element(name, attrs)
end

#text(chars) ⇒ Object



39
40
41
# File 'lib/aws/core/xml/sax_handlers/rexml.rb', line 39

def text(chars)
  set_text(chars)
end