Class: Aws::Xml::Parser::NokogiriEngine Private

Inherits:
Object
  • Object
show all
Defined in:
lib/aws-sdk-core/xml/parser/engines/nokogiri.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Constructor Details

#initialize(stack) ⇒ NokogiriEngine

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of NokogiriEngine.



8
9
10
# File 'lib/aws-sdk-core/xml/parser/engines/nokogiri.rb', line 8

def initialize(stack)
  @stack = stack
end

Instance Method Details

#characters(chars) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



30
31
32
# File 'lib/aws-sdk-core/xml/parser/engines/nokogiri.rb', line 30

def characters(chars)
  @stack.text(chars)
end

#comment(*args) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



19
# File 'lib/aws-sdk-core/xml/parser/engines/nokogiri.rb', line 19

def comment(*args); end

#end_documentObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



18
# File 'lib/aws-sdk-core/xml/parser/engines/nokogiri.rb', line 18

def end_document; end

#end_element_namespace(*ignored) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



34
35
36
# File 'lib/aws-sdk-core/xml/parser/engines/nokogiri.rb', line 34

def end_element_namespace(*ignored)
  @stack.end_element
end

#error(msg) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



38
39
40
# File 'lib/aws-sdk-core/xml/parser/engines/nokogiri.rb', line 38

def error(msg)
  @stack.error(msg)
end

#parse(xml) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



12
13
14
# File 'lib/aws-sdk-core/xml/parser/engines/nokogiri.rb', line 12

def parse(xml)
  Nokogiri::XML::SAX::Parser.new(self).parse(xml)
end

#start_documentObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



17
# File 'lib/aws-sdk-core/xml/parser/engines/nokogiri.rb', line 17

def start_document; end

#start_element_namespace(element_name, attributes = [], *ignored) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



21
22
23
24
25
26
27
28
# File 'lib/aws-sdk-core/xml/parser/engines/nokogiri.rb', line 21

def start_element_namespace(element_name, attributes = [], *ignored)
  @stack.start_element(element_name)
  attributes.each do |attr|
    name = attr.localname
    name = "#{attr.prefix}:#{name}" if attr.prefix
    @stack.attr(name, attr.value)
  end
end

#xmldecl(*args) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



16
# File 'lib/aws-sdk-core/xml/parser/engines/nokogiri.rb', line 16

def xmldecl(*args); end