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::LibXML

Inherits:
Object
  • Object
show all
Includes:
LibXML::XML::SaxParser::Callbacks
Defined in:
lib/aws/core/xml/sax_handlers/libxml.rb

Instance Method Summary collapse

Instance Method Details

#on_characters(chars) ⇒ Object



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

def on_characters chars
  text(chars)
end

#on_end_element_ns(*ignore) ⇒ Object



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

def on_end_element_ns *ignore
  end_element
end

#on_start_element_ns(element_name, attributes, *ignore) ⇒ Object



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

def on_start_element_ns element_name, attributes, *ignore
  start_element(element_name, attributes)
end

#sax_parse(xml) ⇒ Object



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

def sax_parse xml
  sax_parser = ::LibXML::XML::SaxParser.string(xml)
  sax_parser.callbacks = self
  sax_parser.parse
end