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::Nokogiri
- Inherits:
-
Object
- Object
- AWS::Core::XML::SaxHandlers::Nokogiri
show all
- Defined in:
- lib/aws/core/xml/sax_handlers/nokogiri.rb
Instance Method Summary
collapse
Instance Method Details
#characters(chars) ⇒ Object
48
49
50
|
# File 'lib/aws/core/xml/sax_handlers/nokogiri.rb', line 48
def characters chars
set_text(chars)
end
|
32
|
# File 'lib/aws/core/xml/sax_handlers/nokogiri.rb', line 32
def (*args); end
|
#end_document ⇒ Object
30
|
# File 'lib/aws/core/xml/sax_handlers/nokogiri.rb', line 30
def end_document; end
|
#end_element_namespace(*ignore) ⇒ Object
44
45
46
|
# File 'lib/aws/core/xml/sax_handlers/nokogiri.rb', line 44
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_document ⇒ Object
29
|
# File 'lib/aws/core/xml/sax_handlers/nokogiri.rb', line 29
def start_document; end
|
#start_element_namespace(element_name, attributes = [], *ignore) ⇒ Object
34
35
36
37
38
39
40
41
42
|
# File 'lib/aws/core/xml/sax_handlers/nokogiri.rb', line 34
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
|