Class: AWS::Core::XML::SaxHandlers::REXML
- Inherits:
-
Object
- Object
- AWS::Core::XML::SaxHandlers::REXML
show all
- Includes:
- FrameStack, REXML::StreamListener
- Defined in:
- lib/aws/core/xml/sax_handlers/rexml.rb
Instance Method Summary
collapse
Methods included from FrameStack
#attributes, #end_element, #initialize, #parse, #start_element, #text
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
|