class Fluent::Plugin::XmlParser

Public Instance Methods

configure(conf) click to toggle source
Calls superclass method
# File lib/fluent/plugin/parser_xml_simple.rb, line 8
def configure(conf)
  super

  @parser = Nori.new
end
parse(xml) { |nil, parsed| ... } click to toggle source
# File lib/fluent/plugin/parser_xml_simple.rb, line 14
def parse(xml)
  parsed = @parser.parse(xml)

  if block_given?
    yield nil, parsed
  else
    return nil, parsed
  end
end