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